From 0ec807218729f6819ceb2875856c399248b44809 Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Thu, 27 Aug 2015 10:06:59 -0700 Subject: [PATCH] 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 --- os_brick/initiator/connector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_brick/initiator/connector.py b/os_brick/initiator/connector.py index cf644a62c..eba4b956d 100644 --- a/os_brick/initiator/connector.py +++ b/os_brick/initiator/connector.py @@ -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)