nova/nova/conductor
Matt Riedemann d4bc147c38 Noop CantStartEngineError in targets_cell if API DB not configured
For reschedules during resize (migrate_server method),
the InstanceMapping query in targets_cell is an "up call"
to the API DB which will fail with a CantStartEngineError
if the cell conductor is not configured for the API DB.

This changes the targets_cell decorator to handle the
CantStartEngineError and if the API DB is not configured,
we assume we're in the cell conductor and just ignore the
error, otherwise if the API DB is configured we assume
we're in the super-conductor and reraise as before.

Change-Id: I0a413eb4f8a94500941e53b9a294d7cdb45d2a1c
Closes-Bug: #1781300
(cherry picked from commit 22dd4fca38)
2019-06-04 13:32:51 +00:00
..
tasks Merge "Update instance.availability_zone during live migration" 2019-03-13 23:25:11 +00:00
__init__.py Remove conductor local api:s and 'use_local' config option 2016-10-18 14:26:06 +02:00
api.py In Python3.7 async is a keyword [1] 2018-07-20 12:21:34 -04:00
manager.py Noop CantStartEngineError in targets_cell if API DB not configured 2019-06-04 13:32:51 +00:00
rpcapi.py Merge "conf: Remove '[conductor] topic' opt" 2018-03-13 08:00:43 +00:00