Blame SOURCES/sos-bz1928650-powerpc-nhv-scsi-logs.patch

bffc8a
From 271c35b9be95cf4957150fd702823fbb46ddaa6b Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Tue, 19 Jan 2021 19:54:26 +0530
bffc8a
Subject: [PATCH 1/2] [powerpc]:Add support to collect HNV infomation
bffc8a
bffc8a
This patch is to update powerpc plugin to collect
bffc8a
Hyper-V Network Virtualization information.
bffc8a
bffc8a
/var/log/hcnmgr             -- hybridnetwork debugging messages. Must collect
bffc8a
/var/ct/IBM.DRM.stderr      -- DynamicRM log messages
bffc8a
/var/ct/IW/log/mc/IBM.DRM/trace* -- IBM DRM traces
bffc8a
lsdevinfo
bffc8a
ournalctl
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
---
bffc8a
 sos/report/plugins/kernel.py  | 1 -
bffc8a
 sos/report/plugins/powerpc.py | 9 +++++++--
bffc8a
 2 files changed, 7 insertions(+), 3 deletions(-)
bffc8a
bffc8a
diff --git a/sos/report/plugins/kernel.py b/sos/report/plugins/kernel.py
bffc8a
index 27e0e4d00..febe2ad0a 100644
bffc8a
--- a/sos/report/plugins/kernel.py
bffc8a
+++ b/sos/report/plugins/kernel.py
bffc8a
@@ -106,7 +106,6 @@ def setup(self):
bffc8a
             "/proc/misc",
bffc8a
             "/var/log/dmesg",
bffc8a
             "/sys/fs/pstore",
bffc8a
-            "/var/log/hcnmgr",
bffc8a
             clocksource_path + "available_clocksource",
bffc8a
             clocksource_path + "current_clocksource"
bffc8a
         ])
bffc8a
diff --git a/sos/report/plugins/powerpc.py b/sos/report/plugins/powerpc.py
bffc8a
index d29eb0a63..c63551cad 100644
bffc8a
--- a/sos/report/plugins/powerpc.py
bffc8a
+++ b/sos/report/plugins/powerpc.py
bffc8a
@@ -63,7 +63,10 @@ def setup(self):
bffc8a
                 "/proc/ppc64/systemcfg",
bffc8a
                 "/var/log/platform",
bffc8a
                 "/var/log/drmgr",
bffc8a
-                "/var/log/drmgr.0"
bffc8a
+                "/var/log/drmgr.0",
bffc8a
+                "/var/log/hcnmgr",
bffc8a
+                "/var/ct/IBM.DRM.stderr",
bffc8a
+                "/var/ct/IW/log/mc/IBM.DRM/trace*"
bffc8a
             ])
bffc8a
             ctsnap_path = self.get_cmd_output_path(name="ctsnap", make=True)
bffc8a
             self.add_cmd_output([
bffc8a
@@ -74,8 +77,10 @@ def setup(self):
bffc8a
                 "serv_config -l",
bffc8a
                 "bootlist -m both -r",
bffc8a
                 "lparstat -i",
bffc8a
-                "ctsnap -xrunrpttr -d %s" % (ctsnap_path)
bffc8a
+                "ctsnap -xrunrpttr -d %s" % (ctsnap_path),
bffc8a
+                "lsdevinfo"
bffc8a
             ])
bffc8a
+            self.add_service_status("hcn-init")
bffc8a
 
bffc8a
         if isPowerNV:
bffc8a
             self.add_copy_spec([
bffc8a
bffc8a
From 692eba8eeec6254bdb356a6bfdc8cfa1f77bfbbc Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Tue, 19 Jan 2021 19:58:53 +0530
bffc8a
Subject: [PATCH 2/2] [scsi]:Add support to collect SCSI debugging logs
bffc8a
bffc8a
This patch updates scsi plugin to collect
bffc8a
additional logs for SCSI devices
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
---
bffc8a
 sos/report/plugins/scsi.py | 16 ++++++++++++----
bffc8a
 1 file changed, 12 insertions(+), 4 deletions(-)
bffc8a
bffc8a
diff --git a/sos/report/plugins/scsi.py b/sos/report/plugins/scsi.py
bffc8a
index 50cfca0f7..28d1396c6 100644
bffc8a
--- a/sos/report/plugins/scsi.py
bffc8a
+++ b/sos/report/plugins/scsi.py
bffc8a
@@ -29,10 +29,18 @@ def setup(self):
bffc8a
         ])
bffc8a
 
bffc8a
         self.add_cmd_output("lsscsi -i", suggest_filename="lsscsi")
bffc8a
-        self.add_cmd_output("sg_map -x")
bffc8a
-        self.add_cmd_output("lspath")
bffc8a
-        self.add_cmd_output("lsmap -all")
bffc8a
-        self.add_cmd_output("lsnports")
bffc8a
+
bffc8a
+        self.add_cmd_output([
bffc8a
+            "sg_map -x",
bffc8a
+            "lspath",
bffc8a
+            "lsmap -all",
bffc8a
+            "lsnports",
bffc8a
+            "lsscsi -H",
bffc8a
+            "lsscsi -g",
bffc8a
+            "lsscsi -d",
bffc8a
+            "lsscsi -s",
bffc8a
+            "lsscsi -L"
bffc8a
+        ])
bffc8a
 
bffc8a
         scsi_hosts = glob("/sys/class/scsi_host/*")
bffc8a
         self.add_blockdev_cmd("udevadm info -a %(dev)s", devices=scsi_hosts,