aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2021-09-21 14:37:05 +0200
committerJake Hunsaker <jhunsake@redhat.com>2022-02-07 14:23:40 -0500
commita96860356e0d0ee6d8e0608edfb8d0beb49c0579 (patch)
treeb999b8f6dda2be5b6672e8ecc5c060399645d538
parent0eea6b5b713fd4a9edfebfc76094f96040028866 (diff)
downloadsos-a96860356e0d0ee6d8e0608edfb8d0beb49c0579.tar.gz
[libvirt] Collect containerized logs
Update the libvirt plugin to collect logs from /var/log/containers, which may be populated in certain environments, like OpenStack TripleO This is an addition to #1130 where a couple of things got missed Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
-rw-r--r--sos/report/plugins/libvirt.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/report/plugins/libvirt.py b/sos/report/plugins/libvirt.py
index 5caa5802..4e697b4c 100644
--- a/sos/report/plugins/libvirt.py
+++ b/sos/report/plugins/libvirt.py
@@ -50,10 +50,15 @@ class Libvirt(Plugin, IndependentPlugin):
"/var/log/libvirt/libvirtd.log",
"/var/log/libvirt/qemu/*.log*",
"/var/log/libvirt/lxc/*.log",
- "/var/log/libvirt/uml/*.log"
+ "/var/log/libvirt/uml/*.log",
+ "/var/log/containers/libvirt/libvirtd.log",
+ "/var/log/containers/libvirt/qemu/*.log*",
+ "/var/log/containers/libvirt/lxc/*.log",
+ "/var/log/containers/libvirt/uml/*.log",
])
else:
self.add_copy_spec("/var/log/libvirt")
+ self.add_copy_spec("/var/log/containers/libvirt")
if self.path_exists(self.path_join(libvirt_keytab)):
self.add_cmd_output("klist -ket %s" % libvirt_keytab)