nova/nova
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
..
CA
api Make bdms querying in multi-cell use scatter-gather and ignore down cell 2018-02-12 15:24:55 +00:00
cells Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
cmd Make archive_deleted_rows handle a missing CONF.api_database.connection 2018-03-16 11:04:20 +01:00
common
compute Merge "Detach volumes when VM creation fails" into stable/queens 2018-03-08 15:17:17 +00:00
conductor [placement] Add sending global request ID in put (3) 2018-02-23 00:55:51 +00:00
conf VGPU: Modify the example of vgpu white_list set 2018-02-09 15:24:25 +00:00
console Fix accumulated nits 2018-01-16 14:54:04 +00:00
consoleauth Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
db Merge "Add index(instance_uuid, updated_at) on instance_actions table" 2018-02-08 15:23:14 +00:00
hacking trivial: Rename 'policy_check' -> 'policy' 2017-10-25 17:56:40 +01:00
image Workaround glanceclient bug when CONF.glance.api_servers not set 2018-02-08 09:06:48 -05:00
ipv6
keymgr Remove deprecated keymgr code 2017-09-11 15:48:30 -04:00
locale Imported Translations from Zanata 2018-03-01 06:16:22 +00:00
network Use neutron port_list when filtering instance by ip 2018-01-23 10:10:53 +08:00
notifications Merge "Transform instance.resize_prep notification" 2018-01-27 01:36:42 +00:00
objects Lazy-load instance attributes with read_deleted=yes 2018-02-19 16:35:20 -05:00
pci Address nits in I46d483f9de6776db1b025f925890624e5e682ada 2018-01-02 15:57:50 +00:00
policies trivial: Fix few policy doc 2018-02-01 03:04:00 +00:00
privsep Update plugs Contrail methods to work with privsep 2018-02-21 15:48:04 -05:00
scheduler [placement] Add sending global request ID in put (3) 2018-02-23 00:55:51 +00:00
servicegroup iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
tests Make archive_deleted_rows handle a missing CONF.api_database.connection 2018-03-16 11:04:20 +01:00
virt Merge "hyper-v: Logs tips on PortBindingFailed" into stable/queens 2018-03-08 15:17:08 +00:00
vnc
volume Add the ability to get absolute limits from Cinder 2018-02-20 09:10:37 -05:00
__init__.py
availability_zones.py
baserpc.py
block_device.py Add uuid column to BlockDeviceMapping 2017-12-17 14:28:35 +00:00
cache_utils.py
config.py
context.py Allow 'network' in RequestContext service_catalog 2018-03-06 16:17:27 -05:00
crypto.py
debugger.py
exception.py Merge "Fix nits in support traits changes" 2018-02-01 21:25:45 +00:00
exception_wrapper.py rename binary to source in versioned notifications 2017-07-25 17:36:04 +02:00
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
loadables.py
manager.py
policy.py Add policy granularity to the Flavors API 2017-07-19 15:56:47 -04:00
profiler.py
quota.py Follow up on removing old-style quotas code 2017-12-08 22:11:24 +00:00
rpc.py Remove dead code of api.fault notification sending 2017-10-09 17:29:40 +02:00
safe_utils.py Allow wrapping of closures 2017-07-20 10:07:52 +01:00
service.py Enhance doc for nova services 2017-08-31 08:30:48 +08:00
service_auth.py Fix NoneType error when [service_user] is misconfigured 2017-11-28 12:22:30 -06:00
test.py Reset the _RC_CACHE between tests 2018-02-02 14:40:44 +00:00
utils.py Merge "Handle TZ change in iso8601 >=0.1.12" 2018-01-31 00:36:50 +00:00
version.py
weights.py
wsgi.py