Comment 10 for bug 1482040

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/520660
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=132636dd610d7e5cce24848776e942d229199e18
Submitter: Zuul
Branch: master

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.

    See the related mailing list discussion for more details:
    http://lists.openstack.org/pipermail/openstack-dev/2017-October/123255.html

    Co-Authored-By: Chris Friesen <email address hidden>
    Change-Id: If4c5fb782bb7e7714fb44f8ca9875121e066bc10
    Closes-Bug: #1482040