Actions
Bug #50954
closedmgr/pybind/snap_schedule: commands only support positional arguments?
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
It looks like the module does not support passing optional ceph arguments.
See:
ceph --connect-timeout=15 --cluster=rook-ceph --conf=/var/lib/rook/rook-ceph/rook-ceph.config --name=client.admin --keyring=/var/lib/rook/rook-ceph/client.admin.keyring --format plain --out-file /tmp/980504643 fs snap-schedule status / recursive=true fs=myfs2 format=json
Will return:
. : Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1337, in _handle_command return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 385, in call kwargs = self._collect_args_by_argspec(cmd_dict) File "/usr/share/ceph/mgr/mgr_module.py", line 377, in _collect_args_by_argspec name, raw_v) File "/usr/share/ceph/mgr/mgr_module.py", line 360, in _get_arg_value k, v = val.split('=', 1) ValueError: not enough values to unpack (expected 2, got 1)
It looks like the script supports its own arguments and not in a consistent way.
The script should support any ceph options passed via the CLI.
Actions