]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method 29328/head
authorsongweibin <song.weibin@zte.com.cn>
Mon, 27 May 2019 07:42:53 +0000 (15:42 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 25 Jul 2019 16:16:14 +0000 (18:16 +0200)
Fixes: http://tracker.ceph.com/issues/39973
Signed-off-by: songweibin <song.weibin@zte.com.cn>
(cherry picked from commit acc447d5de7b1a17a80d2cc673c70b795108f84c)

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 |