Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1658104

Summary: [DOC] Resetting Ceph capabilities with ceph auth command returns Error EINVAL
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Gaurav Sitlani <gsitlani>
Component: DocumentationAssignee: John Brier <jbrier>
Status: CLOSED CURRENTRELEASE QA Contact: Tejas <tchandra>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0CC: agunn, assingh, bhubbard, ceph-eng-bugs, dzafman, gsitlani, jbrier, kchai, kdreyer, kjosy, nojha
Target Milestone: z4   
Target Release: 3.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-17 20:36:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1809203    

Description Gaurav Sitlani 2018-12-11 09:27:22 UTC
* Description of problem:


As mentioned in Section 5.2.4 of Ceph Administration guide [1] , I tried resetting the capabilities of user 'client.ringo' with the command:

ceph auth caps client.ringo mon ' ' osd ' '

It gives the following error :

Error EINVAL: moncap parse failed, stopped at ' ' of ' '

As per the doc, the command should reset the capabilities of the `client.ringo` but that's not happening.

When i tried running :
ceph auth caps client.ringo mon 'allow r' osd ' '

The caps updated successfully to the following:
client.ringo
	key: AQBLdg9cNASjNRAAbA90JYX8QSNdupFVFPhxdw==
	caps: [mon] allow r
	caps: [osd]  

It should've worked like same for the first command when both the parameters mon and osd were specified as an empty string as per the doc.


[1] https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/administration_guide/#modify_user_capabilities

Comment 3 John Brier 2018-12-11 14:25:30 UTC
Thanks for the report Gaurav.

Are you saying the docs are wrong or the command isn't working right? If the issue is with the command this bug should be opened on a different component than Documentation. I'm not sure of the right component for the 'ceph' command, maybe Distribution.

Comment 5 Josh Durgin 2018-12-12 16:27:39 UTC
This changed due to a bug fix that validates the capabilities before setting them, which disallows setting empty mon caps.

The doc should be updated to reflect this.

Comment 7 Giridhar Ramaraju 2019-08-05 13:09:16 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 8 Giridhar Ramaraju 2019-08-05 13:10:35 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri