Remove the duplicate calls to rescan
This patch removes the initial call to _rescan_iscsi() prior to calling get_potential_volume_paths, because _rescan_iscsi is called inside. Change-Id: I9e668efaf5995e6bcef994d7cfa765546648cf8e
This commit is contained in:
parent
8d0248dabc
commit
b0ba70491b
|
@ -416,9 +416,7 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
|
|||
"Will rescan & retry. Try number: %(tries)s."),
|
||||
{'host_devices': host_devices, 'tries': tries})
|
||||
|
||||
# The rescan isn't documented as being necessary(?), but it helps
|
||||
if self.use_multipath:
|
||||
self._rescan_iscsi()
|
||||
# We need to refresh the paths as the devices may be empty
|
||||
host_devices, target_props = (
|
||||
self._get_potential_volume_paths(connection_properties))
|
||||
|
|
Loading…
Reference in New Issue