Error when using hammer to create a VM on a VMware compute resource

Hello, when I use the following command to generate a VM:
hammer -v host create --hostgroup="Test"
–compute-resource="test_vmware_compute"
–compute-attributes="cpus=2,corespersocket=2,memory_mb=4056,cluster=1,guest_id=1"
–interface="primary=true,provision=true,compute_type=VirtualE1000,
compute_network=dvPG-Test"
–volume="datastore=isilon-vm2,size_gb=4,thin=true"
–name="hammertime02.example.com"

I get the following error:
Could not create the host:
Failed to create a compute test_vmware_compute (VMware) instance
hammertime02.example.com: failed to create vm: undefined method
`resourcePool' for nil:NilClass

Has anyone else had trouble using hammer to create vm's on a VMware compute
resource?

Here is a snippet from /var/log/foreman/production.log:

<SNIP>
>
> Started POST "/api/hosts" for 10.67.5.5 at 2016-01-06 11:54:27 -0500
2016-01-06 11:54:27 [app] [I] Processing by Api::V2::HostsController#create
as JSON
2016-01-06 11:54:27 [app] [I] Parameters:
{"host"=>{"name"=>"hammertime02.example.com", "compute_resource_id"=>1,
"hostgroup_id"=>3, "build"=>true, "enabled"=>true, "managed"=>true,
"compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"2",
"memory_mb"=>"4056", "cluster"=>"1", "guest_id"=>"1",
"volumes_attributes"=>{"0"=>{"datastore"=>"isilon-vm2", "size_gb"=>"4",
"thin"=>"true"}}}, "host_parameters_attributes"=>{},
"interfaces_attributes"=>{"0"=>{"primary"=>"true", "provision"=>"true",
"compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"dvPG-Test"}}}},
"apiv"=>"v2"}
2016-01-06 11:54:27 [app] [I] Authorized user admin(Admin User)
2016-01-06 11:54:31 [app] [W] Failed to create a compute
test_vmware_compute (VMware) instance hammertime02.test.dte.cert.org:
failed to create vm: undefined method resourcePool&#39; for nil:NilClass &gt; &gt; NoMethodError: failed to create vm: undefined methodresourcePool' for
nil:NilClass
>
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-1.34.0/lib/fog/vsphere/requests/compute/create_vm.rb:31:in
rescue in create_vm&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/fog-1.34.0/lib/fog/vsphere/requests/compute/create_vm.rb:8:increate_vm'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-1.34.0/lib/fog/vsphere/models/compute/server.rb:235:in
save&#39; &gt; /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:326:increate_vm'
> /usr/share/foreman/app/models/concerns/orchestration/compute.rb:76:in
`setCompute'
<SNIP>

Bump… Does anyone have a solution for this? Or are there known issues with redmine tickets?
Thanks!

··· ----- Original Message ----- > Hello, when I use the following command to generate a VM: > hammer -v host create --hostgroup="Test" > --compute-resource="test_vmware_compute" > --compute-attributes="cpus=2,corespersocket=2,memory_mb=4056,cluster=1,guest_id=1" > --interface="primary=true,provision=true,compute_type=VirtualE1000, > compute_network=dvPG-Test" > --volume="datastore=isilon-vm2,size_gb=4,thin=true" > --name="hammertime02.example.com" > > I get the following error: > Could not create the host: > Failed to create a compute test_vmware_compute (VMware) instance > hammertime02.example.com: failed to create vm: undefined method > `resourcePool' for nil:NilClass > > Has anyone else had trouble using hammer to create vm's on a VMware compute > resource? > > Here is a snippet from /var/log/foreman/production.log: > > > > > > Started POST "/api/hosts" for 10.67.5.5 at 2016-01-06 11:54:27 -0500 > 2016-01-06 11:54:27 [app] [I] Processing by Api::V2::HostsController#create > as JSON > 2016-01-06 11:54:27 [app] [I] Parameters: > {"host"=>{"name"=>"hammertime02.example.com", "compute_resource_id"=>1, > "hostgroup_id"=>3, "build"=>true, "enabled"=>true, "managed"=>true, > "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"2", > "memory_mb"=>"4056", "cluster"=>"1", "guest_id"=>"1", > "volumes_attributes"=>{"0"=>{"datastore"=>"isilon-vm2", "size_gb"=>"4", > "thin"=>"true"}}}, "host_parameters_attributes"=>{}, > "interfaces_attributes"=>{"0"=>{"primary"=>"true", "provision"=>"true", > "compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"dvPG-Test"}}}}, > "apiv"=>"v2"} > 2016-01-06 11:54:27 [app] [I] Authorized user admin(Admin User) > 2016-01-06 11:54:31 [app] [W] Failed to create a compute > test_vmware_compute (VMware) instance hammertime02.test.dte.cert.org: > failed to create vm: undefined method `resourcePool' for nil:NilClass > > > > NoMethodError: failed to create vm: undefined method `resourcePool' for > nil:NilClass > > > /opt/theforeman/tfm/root/usr/share/gems/gems/fog-1.34.0/lib/fog/vsphere/requests/compute/create_vm.rb:31:in > `rescue in create_vm' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/fog-1.34.0/lib/fog/vsphere/requests/compute/create_vm.rb:8:in > `create_vm' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/fog-1.34.0/lib/fog/vsphere/models/compute/server.rb:235:in > `save' > > > /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:326:in > `create_vm' > > /usr/share/foreman/app/models/concerns/orchestration/compute.rb:76:in > `setCompute' > > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. >

I have the same issue. Did you find a fix?