* 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
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.
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 7Giridhar 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 8Giridhar 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