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.
Reviewed: https:/ /review. openstack. org/48970 github. com/openstack/ cinder/ commit/ d9514d796185220 715b09c8c17e71e eb1337ba2f
Committed: http://
Submitter: Jenkins
Branch: master
commit d9514d796185220 715b09c8c17e71e eb1337ba2f
Author: John Griffith <email address hidden>
Date: Mon Sep 30 08:45:52 2013 -0600
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: I875f6302868651 b5b42d4796cd271 4fba35e525e
Closes-Bug: #1226337