From: Kefu Chai Date: Mon, 6 Mar 2017 03:33:27 +0000 (+0800) Subject: brag: count the number of mds in fsmap not in mdsmap X-Git-Tag: v11.2.1~187^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14098%2Fhead;p=ceph.git brag: count the number of mds in fsmap not in mdsmap this change was introduced in 4e9b953 Fixes: http://tracker.ceph.com/issues/19192 Signed-off-by: Peng Zhang (cherry picked from commit 2d25a9c0c760664d3de33ecca0e0272c1031cd46) --- diff --git a/src/brag/client/ceph-brag b/src/brag/client/ceph-brag index 8a0485934f8..d5e5a2ded20 100755 --- a/src/brag/client/ceph-brag +++ b/src/brag/client/ceph-brag @@ -258,7 +258,7 @@ def get_nums(): num_mons = len(oj['monmap']['mons']) num_osds = int(oj['osdmap']['osdmap']['num_in_osds']) try: - num_mdss = oj['mdsmap']['in'] + num_mdss = oj['fsmap']['in'] except KeyError: num_mdss = 0