diff options
author | Jose Castillo <jcastillo@redhat.com> | 2020-10-12 13:47:47 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-10-14 10:40:45 -0400 |
commit | be347440d5f8d650791ff044970c5e65ee8ec2a3 (patch) | |
tree | 4556519605368e73da5d728ab4b1646c382330de | |
parent | 086c1c5ca52b0ed8b810ad5a293a574ba990e635 (diff) | |
download | sos-be347440d5f8d650791ff044970c5e65ee8ec2a3.tar.gz |
[kdump] Collect new kdump logfiles
Two new logfiles are available in kdump:
/var/log/kdump.log
/var/crash/*/kexec-kdump.log
The path for the second logfile mentioned above is the
default one, but this patch deals with a change in
default directory the same way that we do with the
file vmcore-dmesg.txt.
Resolves: RHBZ#1817042 and RHBZ#1887390.
Resolves: #2270
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/kdump.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/report/plugins/kdump.py b/sos/report/plugins/kdump.py index 41d08b5b..4eccb3ff 100644 --- a/sos/report/plugins/kdump.py +++ b/sos/report/plugins/kdump.py @@ -71,7 +71,8 @@ class RedHatKDump(KDump, RedHatPlugin): self.add_copy_spec([ "/etc/kdump.conf", "/etc/udev/rules.d/*kexec.rules", - "/var/crash/*/vmcore-dmesg.txt" + "/var/crash/*/vmcore-dmesg.txt", + "/var/log/kdump.log" ]) try: path = self.read_kdump_conffile() @@ -80,6 +81,7 @@ class RedHatKDump(KDump, RedHatPlugin): path = "/var/crash" self.add_copy_spec("{}/*/vmcore-dmesg.txt".format(path)) + self.add_copy_spec("{}/*/kexec-kdump.log".format(path)) class DebianKDump(KDump, DebianPlugin, UbuntuPlugin): |