Project

General

Profile

Actions

Bug #3780

closed

"true" boolean value for "start" key inside --compute-attributes is not correctly interpreted

Added by Marco De Vitis over 10 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Hosts
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
yes

Description

When using hammer to create a host on a Libvirt provider, the --compute-attributes option accepts a "start" key to tell hammer if the new host must be immediately started.
The key is described as a boolean value, but when using "start=true" the new host is not started.
The new host is started, instead, if using "start=1".

Also "true" should be accepted, to be more user-friendly.
A different solution would be to only accept 1 and 0, but then the help output should be updated accordingly to better express this, and also any docs around, like the Success Story (http://projects.theforeman.org/issues/3297) which has an example containing "start=true".


Related issues 3 (1 open2 closed)

Related to Foreman - Bug #16636: VM Autostart attribute ("compute_attributes":{"start":"1"}) requires value as a string, not boolean or number.New09/21/2016Actions
Related to Hammer CLI - Tracker #16829: Tracker for compute resource related issuesClosed

Actions
Related to Hammer CLI - Tracker #18935: Tracker for issues related to processing of nested options in host createClosed

Actions
Actions #1

Updated by Tomáš Strachota about 10 years ago

  • Assignee set to Tomáš Strachota
Actions #2

Updated by Dominic Cleal over 7 years ago

  • Related to Bug #16636: VM Autostart attribute ("compute_attributes":{"start":"1"}) requires value as a string, not boolean or number. added
Actions #3

Updated by Tomáš Strachota over 7 years ago

  • Category set to Hosts
Actions #4

Updated by Tomáš Strachota over 7 years ago

  • Related to Tracker #16829: Tracker for compute resource related issues added
Actions #5

Updated by Tomáš Strachota about 7 years ago

  • Related to Tracker #18935: Tracker for issues related to processing of nested options in host create added
Actions #6

Updated by Shira Maximov over 4 years ago

  • Assignee deleted (Tomáš Strachota)
Actions #7

Updated by Shira Maximov over 4 years ago

  • In Kanboard set to yes

Changing the

Actions #8

Updated by Shira Maximov about 4 years ago

  • Triaged changed from No to Yes
Actions #9

Updated by Shira Maximov about 4 years ago

  • Status changed from New to Rejected

The correct way to start the vm is to do that with 1, as it mentioned n the help:
['start', _('Boolean (expressed as 0 or 1), whether to start the machine or not')]

Actions

Also available in: Atom PDF