Project

General

Profile

Actions

Bug #9976

closed

ceph cli injectargs parsing broken

Added by Sage Weil over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

looks like it was the recent -- handling that broke?

gnit:src (master) 09:11 AM $ ./ceph tell osd.0 injectargs --debug-ms 1
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
debug_ms=1/1 
gnit:src (master) 09:11 AM $ ./ceph tell osd.0 injectargs -- --debug-ms 1
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
debug_ms=1/1  failed to parse arguments: --
                                         ^^^

gnit:src (master) 09:11 AM $ ./ceph tell osd.0 injectargs -- --no-debug-osd-op-order
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
 failed to parse arguments: --,--no-debug-osd-op-order
                            ^^

gnit:src (master) 09:11 AM $ ./ceph tell osd.0 injectargs --no-debug-osd-op-order
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
 failed to parse arguments: --no-debug-osd-op-order
(this should fail)
ubuntu@teuthology:/a/sage-2014-10-29_13:51:08-rados-master-distro-basic-multi/578643

Actions #1

Updated by Dan Mick over 9 years ago

Maybe as simple as

--- a/src/ceph.in
+++ b/src/ceph.in
@@ -646,6 +646,8 @@ def main():
     # -- means "stop parsing args", but we don't want to see it either
     if '--' in childargs:
         childargs.remove('--')
+    if '--' in injectargs:
+        injectargs.remove('--')

     # special deprecation warning for 'ceph <type> tell'
     # someday 'mds' will be here too

testing wider

Actions #2

Updated by Dan Mick over 9 years ago

close; needs "if injectargs and ..", but that seems good

Actions #3

Updated by Dan Mick over 9 years ago

  • Status changed from New to 7
Actions #4

Updated by Sage Weil over 9 years ago

  • Status changed from 7 to Resolved
Actions #5

Updated by Loïc Dachary over 9 years ago

I did not see this one, sorry about that.

Actions

Also available in: Atom PDF