Blame SOURCES/sos-bz839342-cluster-collect-crm_report.patch

6b17e9
commit 89a479f315302e87267ec17e1b5d8e5f4b6d8a19
6b17e9
Author: Bryn M. Reeves <bmr@redhat.com>
6b17e9
Date:   Wed Aug 14 18:36:25 2013 +0100
6b17e9
6b17e9
    Add crm_report support to cluster plug-in
6b17e9
    
6b17e9
    Recent cluster stacks using the pacemaker stack include a
6b17e9
    crm_report script to generate debugging information for the
6b17e9
    cluster.
6b17e9
    
6b17e9
    Call it in single-node mode in the cluster module.
6b17e9
    
6b17e9
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
6b17e9
6b17e9
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
6b17e9
index 0ed3cb4..809f6fd 100644
6b17e9
--- a/sos/plugins/cluster.py
6b17e9
+++ b/sos/plugins/cluster.py
6b17e9
@@ -82,6 +82,9 @@ class Cluster(Plugin, RedHatPlugin):
6b17e9
         self.add_cmd_output("dlm_tool dump")
6b17e9
         self.add_cmd_output("dlm_tool ls -n")
6b17e9
         self.add_cmd_output("mkqdisk -L")
6b17e9
+        crm_dest = os.path.join(self.cInfo['cmddir'],
6b17e9
+                                self.name(), 'crm_report')
6b17e9
+        self.collectExtOutput("crm_report -S --dest %s" % crm_dest)
6b17e9
 
6b17e9
     def do_lockdump(self):
6b17e9
         status, output, time = self.call_ext_prog("dlm_tool ls")