From: Joao Eduardo Luis Date: Fri, 4 Jan 2013 17:03:55 +0000 (+0000) Subject: task: ceph_manager: add 'get_mon_health' function X-Git-Tag: v0.94.10~27^2^2~364^2~1089^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e88b909a1dc58a9286cfc1ec520256c7312a6c28;p=ceph.git task: ceph_manager: add 'get_mon_health' function Signed-off-by: Joao Eduardo Luis --- diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 69aa07995df..51c2f2febc9 100644 --- a/teuthology/task/ceph_manager.py +++ b/teuthology/task/ceph_manager.py @@ -605,3 +605,9 @@ class CephManager: 'failed to reach quorum size %d before timeout expired' % size time.sleep(3) self.log("quorum is size %d" % size) + + def get_mon_health(self, debug=False): + out = self.raw_cluster_cmd('health', '--format=json') + if debug: + self.log('health:\n{h}'.format(h=out)) + return json.loads(out)