Project

General

Profile

Bug #9372

Updated by Loïc Dachary over 9 years ago

<pre> 
 ceph tell mon.* injectargs --perf 
 </pre> 
 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. 
 <pre> 
 ceph tell mon.* injectargs -- *--* --perf 
 </pre> 
 Here is the session log: 
 <pre> 
 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'  
 </pre> 

Back