nova-manage stack traces when wrong number of arguments are passed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Joe Gordon |
Bug Description
Nova manage shouldn't stack trace when the wrong number of arguments are passed in.
From devstack:
$ nova-manage flavor
/usr/local/
Available actions for flavor category:
create
delete
list
set_key
unset_key
vagrant@
Possible wrong number of arguments supplied
Creates instance types / flavors
Usage: nova-manage flavor create <args> [options]
Options:
-h, --help show this help message and exit
--name=<name> Name of instance type/flavor
--memory=<memory size>
--cpu=<num cores> Number cpus
--root_
--ephemeral_
--flavor=<flavor id>
--swap=<swap> Swap
--rxtx_
--is_
2012-11-26 19:14:13 CRITICAL nova [-] create() takes at least 5 arguments (1 given)
2012-11-26 19:14:13 TRACE nova Traceback (most recent call last):
2012-11-26 19:14:13 TRACE nova File "/usr/local/
2012-11-26 19:14:13 TRACE nova execfile(__file__)
2012-11-26 19:14:13 TRACE nova File "/opt/stack/
2012-11-26 19:14:13 TRACE nova main()
2012-11-26 19:14:13 TRACE nova File "/opt/stack/
2012-11-26 19:14:13 TRACE nova fn(*fn_args, **fn_kwargs)
2012-11-26 19:14:13 TRACE nova TypeError: create() takes at least 5 arguments (1 given)
2012-11-26 19:14:13 TRACE nova
Changed in nova: | |
assignee: | nobody → Joe Gordon (joe-gordon0) |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
Reviewed: https:/ /review. openstack. org/16342 github. com/openstack/ nova/commit/ 59f6d3b63b3a328 75a1835cb3ff9bb ddf2b192ee
Committed: http://
Submitter: Jenkins
Branch: master
commit 59f6d3b63b3a328 75a1835cb3ff9bb ddf2b192ee
Author: Joe Gordon <email address hidden>
Date: Fri Nov 16 14:48:45 2012 -0800
Improve nova-manage usability
Prevent nova-manage from stack tracing when the wrong number of
arguments are passed in.
Fixes bug 1083315
Change-Id: I7b9a237a82b425 5d88c01c6a56ad0 ccd4a6ee984