commit 62464883e1c2ba98e1fddb1284171ca5bef4d8e1
Author: Jiří Suchomel <email address hidden>
Date: Tue Aug 21 09:10:07 2018 +0200
Filter out instances without a host when populating AZ
It could happen that instance does not have a host set, e.g.
when its creation failed before it was scheduled.
During online_migration, populate_missing_availability_zones tries to
add missing AZs to all instances. However for instances without a host
there's no reasonable value for AZ (we can't use a logic that bases
the value on a host) so let's skip this kind of instances completely.
Change-Id: Ic6060beaa08af5ea70e5e54fffb94eea58aa7bbf
Closes-Bug: #1788115
(cherry picked from commit 690f91b5c7f7e84a4e6d351b27c05818d947cce1)
(cherry picked from commit ad14e428f82f02d71e0b33ec6d20e7810a978e3b)
(cherry picked from commit 059c2d4a8a9967403755c40beda667c9463848a8)
Reviewed: https:/ /review. openstack. org/594184 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=62464883e1c 2ba98e1fddb1284 171ca5bef4d8e1
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 62464883e1c2ba9 8e1fddb1284171c a5bef4d8e1
Author: Jiří Suchomel <email address hidden>
Date: Tue Aug 21 09:10:07 2018 +0200
Filter out instances without a host when populating AZ
It could happen that instance does not have a host set, e.g. missing_ availability_ zones tries to
when its creation failed before it was scheduled.
During online_migration, populate_
add missing AZs to all instances. However for instances without a host
there's no reasonable value for AZ (we can't use a logic that bases
the value on a host) so let's skip this kind of instances completely.
Change-Id: Ic6060beaa08af5 ea70e5e54fffb94 eea58aa7bbf a4e6d351b27c058 18d947cce1) 71e0b33ec6d20e7 810a978e3b) 03755c40beda667 c9463848a8)
Closes-Bug: #1788115
(cherry picked from commit 690f91b5c7f7e84
(cherry picked from commit ad14e428f82f02d
(cherry picked from commit 059c2d4a8a99674