aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-03-07 09:00:00 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-03-19 18:26:45 +0000
commit6291335347872c2a18ee281783240ec48d0e30b4 (patch)
treefe897fbeb50b3299158192f888c27f87e6db728c
parent1b18e7c7713ef93120851d495ca7b5dc8be408ec (diff)
downloadsos-6291335347872c2a18ee281783240ec48d0e30b4.tar.gz
Add basic support for CloudForms data collection
Add support for Subscription Asset Manager diagnostics Resolves: bz752666, bz752670
-rw-r--r--sos/plugins/cloudforms.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/sos/plugins/cloudforms.py b/sos/plugins/cloudforms.py
new file mode 100644
index 00000000..3588ceef
--- /dev/null
+++ b/sos/plugins/cloudforms.py
@@ -0,0 +1,27 @@
+import sos.plugintools
+import os
+
+class cloudforms(sos.plugintools.PluginBase):
+ """CloudForms related information
+ """
+
+ def defaultenabled(self):
+ return True
+
+ def checkenabled(self):
+ self.packages = ["katello", "katello-common",
+ "katello-headpin", "aeolus-conductor"]
+ self.files = ["/usr/share/katello/script/katello-debug",
+ "/usr/bin/aeolus-debug"]
+ return sos.plugintools.PluginBase.checkenabled(self)
+
+ def setup(self):
+ katello_debug = "/usr/share/katello/script/katello-debug"
+ aeolus_debug = "/usr/bin/aeolus-debug"
+ if os.path.isfile(katello_debug):
+ katello_debug_path = os.path.join(self.cInfo['dstroot'],"katello-debug")
+ self.collectExtOutput("%s --notar -d %s" % (katello_debug, katello_debug_path))
+ if os.path.isfile(aeolus_debug):
+ aeolus_debug_path = os.path.join(self.cInfo['dstroot'],"aeolus-debug")
+ self.collectExtOutput("%s --notar -d %s" % (aeolus_debug, aeolus_debug_path))
+