Comment 2 for bug 1202139

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

Reviewed: https://review.openstack.org/37444
Committed: http://github.com/openstack/cinder/commit/201890c17e0f29d1ec8e5040206ecd1be09e22f7
Submitter: Jenkins
Branch: master

commit 201890c17e0f29d1ec8e5040206ecd1be09e22f7
Author: Rongze Zhu <email address hidden>
Date: Wed Jul 17 18:15:04 2013 +0800

    Fixes race condition in LVMVolumeDriver create_cloned_volume method

    When we create a clone volume, LVMVolumeDriver will firstly create a temp
    snapshot for copying, the temp snapshot name is
    "clone-snap-%s" % source_volume['id']. When we create multiple clone volumes
    of the same volume simultaneously, which would trigger the race issuse.

    I changes the temp snapshot name template to "clone-snap-%s" % volume['id'],
    so temp snapshot name will be unique.

    Fixes bug #1202139

    Change-Id: I3a4f2585ea9e6f70b6f6f9889e900f19559b8176