Project

General

Profile

Bug #43363

mgr/cephadm: can't set inventory_cache_timeout/service_cache_timeout from CLI

Added by Kiefer Chang 3 months ago. Updated 2 months ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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

History

#1 Updated by Kiefer Chang 3 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 32316

#2 Updated by Kefu Chai 3 months ago

  • Status changed from Fix Under Review to Resolved

#3 Updated by Sage Weil 2 months ago

  • Project changed from mgr to Orchestrator
  • Category deleted (orchestrator)

Also available in: Atom PDF