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.
Reviewed: https:/ /review. openstack. org/37444 github. com/openstack/ cinder/ commit/ 201890c17e0f29d 1ec8e5040206ecd 1be09e22f7
Committed: http://
Submitter: Jenkins
Branch: master
commit 201890c17e0f29d 1ec8e5040206ecd 1be09e22f7
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 volume[ 'id']. When we create multiple clone volumes
snapshot for copying, the temp snapshot name is
"clone-snap-%s" % source_
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: I3a4f2585ea9e6f 70b6f6f9889e900 f19559b8176