48f9b1c2ce
If a nova-manage command is executed without the -h option
or a subcommand the user gets an ugly traceback. This is
easily recreated:
$ tox -e venv -- nova-manage db
Make the action argument required, so we get a helpful error message
instead.
$ nova-manage db
usage: nova-manage db [-h]
{archive_deleted_rows,ironic_flavor_migration,
null_instance_uuid_scan,online_data_migrations,
purge,sync,version}
...
nova-manage db: error: the following arguments are required: action
Note that unit tests appear to be impossible for this, since doing so
attempts to initialize an oslo.config 'CONF' singleton and this is
something we've already done in 'nova.test' and can't do again.
Change-Id: I24d03eed3aa3b882c49916938f4c25d76fd4e831
Closes-Bug: #1837199
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
index.rst | ||
nova-api-metadata.rst | ||
nova-api-os-compute.rst | ||
nova-api.rst | ||
nova-compute.rst | ||
nova-conductor.rst | ||
nova-console.rst | ||
nova-dhcpbridge.rst | ||
nova-manage.rst | ||
nova-network.rst | ||
nova-novncproxy.rst | ||
nova-rootwrap.rst | ||
nova-scheduler.rst | ||
nova-serialproxy.rst | ||
nova-spicehtml5proxy.rst | ||
nova-status.rst | ||
nova-xvpvncproxy.rst |