diff options
author | Sage Weil <sage@inktank.com> | 2013-07-26 15:46:51 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-26 16:58:22 -0700 |
commit | 323bdaa25709182476d655e62aa4b99f2a53e49b (patch) | |
tree | 353f3283351290fd5931f6976bebc289255e3d01 | |
parent | 14a3e2ddce1487e47498249c3f63d7df57b55ec5 (diff) | |
download | ceph-323bdaa25709182476d655e62aa4b99f2a53e49b.tar.gz |
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 <sage@inktank.com>
-rw-r--r-- | src/mon/MonCap.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index 7ac8d142d87..b03873ad7dd 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") { |