Project

General

Profile

Actions

Bug #49126

closed

rook: 'ceph orch ls' throws type error

Added by Varsha Rao about 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
mgr/rook
Target version:
% Done:

0%

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

Description

# ceph orch ls
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1316, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 151, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 389, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 108, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 97, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 594, in _list_services
    nice_delta(now, s.last_refresh, ' ago'),
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 28, in nice_delta
    return to_pretty_timedelta(now - t) + suffix
TypeError: can't subtract offset-naive and offset-aware datetimes
Actions #1

Updated by Varsha Rao about 3 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Varsha Rao
  • Pull request ID set to 39373
Actions #2

Updated by Varsha Rao about 3 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to pacific
Actions #3

Updated by Sebastian Wagner over 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF