commit ac85b76178017b4bda30502a6ebb9c990435ec72
Author: Matt Riedemann <email address hidden>
Date: Tue Oct 1 17:30:54 2019 -0400
Set Instance AZ from Selection AZ during migrate reschedule
This builds on change Ia50c5f4dd2204f1cafa669097d1e744479c4d8c8
to use the Selection.availability_zone value when rescheduling
during a resize or cold migrate so that the cell conductor does not
have to make an up-call to the aggregates table in the API DB
which will fail if the cell conductor is not configured to use
the API DB.
The functional test added in Ic6926eecda1f9dd7183d66c67f04f308f6a1799d
is updated to show the failure is gone and we get the AZ from the
Selection object during the reschedule.
For the case that the availability_zone field is not in the Selection
object, there are existing unit tests in
nova.tests.unit.conductor.tasks.test_migrate which will make sure we
are not unconditionally trying to access the Selection.availability_zone
field.
Reviewed: https:/ /review. opendev. org/686050 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ac85b761780 17b4bda30502a6e bb9c990435ec72
Committed: https:/
Submitter: Zuul
Branch: master
commit ac85b76178017b4 bda30502a6ebb9c 990435ec72
Author: Matt Riedemann <email address hidden>
Date: Tue Oct 1 17:30:54 2019 -0400
Set Instance AZ from Selection AZ during migrate reschedule
This builds on change Ia50c5f4dd2204f 1cafa669097d1e7 44479c4d8c8 availability_ zone value when rescheduling
to use the Selection.
during a resize or cold migrate so that the cell conductor does not
have to make an up-call to the aggregates table in the API DB
which will fail if the cell conductor is not configured to use
the API DB.
The functional test added in Ic6926eecda1f9d d7183d66c67f04f 308f6a1799d
is updated to show the failure is gone and we get the AZ from the
Selection object during the reschedule.
For the case that the availability_zone field is not in the Selection tests.unit. conductor. tasks.test_ migrate which will make sure we availability_ zone
object, there are existing unit tests in
nova.
are not unconditionally trying to access the Selection.
field.
Change-Id: I103d5023d3a3a7 c367c7eea7fb103 cb8ec52accf
Closes-Bug: #1781286