Project

General

Profile

Actions

Bug #28541

closed

[Hammer] host creation using hostgroup fails

Added by Kavita Gaikwad almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
No
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 1 (0 open1 closed)

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

Updated by Kavita Gaikwad almost 5 years ago

  • Category set to Compute resources
Actions #2

Updated by Kavita Gaikwad almost 5 years ago

  • Bugzilla link set to 1785620
Actions #3

Updated by Kavita Gaikwad almost 5 years ago

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

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
Actions #5

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases hammer-cli-foreman-0.20.0 added
Actions #6

Updated by Shira Maximov over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Oleh Fedorenko over 4 years ago

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

Also available in: Atom PDF