aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Jaggars <jhjaggars@gmail.com>2012-07-03 08:12:29 -0700
committerJesse Jaggars <jhjaggars@gmail.com>2012-07-03 08:12:29 -0700
commit007a9467ba08f1d4c2eb860a959e070316509237 (patch)
tree00f2d6fe30db077e620b5b6ae740456c993c8c22
parenta3aeae702e4ce35377369277db3309544e2b3adb (diff)
parentd3bea639a84ea575df665db9f7e607ff95bee0f9 (diff)
downloadsos-007a9467ba08f1d4c2eb860a959e070316509237.tar.gz
Merge pull request #61 from gkotton/openstack
Support for openstack.
-rw-r--r--AUTHORS1
-rw-r--r--sos/plugins/openstack.py60
2 files changed, 61 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index f94b1b63..1973fc98 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,6 +1,7 @@
Adam Stokes <astokes@redhat.com>
Ben Turner <bturner@redhat.com>
Eugene Teo <eteo@redhat.com>
+Gary Kotton <gkotton@redhat.com>
Jesse Jaggars <jjaggars@redhat.com>
Joey Boggs <jboggs@redhat.com>
John Berninger <jwb@redhat.com>
diff --git a/sos/plugins/openstack.py b/sos/plugins/openstack.py
new file mode 100644
index 00000000..ed47f4d3
--- /dev/null
+++ b/sos/plugins/openstack.py
@@ -0,0 +1,60 @@
+### This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+import os
+
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
+
+class openstack(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
+ """openstack related information
+ """
+
+ packages = ('openstack-nova',
+ 'openstack-glance',
+ 'openstack-dashboard',
+ 'openstack-keystone',
+ 'openstack-quantum',
+ 'python-nova',
+ 'python-glanceclient',
+ 'python-keystoneclient',
+ 'python-novaclient',
+ 'python-openstackclient',
+ 'python-quantumclient')
+
+ def setup(self):
+ # If RHEL or Fedora then invoke script for openstack-status
+ if (os.path.isfile('/etc/redhat-release')
+ or os.path.isfile('/etc/fedora-release')):
+ self.collectExtOutput("/usr/bin/openstack-status")
+
+ # Nova
+ self.addCopySpecs(["/etc/nova/",
+ "/var/log/nova/",
+ "/var/lib/nova/",
+ "/etc/polkit-1/localauthority/50-local.d/50-nova.pkla",
+ "/etc/sudoers.d/nova",
+ "/etc/logrotate.d/openstack-nova"])
+
+ # Glance
+ self.addCopySpecs(["/etc/glance/",
+ "/var/log/glance/",
+ "/etc/logrotate.d/openstack-glance"])
+
+ # Keystone
+ self.addCopySpecs(["/etc/keystone/",
+ "/var/log/keystone/"])
+
+ # Quantum
+ self.addCopySpecs(["/etc/quantum/",
+ "/var/log/quantum/"])