Cannot add config-key with value starting with dashes
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
#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.