Project

General

Profile

Actions

Bug #28541

closed

[Hammer] host creation using hostgroup fails

Added by Kavita Gaikwad about 5 years ago. Updated almost 5 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

Also available in: Atom PDF