Cinder volumes are organized under vCenter inventory folder
with name given by config option vmware_volume_folder. During
volume creation, this folder is created only if it doesn't
exist. Concurrent volume create operations when there is no
such folder can result in a race condition-- some of the
create operations will fail due to already existing folder.
This patch fix this by ignoring the exception and returning a
reference to the existing folder.
Reviewed: https:/ /review. openstack. org/167989 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=2a20781029f 9f978269bba508a 6d6873917839d8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2a20781029f9f97 8269bba508a6d68 73917839d8
Author: Vipin Balachandran <email address hidden>
Date: Thu Mar 26 06:10:27 2015 -0700
VMware: Handle concurrent inventory folder create
Cinder volumes are organized under vCenter inventory folder volume_ folder. During
with name given by config option vmware_
volume creation, this folder is created only if it doesn't
exist. Concurrent volume create operations when there is no
such folder can result in a race condition-- some of the
create operations will fail due to already existing folder.
This patch fix this by ignoring the exception and returning a
reference to the existing folder.
Change-Id: Ic9371957bb76a0 32985363880fbeb da523574305
Closes-Bug: #1436844