aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/openstack.py63
1 files changed, 30 insertions, 33 deletions
diff --git a/sos/plugins/openstack.py b/sos/plugins/openstack.py
index 69a830bc..9c209e63 100644
--- a/sos/plugins/openstack.py
+++ b/sos/plugins/openstack.py
@@ -29,47 +29,44 @@ class OpenStack(Plugin):
def setup(self):
# Nova
- if os.path.exists("nova-manage"):
- self.add_cmd_output(
- "nova-manage config list 2>/dev/null | sort",
- suggest_filename="nova_config_list")
- self.add_cmd_output(
- "nova-manage service list 2>/dev/null",
- suggest_filename="nova_service_list")
- self.add_cmd_output(
- "nova-manage db version 2>/dev/null",
- suggest_filename="nova_db_version")
- self.add_cmd_output(
- "nova-manage fixed list 2>/dev/null",
- suggest_filename="nova_fixed_ip_list")
- self.add_cmd_output(
- "nova-manage floating list 2>/dev/null",
- suggest_filename="nova_floating_ip_list")
- self.add_cmd_output(
- "nova-manage flavor list 2>/dev/null",
- suggest_filename="nova_flavor_list")
- self.add_cmd_output(
- "nova-manage network list 2>/dev/null",
- suggest_filename="nova_network_list")
- self.add_cmd_output(
- "nova-manage vm list 2>/dev/null",
- suggest_filename="nova_vm_list")
+ self.add_cmd_output(
+ "nova-manage config list 2>/dev/null | sort",
+ suggest_filename="nova_config_list")
+ self.add_cmd_output(
+ "nova-manage service list 2>/dev/null",
+ suggest_filename="nova_service_list")
+ self.add_cmd_output(
+ "nova-manage db version 2>/dev/null",
+ suggest_filename="nova_db_version")
+ self.add_cmd_output(
+ "nova-manage fixed list 2>/dev/null",
+ suggest_filename="nova_fixed_ip_list")
+ self.add_cmd_output(
+ "nova-manage floating list 2>/dev/null",
+ suggest_filename="nova_floating_ip_list")
+ self.add_cmd_output(
+ "nova-manage flavor list 2>/dev/null",
+ suggest_filename="nova_flavor_list")
+ self.add_cmd_output(
+ "nova-manage network list 2>/dev/null",
+ suggest_filename="nova_network_list")
+ self.add_cmd_output(
+ "nova-manage vm list 2>/dev/null",
+ suggest_filename="nova_vm_list")
self.add_copy_specs(["/etc/nova/",
"/var/log/nova/"])
# Glance
- if os.path.exists("glance-manage"):
- self.add_cmd_output(
- "glance-manage db_version",
- suggest_filename="glance_db_version")
+ self.add_cmd_output(
+ "glance-manage db_version",
+ suggest_filename="glance_db_version")
self.add_copy_specs(["/etc/glance/",
"/var/log/glance/"])
# Cinder
- if os.path.exists("cinder-manage"):
- self.add_cmd_output(
- "cinder-manage db version",
- suggest_filename="cinder_db_version")
+ self.add_cmd_output(
+ "cinder-manage db version",
+ suggest_filename="cinder_db_version")
self.add_copy_specs(["/etc/cinder/",
"/var/log/cinder/"])