Actions
Bug #54975
openCannot add config-key with value starting with dashes
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
Updated by Sebastian Wagner about 2 years ago
have you tried using the python API for that?
Updated by Hans van den Bogert about 2 years 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.
Actions