diff options
-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/", |