Comment 10 for bug 1489304

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

Reviewed: https://review.opendev.org/748558
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=683005df39cbb825ff0702cd91773ad16d7b3998
Submitter: Zuul
Branch: stable/train

commit 683005df39cbb825ff0702cd91773ad16d7b3998
Author: sunhao <suha9102@163.com>
Date: Wed Jun 10 10:26:49 2020 +0800

    Add checks for volume status when rebuilding

    When rebuilding, we should only allow detaching
    the volume with 'in-use' status, volume in status
    such as 'retyping' should not allowed.

    Conflicts:
        nova/api/openstack/compute/servers.py
        nova/compute/api.py
        nova/tests/unit/api/openstack/compute/test_server_actions.py
    Modified:
        nova/tests/unit/compute/test_compute_api.py

    NOTE(elod.illes):
    * conflicts in servers.py and test_server_actions.py are due to bug
      fixing patch I25eff0271c856a8d3e83867b448e1dec6f6732ab is not
      backported to stable/train
    * api.py conflict is due to Ic2ad1468d31b7707b7f8f2b845a9cf47d9d076d5
      is part of a feature introduced in Ussuri
    * modification of test_compute_api.py is also required due to patch
      I25eff0271c856a8d3e83867b448e1dec6f6732ab is not backported and
      another patch, Ide8eb9e09d22f20165474d499ef0524aefc67854, that
      cannot be backported to stable/train

    Change-Id: I7f93cfd18f948134c9cb429dea55740d2cf97994
    Closes-Bug: #1489304
    (cherry picked from commit 10e9a9b9fc62a3cf72c3717e3621ed95d3cf5519)
    (cherry picked from commit bcbeae2c605f4ab4ad805dddccac802928a180b6)