"nova-manage flavor create" produces the wrong help
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
$ nova-manage flavor create
Creates instance types / flavors.
usage: nova-manage [-h] [--version] [--debug] [--nodebug] [--verbose]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--debug, -d Print debugging output (set logging level to DEBUG
--nodebug The inverse of --debug
--verbose, -v Print more verbose output (set logging level to INFO
--noverbose The inverse of --verbose
--use-syslog Use syslog for logging.
--nouse-syslog The inverse of --use-syslog
--config-file PATH Path to a config file to use. Multiple config files
--log-config PATH If this option is specified, the logging configuration
--log-format FORMAT A logging.Formatter log message format string which
--log-date-format DATE_FORMAT
--log-file PATH, --logfile PATH
--log-dir LOG_DIR, --logdir LOG_DIR
--syslog-
--config-dir DIR Path to a config directory to pull *.conf files from.
Command categories:
{version,
4 arguments are missing
$
This does not help me much. I need the help for 'flavor create', like when I do --help:
$ nova-manage flavor create --help
usage: nova-manage flavor create [-h] [--name <name>] [--memory <memory size>]
positional arguments:
action_args
optional arguments:
-h, --help show this help message and exit
--name <name> Name of instance type/flavor
--memory <memory size>
--cpu <num cores> Number cpus
--root_gb <root_gb> Root disk size
--ephemeral_gb <ephemeral_gb>
--flavor <flavor id>
--swap <swap> Swap
--rxtx_factor <rxtx_factor>
--is_public <is_public>
$
tags: | added: nova-manage |
Changed in nova: | |
status: | Triaged → Won't Fix |
We should use required option of argparser instead of manually check action arguments using cliutils. validate_ args(). cliutils. validate_ args() only checks arguments count. By using required option of argparser, the useage message outputed will be more helpful.
I will make a patch to remove cliutils module and fix this bug.