From: Kefu Chai Date: Sat, 8 Apr 2017 13:34:11 +0000 (+0800) Subject: mon/MonCap: chmod mgr+w osd X-Git-Tag: v12.0.2~83^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84862494930ca0ac1032fb0b94dbb63bd0e68d4f;p=ceph.git mon/MonCap: chmod mgr+w osd so mgr is able to update osdmap with 'osd reweightn' Signed-off-by: Kefu Chai --- diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index 7f6fdab4fd2b..558e67d9cca2 100644 --- a/src/mon/MonCap.cc +++ b/src/mon/MonCap.cc @@ -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",