d4bc147c38
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
|
||
---|---|---|
.. | ||
tasks | ||
__init__.py | ||
api.py | ||
manager.py | ||
rpcapi.py |