]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix LVM thin pool creation race
authorDuncan Thomas <duncan.thomas@gmail.com>
Tue, 13 Jan 2015 16:41:13 +0000 (18:41 +0200)
committerDuncan Thomas <duncan.thomas@hp.com>
Fri, 13 Mar 2015 16:22:35 +0000 (18:22 +0200)
commitc86f2be2e217e82c80e7ff68904e90ec6c5cba7f
treee99d2d8476ba9c82b4fe2f5faacc8edbe0e411f7
parentfadc8334740ac4b98e4755c28fe29b15cc1541bc
Fix LVM thin pool creation race

In the event that two copied of the LVM driver get init called at
the same time (e.g. cinder-volume and cinder-backup getting
started in parallel, on the same host), it is possible for the
thin pool check/create to race. Add a simple recheck if the create
fails, to cover this window.

Change-Id: I006970736ba0e62df383bacc79b5754dea2e9a3e
Closes-Bug: #1410341
cinder/brick/local_dev/lvm.py