From: Sage Weil Date: Thu, 8 Aug 2019 13:17:04 +0000 (-0500) Subject: qa/tasks/mgr/mgr_test_case: get mgrmap from 'mgr dump', not status X-Git-Tag: v15.1.0~1928^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F29493%2Fhead;p=ceph.git qa/tasks/mgr/mgr_test_case: get mgrmap from 'mgr dump', not status Signed-off-by: Sage Weil --- diff --git a/qa/tasks/mgr/mgr_test_case.py b/qa/tasks/mgr/mgr_test_case.py index 2c2a8e936fa..47486cdcad1 100644 --- a/qa/tasks/mgr/mgr_test_case.py +++ b/qa/tasks/mgr/mgr_test_case.py @@ -34,10 +34,8 @@ class MgrCluster(CephCluster): self.mgr_daemons[mgr_id].restart() def get_mgr_map(self): - status = json.loads( - self.mon_manager.raw_cluster_cmd("status", "--format=json-pretty")) - - return status["mgrmap"] + return json.loads( + self.mon_manager.raw_cluster_cmd("mgr", "dump", "--format=json-pretty")) def get_active_id(self): return self.get_mgr_map()["active_name"]