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:
Walter A. Boring IV 2016-09-27 17:03:36 +03:00 committed by Walter A. Boring IV (hemna)
parent 8d0248dabc
commit b0ba70491b
1 changed files with 0 additions and 2 deletions

View File

@ -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))