Browse Source

Merge "Only reverify backing lun when create backing lun"

changes/96/64596/1
Jenkins 8 years ago
committed by Gerrit Code Review
parent
commit
f52cb1b1c4
  1. 8
      cinder/brick/iscsi/iscsi.py

8
cinder/brick/iscsi/iscsi.py

@ -236,10 +236,10 @@ class TgtAdm(TargetAdmin):
os.unlink(volume_path)
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
# Finally check once more and if no go, fail and punt
if not self._verify_backing_lun(iqn, tid):
os.unlink(volume_path)
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
# Finally check once more and if no go, fail and punt
if not self._verify_backing_lun(iqn, tid):
os.unlink(volume_path)
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
if old_persist_file is not None and os.path.exists(old_persist_file):
os.unlink(old_persist_file)

Loading…
Cancel
Save