Bug #28541
closed[Hammer] host creation using hostgroup fails
Description
Description
Recently, image-id removed from compute-attributes while creating host and instead now user needs to pass --image-id option while creating a host.
However host creation fails when user selects hostgroup.
How Reproducible:
-------------------
Always
Steps:
-------------------
hammer host create --name gceHammered3 --organization-id 1 --location-id 2 --hostgroup-id 1 --provision-method 'image' --volume 'size_gb=13' --managed true --compute-attributes 'machine_type=g1-small,network=default,associate_external_ip=true' --image-id 1
Could not create the host:
Missing arguments for 'id'
Actual Behaviour:
-------------------
Host create command gives a failure for 'id'.
Expected Behaviour:
--------------------
1. The host should be provisioned
Note that when I try to send "image-id" key-value inside --compute-attributes and removed --image-id option, I am able to provision a host.
Updated by Kavita Gaikwad almost 5 years ago
- Related to Bug #25584: Unclear error when not specifying the 'path' under --compute-attributes section added
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shira Maximov
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/471 added
Updated by The Foreman Bot over 4 years ago
- Fixed in Releases hammer-cli-foreman-0.20.0 added
Updated by Shira Maximov over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-foreman|f163dd9fc9a232f711621f81a16752624edd5de7.
Updated by Oleh Fedorenko over 4 years ago
- Fixed in Releases hammer-cli-foreman-0.19.7 added