Skip to content

Instantly share code, notes, and snippets.

@stefancocora
stefancocora / foreman-1.4.2-vmware4.1-update3-stack_trace
Last active August 29, 2015 13:57
foreman-1.4.2-vmware4.1-update3-stack_trace
Specs:
Foreman 1.4.2
Vmware 4.1 update 3
fog (1.19.0)
rbvmomi (1.6.0)
When creating a VM via Foreman compute resource I get this error:
@stefancocora
stefancocora / gist:9668826
Created March 20, 2014 17:06
vmware stack trace when the user can't see the distributed vswitch
Failed to create a compute grw-mgm-environment (VMWare) instance test-grw-mgm.mgm.grw.itv: failed to create vm: undefined method `uuid' for nil:NilClass
/opt/rh/ruby193/root/usr/share/gems/gems/fog-1.19.0/lib/fog/vsphere/requests/compute/create_vm.rb:27:in `rescue in create_vm'
/opt/rh/ruby193/root/usr/share/gems/gems/fog-1.19.0/lib/fog/vsphere/requests/compute/create_vm.rb:8:in `create_vm'
/opt/rh/ruby193/root/usr/share/gems/gems/fog-1.19.0/lib/fog/vsphere/models/compute/server.rb:234:in `save'
/usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:118:in `create_vm'
/usr/share/foreman/app/models/concerns/orchestration/compute.rb:62:in `setCompute'
/usr/share/foreman/app/models/concerns/orchestration.rb:148:in `execute'
/usr/share/foreman/app/models/concerns/orchestration.rb:88:in `block in process'