Blame SOURCES/sos-bz1148381-libvirt-cgroups-collection.patch

084cc6
From d7af5cddbbb9d93e3af5bff3753d29ff1c02cd8b Mon Sep 17 00:00:00 2001
084cc6
From: "Bryn M. Reeves" <bmr@redhat.com>
084cc6
Date: Mon, 15 May 2017 17:32:06 +0100
084cc6
Subject: [PATCH] [libvirt] fix per-process cgroup collection
084cc6
084cc6
The per-pid cgroup data is in a pseudofile named 'cgroup', and not
084cc6
'cgroups' as in commit 2523ad5.
084cc6
084cc6
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
084cc6
---
084cc6
 sos/plugins/libvirt.py | 2 +-
084cc6
 1 file changed, 1 insertion(+), 1 deletion(-)
084cc6
084cc6
diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py
084cc6
index cbb4fb4..674dd67 100644
084cc6
--- a/sos/plugins/libvirt.py
084cc6
+++ b/sos/plugins/libvirt.py
084cc6
@@ -65,7 +65,7 @@ class Libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
084cc6
         # get details of processes of KVM hosts
084cc6
         for pidfile in glob.glob("/var/run/libvirt/*/*.pid"):
084cc6
             pid = open(pidfile).read().splitlines()[0]
084cc6
-            for pf in ["environ", "cgroups", "maps", "numa_maps", "limits"]:
084cc6
+            for pf in ["environ", "cgroup", "maps", "numa_maps", "limits"]:
084cc6
                 self.add_copy_spec("/proc/%s/%s" % (pid, pf))
084cc6
 
084cc6
     def postproc(self):
084cc6
-- 
084cc6
2.7.4
084cc6