commit 9890f3f69622489a0fd57cb1df354d7aa60161e0
Author: Matt Riedemann <email address hidden>
Date: Tue Feb 20 13:48:12 2018 -0500
Only attempt a rebuild claim for an evacuation to a new host
Change I11746d1ea996a0f18b7c54b4c9c21df58cc4714b changed the
behavior of the API and conductor when rebuilding an instance
with a new image such that the image is run through the scheduler
filters again to see if it will work on the existing host that
the instance is running on.
As a result, conductor started passing 'scheduled_node' to the
compute which was using it for logic to tell if a claim should be
attempted. We don't need to do a claim for a rebuild since we're
on the same host.
This removes the scheduled_node logic from the claim code, as we
should only ever attempt a claim if we're evacuating, which we
can determine based on the 'recreate' parameter.
Conflicts: nova/compute/manager.py
NOTE(mriedem): The conflict is due to change
I0883c2ba1989c5d5a46e23bcbcda53598707bcbc in Queens.
Change-Id: I7fde8ce9dea16679e76b0cb2db1427aeeec0c222
Closes-Bug: #1750618
(cherry picked from commit a39029076c7997236a7f999682fb1e998c474204)
(cherry picked from commit 3c5e519a8875a9766a0d3a06cb76cceba26634e6)
Reviewed: https:/ /review. openstack. org/550555 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9890f3f6962 2489a0fd57cb1df 354d7aa60161e0
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 9890f3f69622489 a0fd57cb1df354d 7aa60161e0
Author: Matt Riedemann <email address hidden>
Date: Tue Feb 20 13:48:12 2018 -0500
Only attempt a rebuild claim for an evacuation to a new host
Change I11746d1ea996a0 f18b7c54b4c9c21 df58cc4714b changed the
behavior of the API and conductor when rebuilding an instance
with a new image such that the image is run through the scheduler
filters again to see if it will work on the existing host that
the instance is running on.
As a result, conductor started passing 'scheduled_node' to the
compute which was using it for logic to tell if a claim should be
attempted. We don't need to do a claim for a rebuild since we're
on the same host.
This removes the scheduled_node logic from the claim code, as we
should only ever attempt a claim if we're evacuating, which we
can determine based on the 'recreate' parameter.
Conflicts:
nova/ compute/ manager. py
NOTE(mriedem): The conflict is due to change 89c5d5a46e23bcb cda53598707bcbc in Queens.
I0883c2ba19
Change-Id: I7fde8ce9dea166 79e76b0cb2db142 7aeeec0c222 36a7f999682fb1e 998c474204) 66a0d3a06cb76cc eba26634e6)
Closes-Bug: #1750618
(cherry picked from commit a39029076c79972
(cherry picked from commit 3c5e519a8875a97