Project

General

Profile

Actions

Bug #10618

closed

Unable to inject single boolean config

Added by Kai Zhang about 9 years ago. Updated about 9 years ago.

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

0%

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

Description

I want to deactivate log to stderr/syslog.
I tried "ceph tell mon.a injectargs --no-log_to_stderr", it returned

Invalid command: saw 0 of injected_args(<string>) [<string>...], expected at least 1
injectargs <injected_args> [<injected_args>...] : inject config arguments into monitor
Error EINVAL: invalid command

Then I tried "ceph tell mon.a injectargs --log_to_stderr=false", it returned the same output.

After that, I used 'ceph tell mon.a injectargs "--log_to_stderr false"', it set log-to-stderr='true' instead....

ceph version 0.87-81-ga463b92

Actions #1

Updated by Alyona Kiseleva about 9 years ago

What cluster configuration do you have? I tried it on default configuration, first and second command works correctly, last one is not provided, I think, and so it sets log-to-stderr to default value.

Actions #2

Updated by Sage Weil about 9 years ago

  • Status changed from New to Rejected

--foo=false works, --no-foo works, --foo false does not. it's confusing, i know.

Actions

Also available in: Atom PDF