From: Sage Weil Date: Fri, 26 Jul 2013 22:46:51 +0000 (-0700) Subject: mon/MonCap: mds needs to subscribe to the osdmap X-Git-Tag: v0.67-rc3~36 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=323bdaa25709182476d655e62aa4b99f2a53e49b;p=ceph.git mon/MonCap: mds needs to subscribe to the osdmap Usually it can get it from the OSD, but it assumes the mon will also share and doesn't behave when it does not. Fixes: #5767 Signed-off-by: Sage Weil --- diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index 7ac8d142d87a..b03873ad7ddc 100644 --- a/src/mon/MonCap.cc +++ b/src/mon/MonCap.cc @@ -133,6 +133,7 @@ void MonCapGrant::expand_profile(entity_name_t name) const if (profile == "mds") { profile_grants.push_back(MonCapGrant("mds", MON_CAP_ALL)); profile_grants.push_back(MonCapGrant("mon", MON_CAP_R)); + profile_grants.push_back(MonCapGrant("osd", MON_CAP_R)); profile_grants.push_back(MonCapGrant("log", MON_CAP_W)); } if (profile == "osd" || profile == "mds" || profile == "mon") {