Bug 2224003 - [RBD] rbd bench always open the image in both read and write mode
Summary: [RBD] rbd bench always open the image in both read and write mode
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 7.1
Assignee: Ilya Dryomov
QA Contact: Sunil Angadi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 14:23 UTC by Sunil Angadi
Modified: 2023-07-19 15:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-7035 0 None None None 2023-07-19 14:25:39 UTC

Description Sunil Angadi 2023-07-19 14:23:23 UTC
Description of problem:
when a particular client set for read only mode for some images in pool
root@ceph-rbd1-s-r-avxinc-node2 ceph]# cat ceph.client.1.keyring
[client.1]
	key = AQAZyrdkk3HLMxAAa3qh2ThrWjF5Tmvugt6dWw==
	caps mon = "allow r"
	caps osd = "profile rbd-read-only pool=pool1 namespace=pool1_namespace"

rbd bench command open that image for both read and write mode which dis-obeys the capabilities set by the user


Version-Release number of selected component (if applicable):
[root@ceph-rbd1-s-r-avxinc-node2 ceph]# ceph -v
ceph version 17.2.6-98.el9cp (b53d9dfff6b1021fbab8e28f2b873d7d49cf5665) quincy (stable)

How reproducible:
Always

Steps to Reproduce:
1. Deploy rhcs 6.1 cluster.
2. create pool , create namespace and create images inside namespace.
3. create and set  client auth file with user caps as below 
[client.1]
	key = AQAZyrdkk3HLMxAAa3qh2ThrWjF5Tmvugt6dWw==
	caps mon = "allow r"
	caps osd = "profile rbd-read-only pool=pool1 namespace=pool1_namespace"

Actual results:
Able to access the image for both read and write mode using rbd bench command

Expected results:
Using rbd bench it should be able access the image what caps set by the user for that client.

Additional info:
Refer: https://tracker.ceph.com/issues/61383


Note You need to log in before you can comment on or make changes to this bug.