diff options
author | galstrom21 <jshepher@rackspace.com> | 2012-07-10 15:45:05 -0500 |
---|---|---|
committer | galstrom21 <jshepher@rackspace.com> | 2012-07-10 15:45:05 -0500 |
commit | 8e914d44f7b455caecb507bac44473280339c8d8 (patch) | |
tree | dfa60399937631ff2b165b04ac564828842c2382 | |
parent | 318a38d5eb2c21b6ae34a5e26511ae3a632cf8a4 (diff) | |
download | sos-8e914d44f7b455caecb507bac44473280339c8d8.tar.gz |
adding collectExtOutput calls for nova-manage and glance-manage
-rw-r--r-- | sos/plugins/openstack.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sos/plugins/openstack.py b/sos/plugins/openstack.py index e088e539..c15b2b70 100644 --- a/sos/plugins/openstack.py +++ b/sos/plugins/openstack.py @@ -83,11 +83,23 @@ class DebianOpenStack(openstack, DebianPlugin, UbuntuPlugin): def setup(self): # Nova + if os.path.exists("/usr/bin/nova-manage"): + self.collectExtOutput("/usr/bin/nova-manage config list 2>/dev/null | sort", suggest_filename = "nova_config_list") + self.collectExtOutput("/usr/bin/nova-manage service list 2>/dev/null", suggest_filename = "nova_service_list") + self.collectExtOutput("/usr/bin/nova-manage db version 2>/dev/null", suggest_filename = "nova_db_version") + self.collectExtOutput("/usr/bin/nova-manage fixed list 2>/dev/null", suggest_filename = "nova_fixed_ip_list") + self.collectExtOutput("/usr/bin/nova-manage floating list 2>/dev/null", suggest_filename = "nova_floating_ip_list") + self.collectExtOutput("/usr/bin/nova-manage flavor list 2>/dev/null", suggest_filename = "nova_flavor_list") + self.collectExtOutput("/usr/bin/nova-manage network list 2>/dev/null", suggest_filename = "nova_network_list") + self.collectExtOutput("/usr/bin/nova-manage vm list 2>/dev/null", suggest_filename = "nova_vm_list") self.addCopySpecs(["/etc/nova/", "/var/log/nova/", + "/etc/default/nova-volume", "/etc/sudoers.d/nova_sudoers", "/etc/logrotate.d/nova-*"]) # Glance + if os.path.exists("/usr/bin/glance-manage"): + self.collectExtOutput("/usr/bin/glance-manage db_version", suggest_filename = "glance_db_version") self.addCopySpecs(["/etc/glance/", "/var/log/glance/", "/etc/logrotate.d/glance-*"]) @@ -128,6 +140,7 @@ class RedHatOpenStack(openstack, RedHatPlugin): if (os.path.isfile('/etc/redhat-release') or os.path.isfile('/etc/fedora-release')): self.collectExtOutput("/usr/bin/openstack-status") + self.collectExtOutput("/usr/bin/nova-manage service list") # Nova self.addCopySpecs(["/etc/nova/", |