From: songweibin Date: Mon, 27 May 2019 07:42:53 +0000 (+0800) Subject: osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method X-Git-Tag: v15.1.0~2538^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=acc447d5de7b1a17a80d2cc673c70b795108f84c;p=ceph.git osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method Fixes: http://tracker.ceph.com/issues/39973 Signed-off-by: songweibin --- diff --git a/src/osd/OSDCap.cc b/src/osd/OSDCap.cc index ee1e947b088c..e3d541a91df0 100644 --- a/src/osd/OSDCap.cc +++ b/src/osd/OSDCap.cc @@ -336,6 +336,8 @@ void OSDCapGrant::expand_profile() OSDCapSpec(osd_rwxa_t(OSD_CAP_CLS_R))); profile_grants.emplace_back(OSDCapMatch(string(), "rbd_mirroring"), OSDCapSpec(osd_rwxa_t(OSD_CAP_CLS_R))); + profile_grants.emplace_back(OSDCapMatch(profile.pool_namespace.pool_name), + OSDCapSpec("rbd", "metadata_list")); profile_grants.emplace_back(OSDCapMatch(profile.pool_namespace), OSDCapSpec(osd_rwxa_t(OSD_CAP_R | OSD_CAP_W |