Project

General

Profile

Actions

Bug #51145

closed

pybind/cmd_argparse: does not process vector of choices

Added by Patrick Donnelly almost 3 years ago. Updated almost 3 years ago.

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

0%

Source:
Development
Tags:
Backport:
pacific
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

pdonnell@vossi04 ~/ceph/build$ bin/ceph tell mds.c scrub start / --scrubops=force,repair 
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2021-06-08T21:54:27.297+0000 7f05948e4700 -1 WARNING: all dangerous and experimental features are enabled.
2021-06-08T21:54:27.330+0000 7f058f59e700 -1 WARNING: all dangerous and experimental features are enabled.
2021-06-08T21:54:27.369+0000 7f0558ff9700  0 client.4358 ms_handle_reset on v2:127.0.0.1:6830/3706968407
Invalid command: force,repair not in force|recursive|repair
scrub start <path> [force|recursive|repair...] [<tag>] :  scrub and inode and output results
Error EINVAL: invalid command
pdonnell@vossi04 ~/ceph/build$ bin/ceph tell mds.c scrub start / --scrubops=force\|repair 
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2021-06-08T21:54:32.303+0000 7f5c5a0a0700 -1 WARNING: all dangerous and experimental features are enabled.
2021-06-08T21:54:32.337+0000 7f5c5a0a0700 -1 WARNING: all dangerous and experimental features are enabled.
2021-06-08T21:54:32.375+0000 7f5c21ffb700  0 client.4369 ms_handle_reset on v2:127.0.0.1:6830/3706968407
Invalid command: force|repair not in force|recursive|repair
scrub start <path> [force|recursive|repair...] [<tag>] :  scrub and inode and output results
Error EINVAL: invalid command
pdonnell@vossi04 ~/ceph/build$ bin/ceph tell mds.c scrub start / force,repair mytag
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2021-06-08T21:54:59.573+0000 7fbda6d14700 -1 WARNING: all dangerous and experimental features are enabled.
2021-06-08T21:54:59.610+0000 7fbda6d14700 -1 WARNING: all dangerous and experimental features are enabled.
2021-06-08T21:54:59.649+0000 7fbd66ffd700  0 client.4380 ms_handle_reset on v2:127.0.0.1:6830/3706968407
Invalid command: unused arguments: ['mytag']
scrub start <path> [force|recursive|repair...] [<tag>] :  scrub and inode and output results
Error EINVAL: invalid command

For Pacific and master branches.


Related issues 3 (0 open3 closed)

Related to CephFS - Bug #51182: pybind/mgr/snap_schedule: Invalid command: Unexpected argument 'fs=cephfs'ResolvedPatrick Donnelly

Actions
Related to CephFS - Bug #51146: qa: scrub code does not join scrubopts with commaResolvedPatrick Donnelly

Actions
Copied to Ceph - Backport #51233: pacific: pybind/cmd_argparse: does not process vector of choicesResolvedPatrick DonnellyActions
Actions

Also available in: Atom PDF