Comment 6 for bug 1096983

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

Reviewed: https://review.openstack.org/20301
Committed: http://github.com/openstack/cinder/commit/2c84413c74e6481abe4af716ea12d8c75b405c25
Submitter: Jenkins
Branch: master

commit 2c84413c74e6481abe4af716ea12d8c75b405c25
Author: John Griffith <email address hidden>
Date: Wed Jan 23 04:15:40 2013 +0000

    Get updated vol status in volume.api.reserve.

    A race condtion was discovered where a nova volume attach
    could easily be performed twice for the same volume. Although
    the cinder attach update would fail, this occured after the BDM
    updates were made and in essence the attach to the compute instance
    had already been issued.

    This change simply forces a get from the DB of the volume-ref in the
    reserve call and checks if an attach is already in progress.

    Fixes bug: 1096983

    Change-Id: Ie0e4156d691ee92b6981078ef0ba62f8c4cdf0c8