iSCSI fix misleading Log warning on connect fail

This patch just changes the LOG.warning message
when we are iterating over the target_portals and trying
to do a connect/login.  When the connect/login fails,
we just log saying that the connect for that portal fails,
instead of log warning that ALL connects failed.

Change-Id: I4c35c5096eb15e47d306744d5ab1d1045c2ac319
Closes-Bug: 1489544
This commit is contained in:
Walter A. Boring IV 2015-08-27 10:06:59 -07:00 committed by Walter A. Boring IV (hemna)
parent fea1ef59bd
commit 0ec8072187
1 changed files with 2 additions and 1 deletions

View File

@ -486,7 +486,8 @@ class ISCSIConnector(InitiatorConnector):
break
else:
LOG.warning(_LW(
'Failed to login to any of the iSCSI targets.'))
'Failed to connect to iSCSI portal %(portal)s.'),
{'portal': props['target_portal']})
host_devices = self._get_device_path(target_props)