Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pacific: osd/OSDCap: allow rbd.metadata_list method under rbd-read-only profile #51876

Merged
merged 1 commit into from Jun 19, 2023

Conversation

idryomov
Copy link
Contributor

@idryomov idryomov commented Jun 1, 2023

This was missed in commit acc447d ("osd/OSDCap: rbd profile
permits use of rbd.metadata_list cls method") which adjusted only
"profile rbd" OSD cap.  Listing image metadata is an essential part
of opening the image and "profile rbd-read-only" OSD cap must allow
it too.

While at it, constrain the existing grant for rbd profile from "any
object in the pool" to just "rbd_info object in the global namespace of
the pool" as this is where pool-level image metadata actually lives.

Fixes: https://tracker.ceph.com/issues/61382
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b580cda)
@idryomov idryomov added this to the pacific milestone Jun 1, 2023
@idryomov idryomov requested a review from a team June 1, 2023 17:04
@idryomov idryomov requested a review from a team as a code owner June 1, 2023 17:04
@yuriw yuriw merged commit b836b6b into ceph:pacific Jun 19, 2023
8 checks passed
@idryomov idryomov deleted the wip-61382-pacific branch June 19, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants