Merge "Only reverify backing lun when create backing lun"
This commit is contained in:
commit
f52cb1b1c4
|
@ -236,10 +236,10 @@ class TgtAdm(TargetAdmin):
|
||||||
os.unlink(volume_path)
|
os.unlink(volume_path)
|
||||||
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
|
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
|
||||||
|
|
||||||
# Finally check once more and if no go, fail and punt
|
# Finally check once more and if no go, fail and punt
|
||||||
if not self._verify_backing_lun(iqn, tid):
|
if not self._verify_backing_lun(iqn, tid):
|
||||||
os.unlink(volume_path)
|
os.unlink(volume_path)
|
||||||
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
|
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
|
||||||
|
|
||||||
if old_persist_file is not None and os.path.exists(old_persist_file):
|
if old_persist_file is not None and os.path.exists(old_persist_file):
|
||||||
os.unlink(old_persist_file)
|
os.unlink(old_persist_file)
|
||||||
|
|
Loading…
Reference in New Issue