Project

General

Profile

Actions

Bug #11279

closed

ceph: cli interactive mode does not understand quotes

Added by fred drueck about 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

60%

Source:
Tags:
Backport:
hammer
Regression:
No
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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@


Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #11736: ceph: cli interactive mode does not understand quotesResolvedAbhishek Lekshmanan03/30/2015Actions
Actions

Also available in: Atom PDF