Project

General

Profile

Actions

Bug #11550

closed

Failed to create a compute vmware-hq (VMware) instance es1.initial..dev: undefined method `key?' for #<String:0x0000000ab647e8>

Added by Nikita Stupin over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I try clone new vm from my vmware template but receive this error.
In production.log i found this:

2015-08-25T13:06:46 [app] [I] Processing by HostsController#create as */*
2015-08-25T13:06:46 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"lYAxdILeQcJm+8YZcArIGGaOTzbVIQN0BNkXGKgI/Og=", "host"=>{"name"=>"es1", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"es1", "domain_id"=>"2", "subnet_id"=>"1", "ip"=>"10.77.47.3", "managed"=>"1", "primary"=>"1", "provision"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"PG_Vlan_147_Developers_Network"}}}, "compute_attributes"=>{"cpus"=>"1", "corespersocket"=>"1", "memory_mb"=>"8192", "cluster"=>"Vmware-Cluster-03", "path"=>"/Datacenters/South Port/vm/Developers_new", "guest_id"=>"debian7_64Guest", "scsi_controller_type"=>"ParaVirtualSCSIController", "hardware_version"=>"Default", "start"=>"1", "volumes_attributes"=>{"0"=>{"_delete"=>"", "datastore"=>"HQ-QNAP-02_Developers_Datastore", "name"=>"Hard disk", "size_gb"=>"25", "thin"=>"false", "eager_zero"=>"false"}}, "image_id"=>"Developers_new/linux_dev"}, "architecture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"image", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"build image", "provider"=>"Vmware"}

2015-08-25T13:06:55 [app] [W] Failed to create a compute vmware-hq (VMware) instance es1.initial.dev: undefined method `key?' for #<String:0x0000000ab647e8>
 |
 | NoMethodError: undefined method `key?' for #<String:0x0000000ab647e8>
 | /usr/share/foreman/vendor/ruby/1.9.1/gems/fog-1.32.0/lib/fog/vsphere/requests/compute/cloudinit_to_customspec.rb:16:in `cloudinit_to_customspec'
 | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:376:in `clone_vm'
 | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:323:in `create_vm'

How i can debug this error?


Related issues 1 (1 open0 closed)

Related to Foreman - Bug #14058: vmware provisioning fails with cryptic error when not using propper user_data scriptNew03/04/2016Actions
Actions

Also available in: Atom PDF