Project

General

Profile

Actions

Bug #9372

closed

injectarg boolean option is discarded

Added by Loïc Dachary over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
ceph cli
Target version:
-
% Done:

100%

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

Description

ceph tell mon.* injectargs --perf

fails because --perf is consumed by the general purpose argument parsing. A simple workaround is to add -- so the general purpose agrument parsing ignores what is after injectargs.
ceph tell mon.* injectargs -- --perf

Here is the session log:
loic@fold:~/software/ceph/ceph/src$ ceph tell mon.* injectargs -- --perf
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
injectargs:perf = 'true' 
loic@fold:~/software/ceph/ceph/src$ ceph tell mon.* injectargs -- --no-perf
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
injectargs:perf = 'false' 
loic@fold:~/software/ceph/ceph/src$ ceph tell mon.* injectargs --no-perf
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
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
loic@fold:~/software/ceph/ceph/src$ ceph tell mon.* injectargs '--no-perf --no-perf'
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
injectargs:perf = 'false' 

Related issues 1 (0 open1 closed)

Has duplicate Ceph - Bug #8323: mon_osd_allow_primary_affinity Can not be InjectedDuplicate05/09/2014

Actions
Actions

Also available in: Atom PDF