nova/nova/conductor
Matt Riedemann ee07c1c67d Update instance.availability_zone during live migration
While triaging bug 1768876 there was some concern
that change I8d426f2635232ffc4b510548a905794ca88d7f99
in Pike had regressed some behavior where a user that
does not explicitly request a specific AZ during server
create is then later restricted to only move operations
within that same AZ.

This test shows that is not a regression because the
AvailabilityZoneFilter looks at RequestSpec.availability_zone
rather than instance.availabililty_zone, so the instance
is free to be moved across zones.

As a result of the test, however, it was noticed that
the instance.availability_zone isn't updated during live
migration once the destination host is selected. The other
move operations like unshelve, evacuate and cold migrate
all update the instance.availabiltiy_zone, so this copies
the same logic.

Change-Id: I9f73c237923fdcbf4096edc5aedd2c968d4b893e
Closes-Bug: #1771860
Related-Bug: #1768876
(cherry picked from commit 0ed68c76fa)
(cherry picked from commit 133763d358)
2019-03-25 18:13:10 -04:00
..
tasks Update instance.availability_zone during live migration 2019-03-25 18:13:10 -04:00
__init__.py Remove conductor local api:s and 'use_local' config option 2016-10-18 14:26:06 +02:00
api.py Change compute RPC to use alternates for resize 2018-01-22 20:09:15 +00:00
manager.py Handle tags in _bury_in_cell0 2018-12-12 17:20:44 -05:00
rpcapi.py Change compute RPC to use alternates for resize 2018-01-22 20:09:15 +00:00