]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager: make get_mon_status use mon addr
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 03:18:57 +0000 (21:18 -0600)
committerNathan Cutler <ncutler@suse.com>
Thu, 7 Nov 2019 12:10:29 +0000 (13:10 +0100)
We don't have the 'mon addr' config property any more.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit ac2430a43ddec469575a25be4aff75ce1628eee2)

qa/tasks/ceph_manager.py

index 969cd6e23c5d1c7242a0f405df9a99672b982f06..30e48950ca487183e8d0477f06186c026db28cec 100644 (file)
@@ -2505,7 +2505,7 @@ class CephManager:
         """
         Extract all the monitor status information from the cluster
         """
-        addr = self.ctx.ceph[self.cluster].conf['mon.%s' % mon]['mon addr']
+        addr = self.ctx.ceph[self.cluster].mons['mon.%s' % mon]
         out = self.raw_cluster_cmd('-m', addr, 'mon_status')
         return json.loads(out)