Bug #25585
openUnclear error when not specifying the 'image_id' under --compute-attributes section
Description
When not specifying the 'path' under --compute-attributes section when trying to create a host in vmware and provision it by image,
then you will get the following error:
Failed to create a compute vmware (VMware) instance test.tlv.redhat.com: undefined method `include?' for nil:NilClass
The command line to reproduce:
hammer host create --name test --environment-id 1 --organization-id 2 --location-id 1 --hostgroup-id 1 --operatingsystem-id 1 --architecture "x86_64" --domain-id 1 --subnet-id 1 --compute-resource-id 14 --provision-method 'image' --compute-attributes "cpus=1, corespersocket=2, memory_mb=4096, cluster=Compute_Cluster, path=XXXXX" --interface "compute_network=XXXX, type=interface , managed=1, primary=1, provision=1, type=interface" --ip XXX.XXX.XXX.XXX --volume "datastore=XXXX, size_gb=1, thin=true"
Updated by Tomáš Strachota over 5 years ago
- Status changed from New to Need more information
Thanks for reporting that, Shira. Is this a client side issue? If the unclear error is coming from API then we should move this issue to the project "Foreman" and fix it there. The hammer reproducer is handy and we can keep it in the description.
Updated by Shira Maximov over 5 years ago
- Project changed from Hammer CLI to Foreman
- Category set to Compute resources - VMware