nova/nova/cmd
Matt Riedemann 48f9b1c2ce Print help if nova-manage subcommand is not specified
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 51b0d4ca58)
2020-01-15 10:29:02 +00:00
..
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
api.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
api_metadata.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
api_os_compute.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
baseproxy.py Convert websocketproxy to use db for token validation 2018-05-03 09:57:56 -04:00
common.py Print help if nova-manage subcommand is not specified 2020-01-15 10:29:02 +00:00
compute.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
conductor.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
console.py Deprecate the nova-console service 2018-10-15 10:03:08 +01:00
dhcpbridge.py Remove translation of log messages 2017-06-09 09:06:16 +00:00
manage.py Ensure online migrations have a unique name 2019-08-29 11:02:03 +01:00
network.py conf: Remove cells v1 options, group 2019-05-29 17:14:13 +01:00
novncproxy.py console: Provide an RFB security proxy implementation 2018-01-12 10:00:42 +00:00
policy.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
scheduler.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
serialproxy.py config options: centralize section "serial_console" 2015-11-19 11:00:20 +01:00
spicehtml5proxy.py config options: centralize 'spice' options 2016-04-11 10:34:05 +00:00
status.py Nova object changes for forbidden aggregates request filter 2019-09-09 20:16:32 +00:00
xvpvncproxy.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00