From e88b909a1dc58a9286cfc1ec520256c7312a6c28 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Fri, 4 Jan 2013 17:03:55 +0000 Subject: [PATCH] task: ceph_manager: add 'get_mon_health' function Signed-off-by: Joao Eduardo Luis --- teuthology/task/ceph_manager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 69aa07995d..51c2f2febc 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) -- 2.39.5