Project

General

Profile

Bug #11279

ceph: cli interactive mode does not understand quotes

Added by fred drueck about 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
03/30/2015
Due date:
% Done:

60%

Source:
Tags:
Backport:
hammer
Regression:
No
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Copied to Ceph - Backport #11736: ceph: cli interactive mode does not understand quotes Resolved 03/30/2015

Associated revisions

Revision bc7d8c99 (diff)
Added by Kefu Chai about 4 years ago

ceph.in: parse quote correctly in interactive mode

Fixes: #11279
Signed-off-by: Kefu Chai <>

Revision eb26388c (diff)
Added by Kefu Chai about 4 years ago

ceph.in: parse quote correctly in interactive mode

Fixes: #11279
Signed-off-by: Kefu Chai <>
(cherry picked from commit bc7d8c99d2e16a141a8b575281ba12c67628dac3)

History

#1 Updated by Loic Dachary about 4 years ago

  • Tracker changed from Tasks to Bug
  • Project changed from Stable releases to Ceph
  • Affected Versions deleted ()

#2 Updated by Sage Weil about 4 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

#3 Updated by Kefu Chai about 4 years ago

  • Status changed from New to Verified
  • Assignee set to Kefu Chai

#4 Updated by Kefu Chai about 4 years ago

  • Status changed from Verified to Need Review
  • % Done changed from 0 to 60

#5 Updated by Kefu Chai about 4 years ago

  • Status changed from Need Review to Pending Backport
  • Backport set to hammer
  • Regression set to No

#6 Updated by Loic Dachary almost 4 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF