Project

General

Profile

Actions

Bug #51294

closed

mgr/devicehealth: ValueError: time data '' does not match format '%Y%m%d-%H%M%S'

Added by Sage Weil almost 3 years ago. Updated almost 3 years 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 (v1):
Crash signature (v2):

Description

2021-06-20T20:30:05.393 INFO:tasks.ceph.mgr.x.smithi032.stderr:2021-06-20T20:30:05.394+0000 7fd44d3be700 -1 Remote method threw exception: Traceback (most recent call last):
2021-06-20T20:30:05.394 INFO:tasks.ceph.mgr.x.smithi032.stderr:  File "/usr/share/ceph/mgr/devicehealth/module.py", line 569, in show_device_metrics
2021-06-20T20:30:05.394 INFO:tasks.ceph.mgr.x.smithi032.stderr:    res = self._get_device_metrics(devid, sample=sample)
2021-06-20T20:30:05.394 INFO:tasks.ceph.mgr.x.smithi032.stderr:  File "/usr/share/ceph/mgr/devicehealth/module.py", line 546, in _get_device_metrics
2021-06-20T20:30:05.395 INFO:tasks.ceph.mgr.x.smithi032.stderr:    isample = self._t2epoch(sample)
2021-06-20T20:30:05.395 INFO:tasks.ceph.mgr.x.smithi032.stderr:  File "/usr/share/ceph/mgr/devicehealth/module.py", line 532, in _t2epoch
2021-06-20T20:30:05.395 INFO:tasks.ceph.mgr.x.smithi032.stderr:    return int(datetime.strptime(t, TIME_FORMAT).strftime("%s"))
2021-06-20T20:30:05.396 INFO:tasks.ceph.mgr.x.smithi032.stderr:  File "/usr/lib64/python3.6/_strptime.py", line 565, in _strptime_datetime
2021-06-20T20:30:05.396 INFO:tasks.ceph.mgr.x.smithi032.stderr:    tt, fraction = _strptime(data_string, format)
2021-06-20T20:30:05.396 INFO:tasks.ceph.mgr.x.smithi032.stderr:  File "/usr/lib64/python3.6/_strptime.py", line 362, in _strptime
2021-06-20T20:30:05.396 INFO:tasks.ceph.mgr.x.smithi032.stderr:    (data_string, format))
2021-06-20T20:30:05.397 INFO:tasks.ceph.mgr.x.smithi032.stderr:ValueError: time data '' does not match format '%Y%m%d-%H%M%S'

/a/sage-2021-06-20_15:30:30-rados-wip-sage-testing-2021-06-20-1007-distro-basic-smithi/6181869
Actions #1

Updated by Kefu Chai almost 3 years ago

  • Status changed from New to Resolved
  • Pull request ID set to 41946
Actions

Also available in: Atom PDF