aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivoks <ante.karamatic@canonical.com>2013-03-28 09:49:31 +0000
committerivoks <ante.karamatic@canonical.com>2013-03-28 09:49:31 +0000
commit011fdc0e8225e1a1132bcae933773e2c368ccd1c (patch)
tree26a66303b9c9e36f890e5361a623dfba103ed49a
parent2fcb1f4a6fbf5abda746bf1470edb55ccc6b01a6 (diff)
downloadsos-011fdc0e8225e1a1132bcae933773e2c368ccd1c.tar.gz
Add basic cinder data to the plugin
Pull in /etc/cinder, cinder version and logs for cinder.
-rw-r--r--sos/plugins/openstack.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/sos/plugins/openstack.py b/sos/plugins/openstack.py
index a33185ab..84089504 100644
--- a/sos/plugins/openstack.py
+++ b/sos/plugins/openstack.py
@@ -32,7 +32,12 @@ class DebianOpenStack(openstack, DebianPlugin, UbuntuPlugin):
"""OpenStack related information for Debian based distributions
"""
- packages = ('glance',
+ packages = ('cinder-api',
+ 'cinder-backup',
+ 'cinder-common',
+ 'cinder-scheduler',
+ 'cinder-volume',
+ 'glance',
'glance-api',
'glance-client',
'glance-common',
@@ -73,6 +78,8 @@ class DebianOpenStack(openstack, DebianPlugin, UbuntuPlugin):
'swift-object',
'swift-proxy',
'swauth',
+ 'python-cinder',
+ 'python-cinderclient',
'python-django-horizon',
'python-glance',
'python-keystone',
@@ -118,6 +125,14 @@ class DebianOpenStack(openstack, DebianPlugin, UbuntuPlugin):
"/etc/default/nova-volume",
"/etc/sudoers.d/nova_sudoers",
"/etc/logrotate.d/nova-*"])
+ # Cinder
+ if os.path.exists("/usr/bin/cinder-manage"):
+ self.addCmdOutput(
+ "/usr/bin/cinder-manage db version",
+ suggest_filename="cinder_db_version")
+ self.addCopySpecs(["/etc/cinder/",
+ "/var/log/cinder/",
+ "/etc/logrotate.d/cinder-*"])
# Glance
if os.path.exists("/usr/bin/glance-manage"):
self.addCmdOutput(