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

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