nova/nova/cmd
Surya Seetharaman 0a481a5292 Metadata-API fails to retrieve avz for instances created before Pike
In Pike (through change: I8d426f2635232ffc4b510548a905794ca88d7f99)
we started setting instance.avilability_zone during schedule time by
calculating the avz of the host into which the instance was scheduled
into. After this change was introduced, the metadata request for the avz
on the instance (through change: I73c3b10e52ab4cfda9dacc0c0ba92d1fcb60bcc9)
started using instance.get(availability_zone) instead of doing the upcall.
However this would return None for instances older than Pike whose
availability_zone was not mentioned during boot time as it would be set to
CONF.default_schedule_zone whose default value is None.

This patch adds an online_migration tool to populate missing
instance.availability_zone values.

Change-Id: I2a1d81bfeb1ea006c16d8f403e045e9acedcbe57
Closes-Bug: #1768876
(cherry picked from commit 6b4c38c041)
2018-05-30 17:40:25 -04:00
..
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00: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
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 Metadata-API fails to retrieve avz for instances created before Pike 2018-05-30 17:40:25 -04: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 Log a warning and add nova-status check for old API service versions 2018-04-20 15:29:55 -04:00
xvpvncproxy.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00