Blame SOURCES/sos-bz1887390-kdump-logfiles.patch

8bcace
From be347440d5f8d650791ff044970c5e65ee8ec2a3 Mon Sep 17 00:00:00 2001
8bcace
From: Jose Castillo <jcastillo@redhat.com>
8bcace
Date: Mon, 12 Oct 2020 13:47:47 +0100
8bcace
Subject: [PATCH] [kdump] Collect new kdump logfiles
8bcace
8bcace
Two new logfiles are available in kdump:
8bcace
8bcace
/var/log/kdump.log
8bcace
/var/crash/*/kexec-kdump.log
8bcace
8bcace
The path for the second logfile mentioned above is the
8bcace
default one, but this patch deals with a change in
8bcace
default directory the same way that we do with the
8bcace
file vmcore-dmesg.txt.
8bcace
8bcace
Resolves: RHBZ#1817042 and RHBZ#1887390.
8bcace
Resolves: #2270
8bcace
8bcace
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
8bcace
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
8bcace
---
8bcace
 sos/report/plugins/kdump.py | 4 +++-
8bcace
 1 file changed, 3 insertions(+), 1 deletion(-)
8bcace
8bcace
diff --git a/sos/report/plugins/kdump.py b/sos/report/plugins/kdump.py
8bcace
index 41d08b5b..4eccb3ff 100644
8bcace
--- a/sos/report/plugins/kdump.py
8bcace
+++ b/sos/report/plugins/kdump.py
8bcace
@@ -71,7 +71,8 @@ class RedHatKDump(KDump, RedHatPlugin):
8bcace
         self.add_copy_spec([
8bcace
             "/etc/kdump.conf",
8bcace
             "/etc/udev/rules.d/*kexec.rules",
8bcace
-            "/var/crash/*/vmcore-dmesg.txt"
8bcace
+            "/var/crash/*/vmcore-dmesg.txt",
8bcace
+            "/var/log/kdump.log"
8bcace
         ])
8bcace
         try:
8bcace
             path = self.read_kdump_conffile()
8bcace
@@ -80,6 +81,7 @@ class RedHatKDump(KDump, RedHatPlugin):
8bcace
             path = "/var/crash"
8bcace
 
8bcace
         self.add_copy_spec("{}/*/vmcore-dmesg.txt".format(path))
8bcace
+        self.add_copy_spec("{}/*/kexec-kdump.log".format(path))
8bcace
 
8bcace
 
8bcace
 class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
8bcace
-- 
8bcace
2.26.2
8bcace