[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhel6-branch] iscsi: better IBFT logging.



Related: rhbz#529443
---
 storage/iscsi.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/storage/iscsi.py b/storage/iscsi.py
index 8611d51..d4d0ab4 100644
--- a/storage/iscsi.py
+++ b/storage/iscsi.py
@@ -136,12 +136,14 @@ class iscsi(object):
         try:
             found_nodes = libiscsi.discover_firmware()
         except:
-            # an exception here means there is no ibft firmware, just return
+            log.info("iscsi: No IBFT info found.");
             return
 
         for node in found_nodes:
             try:
                 node.login()
+                log.info("iscsi IBFT: logged into %s at %s:%s through %s" % (
+                    node.name, node.address, node.port, node.iface))
                 self.nodes.append(node)
                 self.ibftNodes.append(node)
             except IOError, e:
@@ -267,9 +269,8 @@ class iscsi(object):
             node.setAuth(authinfo)
             node.login()
             rc = True
-            log.info("iSCSI: logged into %s %s:%s" % (node.name, 
-                                                      node.address, 
-                                                      node.port))
+            log.info("iSCSI: logged into %s at %s:%s through %s" % (
+                    node.name, node.address, node.port, node.iface))
             self.nodes.append(node)
         except (IOError, ValueError) as e:
             msg = str(e)
-- 
1.7.3.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]