Project

General

Profile

Bug #43363

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

Added by Kiefer Chang over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% 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


Related issues

Related to mgr - Bug #45151: ceph alerts module fails on setting interval Duplicate
Copied to mgr - Backport #45228: nautilus: mgr/alert: can't set inventory_cache_timeout/service_cache_timeout from CLI Resolved

History

#1 Updated by Kiefer Chang over 4 years ago

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

#2 Updated by Kefu Chai over 4 years ago

  • Status changed from Fix Under Review to Resolved

#3 Updated by Sage Weil about 4 years ago

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

#4 Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to nautilus

#5 Updated by Sebastian Wagner almost 4 years ago

  • Related to Bug #45151: ceph alerts module fails on setting interval added

#6 Updated by Sebastian Wagner almost 4 years ago

note to backporters: the mgr/alert commits should be backported.

#7 Updated by Sebastian Wagner almost 4 years ago

  • Project changed from Orchestrator to mgr
  • Subject changed from mgr/cephadm: can't set inventory_cache_timeout/service_cache_timeout from CLI to mgr/alert: can't set inventory_cache_timeout/service_cache_timeout from CLI

#8 Updated by Nathan Cutler almost 4 years ago

  • Copied to Backport #45228: nautilus: mgr/alert: can't set inventory_cache_timeout/service_cache_timeout from CLI added

#9 Updated by Josh Durgin almost 4 years ago

  • Pull request ID set to 32316

#10 Updated by Nathan Cutler over 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF