]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCap: chmod mgr+w osd
authorKefu Chai <kchai@redhat.com>
Sat, 8 Apr 2017 13:34:11 +0000 (21:34 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Apr 2017 15:20:16 +0000 (23:20 +0800)
so mgr is able to update osdmap with 'osd reweightn'

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MonCap.cc

index 7f6fdab4fd2b146c00fa9e63313937a6bfb3ef1a..558e67d9cca2fa2330c0dfbb65ea671dd657ebce 100644 (file)
@@ -172,7 +172,7 @@ void MonCapGrant::expand_profile_mon(const EntityName& name) const
     profile_grants.push_back(MonCapGrant("log", MON_CAP_W));
     profile_grants.push_back(MonCapGrant("mon", MON_CAP_R));
     profile_grants.push_back(MonCapGrant("mds", MON_CAP_R));
-    profile_grants.push_back(MonCapGrant("osd", MON_CAP_R));
+    profile_grants.push_back(MonCapGrant("osd", MON_CAP_R | MON_CAP_W));
     profile_grants.push_back(MonCapGrant("config-key", MON_CAP_R));
     string prefix = string("daemon-private/mgr/");
     profile_grants.push_back(MonCapGrant("config-key get", "key",