aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-02-03 15:17:55 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-02-03 15:17:55 +0000
commit722f87787eaf8b50d16a3964892b16880c8bdbbb (patch)
treef3e5351e5d300de1fd7924fb37137cb3794d7583
parenta9bf294a6898bb1defb396c0c0bca29234855db6 (diff)
downloadsos-722f87787eaf8b50d16a3964892b16880c8bdbbb.tar.gz
Include geo-replication status in gluster plugin
Add the output of 'gluster volume geo-replication status' for each discovered gluster volume to the report. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/gluster.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/gluster.py b/sos/plugins/gluster.py
index 7c54fa09..02dbac34 100644
--- a/sos/plugins/gluster.py
+++ b/sos/plugins/gluster.py
@@ -102,6 +102,13 @@ class Gluster(Plugin, RedHatPlugin):
self.add_copy_spec('/tmp/glusterdump.options')
self.add_copy_spec(self.statedump_dir)
+ volume_file = self.get_cmd_output_now("gluster volume info",
+ "gluster_volume_info")
+ if volume_file:
+ for volname in self.get_volume_names(volume_file):
+ self.add_cmd_output("gluster volume geo-replication %s status"
+ % volname)
+
self.add_cmd_output("gluster volume status")
# collect this last as some of the other actions create log entries
self.add_copy_spec("/var/log/glusterfs")