nova/nova/cmd
Surya Seetharaman aaae38d1aa Make archive_deleted_rows handle a missing CONF.api_database.connection
This change https://review.openstack.org/#/c/515034/ (added in queens)
makes the archive_deleted_rows CLI remove instance mappings and request
specs from the API database if there are instances archived from the
main nova/cell database. However for this to work, the api database
connection should be set in the config file. So in the case that the
API database is not configured in the config file being used to run the
CLI, we should gracefully handle the condition and and stop archiving thus
prompting the user to set the api_db config and try the archival operation
again. This patch fixes the graceful handling.

Conflicts:
    nova/tests/unit/test_nova_manage.py

NOTE(tssurya): The conflict is due to not having changes
I6f87cf03d49be6bfad2c5e6f0c8accf0fab4e6ee and
Ibd824a77b32cbceb60973a89a93ce09fe6d1050d in Queens.

Change-Id: I0c7b802a453aa423c7273ab724ce78eac0cfed4c
Closes-Bug: #1753833
(cherry picked from commit 8da6831e63)
2018-03-16 11:04:20 +01:00
..
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api_metadata.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
api_os_compute.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
api.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
baseproxy.py console: introduce basic framework for security proxying 2017-09-28 16:39:22 +01:00
cells.py Merge "Pass config object to oslo_reports" 2017-09-06 16:06:13 +00:00
common.py trivial: Remove some single use function from utils 2017-08-22 16:10:02 +01:00
compute.py Merge "Pass config object to oslo_reports" 2017-09-06 16:06:13 +00:00
conductor.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
console.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
consoleauth.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
dhcpbridge.py Remove translation of log messages 2017-06-09 09:06:16 +00:00
manage.py Make archive_deleted_rows handle a missing CONF.api_database.connection 2018-03-16 11:04:20 +01:00
network.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
novncproxy.py console: Provide an RFB security proxy implementation 2018-01-12 10:00:42 +00:00
policy.py trivial: Rename 'policy_check' -> 'policy' 2017-10-25 17:56:40 +01:00
scheduler.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00: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 Fix nits in support traits changes 2018-01-31 11:07:07 -05:00
xvpvncproxy.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00