]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCap: mds needs to subscribe to the osdmap
authorSage Weil <sage@inktank.com>
Fri, 26 Jul 2013 22:46:51 +0000 (15:46 -0700)
committerSage Weil <sage@inktank.com>
Fri, 26 Jul 2013 23:58:22 +0000 (16:58 -0700)
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>
src/mon/MonCap.cc

index 7ac8d142d87af125b438fc7ebb43d1fc5edff776..b03873ad7ddc6b5d4bae98933cd089cadeb7db27 100644 (file)
@@ -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") {