Actions
Bug #43363
closedmgr/alert: can't set inventory_cache_timeout/service_cache_timeout from CLI
% Done:
0%
Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
ceph orchestrator inventory/service ls will fail after setting a timeout value from CLI.
╭─root@ceph-1 /ceph/build ‹master-1218*› ╰─# bin/ceph config set mgr mgr/cephadm/service_cache_timeout 10 *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-12-18T06:43:07.497+0000 7f6c59eec700 -1 WARNING: all dangerous and experimental features are enabled. 2019-12-18T06:43:07.505+0000 7f6c59eec700 -1 WARNING: all dangerous and experimental features are enabled. ╭─root@ceph-1 /ceph/build ‹fix-cephadm-options-timeout-type*› ╰─# bin/ceph orchestrator service ls *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-12-18T06:43:15.181+0000 7f7c57f02700 -1 WARNING: all dangerous and experimental features are enabled. 2019-12-18T06:43:15.185+0000 7f7c57f02700 -1 WARNING: all dangerous and experimental features are enabled. Error EINVAL: Traceback (most recent call last): File "/ceph/src/pybind/mgr/mgr_module.py", line 1064, in _handle_command return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf) File "/ceph/src/pybind/mgr/mgr_module.py", line 304, in call return self.func(mgr, **kwargs) File "/ceph/src/pybind/mgr/orchestrator.py", line 140, in wrapper return func(*args, **kwargs) File "/ceph/src/pybind/mgr/orchestrator_cli/module.py", line 286, in _list_services completion = self.describe_service(svc_type, svc_id, host, refresh=refresh) File "/ceph/src/pybind/mgr/orchestrator.py", line 1434, in inner completion = self._oremote(method_name, args, kwargs) File "/ceph/src/pybind/mgr/orchestrator.py", line 1494, in _oremote return mgr.remote(o, meth, *args, **kwargs) File "/ceph/src/pybind/mgr/mgr_module.py", line 1424, in remote args, kwargs) RuntimeError: Remote method threw exception: TypeError: unsupported type for timedelta seconds component: str
Actions