commit a4eebd5de7ef4b63082536718ba7b993a66d47e7
Author: Matt Riedemann <email address hidden>
Date: Fri Nov 17 16:53:39 2017 -0500
Add regression test for rebuilding a volume-backed server
Commit 984dd8ad6add4523d93c7ce5a666a32233e02e34 makes rebuild
check to see if the user is rebuilding an instance with a new
image and if so, to run the scheduler filters again since the
new image might not work with the current host for the instance,
and we rebuild to the same host that the instance is already
running on.
The problem is the instance.image_ref attribute is not set for
a volume-backed (boot-from-volume) instance, so the conditional
in the rebuild() method is always True, which means we always run
through the scheduler for volume-backed instances during rebuild,
even if the image in the root disk isn't changing.
This adds a functional regression test to recreate the bug.
Reviewed: https:/ /review. openstack. org/521200 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a4eebd5de7e f4b63082536718b a7b993a66d47e7
Committed: https:/
Submitter: Zuul
Branch: master
commit a4eebd5de7ef4b6 3082536718ba7b9 93a66d47e7
Author: Matt Riedemann <email address hidden>
Date: Fri Nov 17 16:53:39 2017 -0500
Add regression test for rebuilding a volume-backed server
Commit 984dd8ad6add452 3d93c7ce5a666a3 2233e02e34 makes rebuild
check to see if the user is rebuilding an instance with a new
image and if so, to run the scheduler filters again since the
new image might not work with the current host for the instance,
and we rebuild to the same host that the instance is already
running on.
The problem is the instance.image_ref attribute is not set for
a volume-backed (boot-from-volume) instance, so the conditional
in the rebuild() method is always True, which means we always run
through the scheduler for volume-backed instances during rebuild,
even if the image in the root disk isn't changing.
This adds a functional regression test to recreate the bug.
Change-Id: If79c554b46c44a 7f70f8367426e7d a362d7234c8
Related-Bug: #1732947