Fix Storwize/SVC LUN allocation with holes.
The Storwize/SVC driver should find the first unused LUN, but
continues searching, returning erroneous results. Added 'break'
statement to fix.
Change-Id: Ibd95714e086a513a39fe9d20ffec57135dc5ec55
Fixes: bug 1157012
(cherry picked from commit e0878c8620
)
This commit is contained in:
parent
36e4e85b1f
commit
9ff5bf692e
@ -593,6 +593,7 @@ class StorwizeSVCDriver(san.SanISCSIDriver):
|
||||
for index, n in enumerate(lun_used):
|
||||
if n > index:
|
||||
result_lun = str(index)
|
||||
break
|
||||
|
||||
# Volume is not mapped to host, create a new LUN
|
||||
if not mapped_flag:
|
||||
|
Loading…
Reference in New Issue
Block a user