]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Dont retry if target creation succeeds
authorJohn Griffith <john.griffith@solidfire.com>
Mon, 30 Sep 2013 14:45:52 +0000 (08:45 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Mon, 30 Sep 2013 14:48:59 +0000 (08:48 -0600)
commitd9514d796185220715b09c8c17e71eeb1337ba2f
treeeedbab4bb9efc8898eb42c561a2c26cf522022bc
parent0f7d9377866d31fdaaf7e398af9b4e679e5b24f1
Dont retry if target creation succeeds

The target creation retry loop was not breaking when
the target was succesfully created.  This is "sometimes" ok,
however in other cases this will actually cause a failure in
the second create and the backing Lun will be deleted and not
created again succesfully due most likely to a busy status on the
target.

Add a break in the try block.

Change-Id: I875f6302868651b5b42d4796cd2714fba35e525e
Closes-Bug: #1226337
cinder/volume/drivers/lvm.py