]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method
authorsongweibin <song.weibin@zte.com.cn>
Mon, 27 May 2019 07:42:53 +0000 (15:42 +0800)
committersongweibin <song.weibin@zte.com.cn>
Wed, 29 May 2019 23:59:50 +0000 (07:59 +0800)
Fixes: http://tracker.ceph.com/issues/39973
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/osd/OSDCap.cc

index ee1e947b088c3309297b201a90b637914860775e..e3d541a91df010b7a656e5e0e92bf6c4aeae44ff 100644 (file)
@@ -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 |