Project

General

Profile

Bug #49126

rook: 'ceph orch ls' throws type error

Added by Varsha Rao 23 days ago. Updated 3 days ago.

Status:
Pending Backport
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:

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

History

#1 Updated by Varsha Rao 17 days ago

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

#2 Updated by Varsha Rao 3 days ago

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

Also available in: Atom PDF