Bug #11279
closedceph: cli interactive mode does not understand quotes
60%
Description
There seems to be a bug (or inconsistency) between argument parsing when issue commands of the form:
ceph auth ...
or
ceph caps ...
in the ceph interactive shell.
ceph> auth add client.temp mon 'allow r' osd 'allow r pool=tpool'
Error: 22 EINVAL
Status:
bad capabilities request; odd number of arguments
ceph> auth add client.temp mon allow r osd allow r pool=tpool
Error: 22 EINVAL
Status:
bad capabilities request; odd number of arguments
~# ceph auth add client.temp mon 'allow r' osd 'allow r pool=tpool'
added key for client.temp
Indeed the only syntax the interactive shell seems to accept is invalid syntax for acls:
@ceph> auth caps client.tuser mon='allow r'
Status:
updated caps for client.tuser
ceph> auth get client.tuser
[client.tuser]
key = mykey==
caps mon='allow = "r'"
Status:
exported keyring for client.tuser@
Updated by Loïc Dachary about 9 years ago
- Tracker changed from Tasks to Bug
- Project changed from Stable releases to Ceph
- Affected Versions deleted (
)
Updated by Sage Weil about 9 years ago
- Subject changed from problem with argument parsing for ceph auth commands in interactive mode to ceph: cli interactive mode does not understand quotes
- Priority changed from Normal to High
Updated by Kefu Chai about 9 years ago
- Status changed from New to 12
- Assignee set to Kefu Chai
Updated by Kefu Chai about 9 years ago
- Status changed from 12 to Fix Under Review
- % Done changed from 0 to 60
Updated by Kefu Chai almost 9 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to hammer
- Regression set to No
Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved