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@