]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/mon_thrash: avoid 'mon addr' in mon section
authorSage Weil <sage@redhat.com>
Fri, 21 Dec 2018 18:20:57 +0000 (12:20 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/mon_thrash.py

index 0754bcdd4e97f50b4e833e3f2938abbe827df7cc..8d5acf07cdc83bed39ceb17bf11dc3ff347319ea 100644 (file)
@@ -156,7 +156,7 @@ class MonitorThrasher:
         Thrash the monitor specified.
         :param mon: monitor to thrash
         """
-        addr = self.ctx.ceph['ceph'].conf['mon.%s' % mon]['mon addr']
+        addr = self.ctx.ceph['ceph'].mons['mon.%s' % mon]
         self.log('thrashing mon.{id}@{addr} store'.format(id=mon, addr=addr))
         out = self.manager.raw_cluster_cmd('-m', addr, 'sync', 'force')
         j = json.loads(out)