commit 132636dd610d7e5cce24848776e942d229199e18
Author: Matt Riedemann <email address hidden>
Date: Thu Nov 16 12:18:34 2017 -0500
Fail fast if changing image on a volume-backed server rebuild
We don't support changing the image in the root disk of a volume-backed
server during a rebuild. The API will change the instance.image_ref
attribute to the newly supplied image_href to the rebuild API but the
actual image used by the server after the rebuild will be the original
image, which is wrong.
We need to just fail fast in this case in the API since the compute
service doesn't support it. We also need to ensure that instance.image_ref
doesn't get modified since a missing value here is used by novaclient and
probably other HTTP API users as an indication of a volume-backed server.
Reviewed: https:/ /review. openstack. org/520660 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=132636dd610 d7e5cce24848776 e942d229199e18
Committed: https:/
Submitter: Zuul
Branch: master
commit 132636dd610d7e5 cce24848776e942 d229199e18
Author: Matt Riedemann <email address hidden>
Date: Thu Nov 16 12:18:34 2017 -0500
Fail fast if changing image on a volume-backed server rebuild
We don't support changing the image in the root disk of a volume-backed
server during a rebuild. The API will change the instance.image_ref
attribute to the newly supplied image_href to the rebuild API but the
actual image used by the server after the rebuild will be the original
image, which is wrong.
We need to just fail fast in this case in the API since the compute
service doesn't support it. We also need to ensure that instance.image_ref
doesn't get modified since a missing value here is used by novaclient and
probably other HTTP API users as an indication of a volume-backed server.
See the related mailing list discussion for more details: lists.openstack .org/pipermail/ openstack- dev/2017- October/ 123255. html
http://
Co-Authored-By: Chris Friesen <email address hidden> 714fb44f8ca9875 121e066bc10
Change-Id: If4c5fb782bb7e7
Closes-Bug: #1482040