Blob Blame History Raw
commit 89a479f315302e87267ec17e1b5d8e5f4b6d8a19
Author: Bryn M. Reeves <bmr@redhat.com>
Date:   Wed Aug 14 18:36:25 2013 +0100

    Add crm_report support to cluster plug-in
    
    Recent cluster stacks using the pacemaker stack include a
    crm_report script to generate debugging information for the
    cluster.
    
    Call it in single-node mode in the cluster module.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>

diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
index 0ed3cb4..809f6fd 100644
--- a/sos/plugins/cluster.py
+++ b/sos/plugins/cluster.py
@@ -82,6 +82,9 @@ class Cluster(Plugin, RedHatPlugin):
         self.add_cmd_output("dlm_tool dump")
         self.add_cmd_output("dlm_tool ls -n")
         self.add_cmd_output("mkqdisk -L")
+        crm_dest = os.path.join(self.cInfo['cmddir'],
+                                self.name(), 'crm_report')
+        self.collectExtOutput("crm_report -S --dest %s" % crm_dest)
 
     def do_lockdump(self):
         status, output, time = self.call_ext_prog("dlm_tool ls")