yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00748
[Bug 1098733] Re: nova-manage has several usage issues
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => grizzly-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1098733
Title:
nova-manage has several usage issues
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
$ nova-manage --debug flavor create --help
usage: nova-manage flavor create [-h] [--name <name>] [--memory <memory size>]
[--cpu <num cores>] [--root_gb <root_gb>]
[--ephemeral_gb <ephemeral_gb>]
[--flavor <flavor id>] [--swap <swap>]
[--rxtx_factor <rxtx_factor>]
[--is_public <is_public>]
[action_args [action_args ...]]
positional arguments:
action_args
optional arguments:
-h, --help show this help message and exit
--name <name> Name of instance type/flavor
--memory <memory size>
Memory size
--cpu <num cores> Number cpus
--root_gb <root_gb> Root disk size
--ephemeral_gb <ephemeral_gb>
Ephemeral disk size
--flavor <flavor id>
Flavor ID
--swap <swap> Swap
--rxtx_factor <rxtx_factor>
rxtx_factor
--is_public <is_public>
Make flavor accessible to the public
The above seems to me to imply that this is the correct way to invoke this command:
nova-manage flavor create --name m1.smoser --memory 512 --cpu 1 --root_gb 2 --ephemeral_gb 1 --is_public 1 --flavor 6
However, doing that results in an error, complaining:
4 arguments are missing: name, memory, vcpus, root_gb
The correct way to specify name, memory, vcpus, root_gb is as positional args:
nova-manage flavor create m1.smoser 512 1 2
That will actually work.
To specify everything you want, you actually have to provide positional arguments with the following order:
name memory vcpus root_gb [ephemeral_gb flavor_id swap rxtx_factor is_public]
is_public must be something like 'true', 'false', 1, 0. arbitrary string will not work.
So, as far as I can tell, then, there is no way to specify "extra
specs", nor is there a way to specify public without specifying
anything before it.
So the 2 issues here are:
* it really shoudl take flags for non-required variables so you can specify is_public without specifying ephemeral_gb
* the usage is very confusing.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1098733/+subscriptions