Project

General

Profile

Bug #28541

[Hammer] host creation using hostgroup fails

Added by Kavita Gaikwad 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Found in Releases:
In Kanboard:

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.


Related issues

Related to Hammer CLI - Bug #25584: Unclear error when not specifying the 'path' under --compute-attributes sectionClosed

Associated revisions

Revision f163dd9f (diff)
Added by Shira Maximov 5 months ago

Fixes #28541 - Fix host creation from image and hostgroup (#471)

History

#1 Updated by Kavita Gaikwad 6 months ago

  • Category set to Compute resources

#2 Updated by Kavita Gaikwad 6 months ago

  • Bugzilla link set to 1785620

#3 Updated by Kavita Gaikwad 5 months ago

  • Related to Bug #25584: Unclear error when not specifying the 'path' under --compute-attributes section added

#4 Updated by The Foreman Bot 5 months ago

  • Assignee set to Shira Maximov
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/471 added

#5 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases hammer-cli-foreman-0.20.0 added

#6 Updated by Shira Maximov 5 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Oleh Fedorenko 5 months ago

  • Fixed in Releases hammer-cli-foreman-0.19.7 added

Also available in: Atom PDF