Project

General

Profile

Bug #54975

Cannot add config-key with value starting with dashes

Added by Hans van den Bogert 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

To my knowledge there is no method to add a config-key value from the commandline, when that value starts with dashes

ceph config-key set FOO "--FOO" 
Invalid command: Unexpected argument '--FOO'
config-key set <key> [<val>] :  set <key> to value <val>
Error EINVAL: invalid command

History

#1 Updated by Sebastian Wagner 8 months ago

have you tried using the python API for that?

#2 Updated by Hans van den Bogert 8 months ago

Sebastian Wagner wrote:

have you tried using the python API for that?

Sure that would work probably, but I was doing some typical admin work and the use-case was adding a certificate starting with the typical x509 header

----BEGIN CERTIFICATE ---

And then I hit this, surely the CLI should make this possible without having to write python scripts? In my specific case I added a newline character in the beginning of the string, which happens to be ignored by the RGW daemon in this case, but that's just a lucky hack.

Also available in: Atom PDF