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

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