commit 10bc4fdbc568670dfd8bec109e8b854ba8ad7949
Author: Matt Riedemann <email address hidden>
Date: Sun Nov 19 17:25:56 2017 -0500
Get original image_id from volume for volume-backed instance rebuild
A volume-backed instance will not have the instance.image_ref
attribute set, to indicate to the API user that it is a volume-backed
instance.
Commit 984dd8ad6add4523d93c7ce5a666a32233e02e34 missed this subtle
difference with how instance.image_ref is used, which means a rebuild
of any volume-backed instance will now run through the scheduler, even
if the image_href passed to rebuild is the same image ID as for the
root volume.
This fixes that case in rebuild by getting the image metadata off the
root volume for a volume-backed instance and compares that to the
image_href passed to rebuild.
Change-Id: I48cda813b9effa37f6c3e0cd2e8a22bb78c79d72
Closes-Bug: #1732947
(cherry picked from commit 54407afef3b446e34c44ba5392ccbf121e266de2)
(cherry picked from commit 4e36c4bd0eab2be619991ae00454906e171720b6)
Reviewed: https:/ /review. openstack. org/525666 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=10bc4fdbc56 8670dfd8bec109e 8b854ba8ad7949
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 10bc4fdbc568670 dfd8bec109e8b85 4ba8ad7949
Author: Matt Riedemann <email address hidden>
Date: Sun Nov 19 17:25:56 2017 -0500
Get original image_id from volume for volume-backed instance rebuild
A volume-backed instance will not have the instance.image_ref
attribute set, to indicate to the API user that it is a volume-backed
instance.
Commit 984dd8ad6add452 3d93c7ce5a666a3 2233e02e34 missed this subtle
difference with how instance.image_ref is used, which means a rebuild
of any volume-backed instance will now run through the scheduler, even
if the image_href passed to rebuild is the same image ID as for the
root volume.
This fixes that case in rebuild by getting the image metadata off the
root volume for a volume-backed instance and compares that to the
image_href passed to rebuild.
Change-Id: I48cda813b9effa 37f6c3e0cd2e8a2 2bb78c79d72 34c44ba5392ccbf 121e266de2) 619991ae0045490 6e171720b6)
Closes-Bug: #1732947
(cherry picked from commit 54407afef3b446e
(cherry picked from commit 4e36c4bd0eab2be