Comment 11 for bug 1662483

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

Reviewed: https://review.openstack.org/637536
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f0b833a352f8859c7b7e299d90440acfbd42e9db
Submitter: Zuul
Branch: stable/pike

commit f0b833a352f8859c7b7e299d90440acfbd42e9db
Author: Gary Kotton <email address hidden>
Date: Wed Feb 13 09:50:14 2019 -0800

    Lock detach_volume

    A detach_volume operation may take place during a attach_volume or
    delete_instance opertaion. This may lead to a race condition which
    would result in an instance going into an error state as the volume
    operation is not atomic.

    Commit 4c4dc3a6d added the lock around the attach_volume. This
    follows that same pattern.

    Co-Authored-By: Matthew Booth <email address hidden>

    Change-Id: I7261135a44f0c2eca4732c8360b9c74b729991a8
    Closes-bug: #1662483
    (cherry picked from commit 2e4e203c1a4c4f91dd1aabae8c8d7b745df99be7)