Bug #50886
closedTypeError: can't subtract offset-naive and offset-aware datetimes
0%
Description
$ ceph -v ceph version 15.2.11 (e3523634d9c2227df9af89a4eac33d16738c49cb) octopus (stable) $ rook version rook: v1.5.9 go: go1.13.8 $ ceph mgr module enable orchestrator module 'orchestrator' is already enabled (always-on) $ ceph mgr module enable rook $ ceph orch set backend rook $ ceph mgr module ls { "always_on_modules": [ "balancer", "crash", "devicehealth", "orchestrator", "pg_autoscaler", "progress", "rbd_support", "status", "telemetry", "volumes" ], "enabled_modules": [ "dashboard", "iostat", "prometheus", "restful", "rook" ], ..... $ ceph orch host ls HOST ADDR LABELS STATUS k8s-myhome-master-01 k8s-myhome-master-01 k8s-myhome-master-02 k8s-myhome-master-02 k8s-myhome-node-01 k8s-myhome-node-01 k8s-myhome-node-02 k8s-myhome-node-02 k8s-myhome-node-03 k8s-myhome-node-03 k8s-myhome-node-04 k8s-myhome-node-04 k8s-myhome-node-05 k8s-myhome-node-05 $ ceph orch ls Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1177, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 140, in handle_command return dispatch[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 318, in call return self.func(mgr, **kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 102, in <lambda> wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 91, in wrapper return func(*args, **kwargs) File "/usr/share/ceph/mgr/orchestrator/module.py", line 547, 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 $ ceph orch ps Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1177, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 140, in handle_command return dispatch[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 318, in call return self.func(mgr, **kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 102, in <lambda> wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 91, in wrapper return func(*args, **kwargs) File "/usr/share/ceph/mgr/orchestrator/module.py", line 605, in _list_daemons status += ' (%s)' % to_pretty_timedelta(now - s.started) TypeError: can't subtract offset-naive and offset-aware datetimes
Updated by Sebastian Wagner over 2 years ago
- Project changed from Ceph to Orchestrator
- Description updated (diff)
Updated by Juan Miguel Olmo MartÃnez over 2 years ago
- Status changed from New to Can't reproduce
Rook Orchestrator mgr module was completely experimental in Octopus and in Pacific.
Latest modifications introduced for Quincy have fixed this problem:
[root@rook-ceph-tools-78cdfd976c-8ccbc /]# ceph -v
ceph version 16.2.5 (0883bdea7337b95e4b611c768c0279868462204a) pacific (stable)
[root@rook-ceph-tools-78cdfd976c-8ccbc /]# rook version
rook: v1.7.0-alpha.0.249.g94eb451
go: go1.16.7
[root@rook-ceph-tools-78cdfd976c-8ccbc /]# ceph orch ls
NAME PORTS RUNNING REFRESHED AGE PLACEMENT
crash 3/3 0s ago 27m *
mgr 1/1 0s ago 27m count:1
mon 3/3 0s ago 28m count:3
[root@rook-ceph-tools-78cdfd976c-8ccbc /]# ceph orch ps
NAME HOST PORTS STATUS REFRESHED AGE MEM USE MEM LIM VERSION IMAGE ID
crashcollector.crash k8s-master-00.rook Running (27m) 0s ago 27m - - <unknown> e40082ff4e1a
crashcollector.crash k8s-worker-00.rook Running (27m) 0s ago 27m - - <unknown> e40082ff4e1a
crashcollector.crash k8s-worker-01.rook Running (27m) 0s ago 27m - - <unknown> e40082ff4e1a
mgr.a k8s-master-00.rook Running (27m) 0s ago 27m - - <unknown> e40082ff4e1a
mon.a k8s-master-00.rook Running (28m) 0s ago 28m - - <unknown> e40082ff4e1a
mon.b k8s-worker-00.rook Running (28m) 0s ago 28m - - <unknown> e40082ff4e1a
mon.c k8s-worker-01.rook Running (28m) 0s ago 28m - - <unknown> e40082ff4e1a
Updated by Harry Coin over 2 years ago
Reproduce? See https://tracker.ceph.com/issues/52327