nova-manage Tracebeck on missing arg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Matt Riedemann | ||
Queens |
Confirmed
|
Low
|
Unassigned | ||
Stein |
Confirmed
|
Low
|
Unassigned | ||
Train |
Fix Released
|
Low
|
Stephen Finucane |
Bug Description
# nova-manage cell_v2
An error has occurred:
Traceback (most recent call last):
File "/usr/local/
return getattr(
AttributeError: '_Namespace' object has no attribute 'action_fn'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/stack/
fn, fn_args, fn_kwargs = cmd_common.
File "/opt/stack/
fn = CONF.category.
File "/usr/local/
raise NoSuchOptError(
oslo_config.
# nova-manage cell_v2 help
usage: nova-manage cell_v2 [-h]
nova-manage cell_v2: error: argument action: invalid choice: 'help' (choose from 'create_cell', 'delete_cell', 'delete_host', 'discover_hosts', 'list_cells', 'list_hosts', 'map_cell0', 'map_cell_
# nova-manage cell_v2 -h
usage: nova-manage cell_v2 [-h]
positional arguments:
{create_
optional arguments:
-h, --help show this help message and exit
python version:
/usr/bin/python3 --version
Python 3.7.3
nova version:
$ git log -1
commit 78f9961d293e3b3
oslo.config 6.11.0
Instead of printing Traceback, nova-manage should give a hint for the user choices.
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
no longer affects: | oslo.config |
Changed in nova: | |
assignee: | nobody → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Stephen Finucane (stephenfinucane) |
Changed in nova: | |
assignee: | Stephen Finucane (stephenfinucane) → Matt Riedemann (mriedem) |
I could not reproduce the issue in the following environment.
nova master commit 063ef486e93bbef 1628aa722b96bbd 86290361cd
nova-manage 19.1.0 (nova-manage --version)
oslo.config 6.11.0
Python 3.6.7
stack@devstack- master: ~/nova$ nova-manage cell_v2
{ create_ cell,delete_ cell,delete_ host,discover_ hosts,list_ cells,list_ hosts,map_ cell0,map_ cell_and_ hosts,map_ instances, simple_ cell_setup, update_ cell,verify_ instance}
. ..
usage: nova-manage cell_v2 [-h]
nova-manage cell_v2: error: too few arguments