Comment 5 for bug 1349888

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

Reviewed: https://review.openstack.org/110319
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=339a97d0f2d17f531cfc79e09cd8b8bc75ce6e2a
Submitter: Jenkins
Branch: master

commit 339a97d0f2d17f531cfc79e09cd8b8bc75ce6e2a
Author: git-harry <email address hidden>
Date: Mon Aug 4 15:17:29 2014 +0100

    Fix creating bdm for failed volume attachment

    This commit modifies the reserve_block_device_name method to return the
    bdm object, when the corresponding keyword argument is True. This
    ensures the correct bdm is destroyed if the attach fails. Currently the
    code assumes only one bdm per volume and so retrieving it can cause the
    incorrect db entry to be returned.

    Change-Id: I22a6db76d2044331d1a846eb4b6d7338c50270e2
    Closes-Bug: #1349888