aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-05-15 17:32:06 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-05-15 17:32:06 +0100
commitd7af5cddbbb9d93e3af5bff3753d29ff1c02cd8b (patch)
tree0b7148562ea3e7a128815bce7d59eeae74c836a8
parent6a4a5fed78ab01acb411c6d0c4df23127ec5f792 (diff)
downloadsos-d7af5cddbbb9d93e3af5bff3753d29ff1c02cd8b.tar.gz
[libvirt] fix per-process cgroup collection
The per-pid cgroup data is in a pseudofile named 'cgroup', and not 'cgroups' as in commit 2523ad5. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/libvirt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py
index cbb4fb42..674dd67f 100644
--- a/sos/plugins/libvirt.py
+++ b/sos/plugins/libvirt.py
@@ -65,7 +65,7 @@ class Libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
# get details of processes of KVM hosts
for pidfile in glob.glob("/var/run/libvirt/*/*.pid"):
pid = open(pidfile).read().splitlines()[0]
- for pf in ["environ", "cgroups", "maps", "numa_maps", "limits"]:
+ for pf in ["environ", "cgroup", "maps", "numa_maps", "limits"]:
self.add_copy_spec("/proc/%s/%s" % (pid, pf))
def postproc(self):