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 #1

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 ()
Actions #2

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
Actions #3

Updated by Kefu Chai about 9 years ago

  • Status changed from New to 12
  • Assignee set to Kefu Chai
Actions #4

Updated by Kefu Chai about 9 years ago

  • Status changed from 12 to Fix Under Review
  • % Done changed from 0 to 60
Actions #5

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
Actions #6

Updated by Loïc Dachary over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF