Project

General

Profile

Bug #43287

Updated by Kefu Chai over 4 years ago

I've just upgrade ceph to 14.2.5, after restart I've got: 

 HEALTH_ERR Module 'crash' has failed: time data '2019-07-06 15:5' does not match format '%Y-%m-%d %H:%M:%S.%f' 

 Further check from ceph-mgr log showed something like: 

 <pre> 
 2019-12-12 18:47:21.396 7f7183955700 -1 Traceback (most recent call last): 
   File "/usr/share/ceph/mgr/crash/module.py", line 46, in serve 
     self._refresh_health_checks() 
   File "/usr/share/ceph/mgr/crash/module.py", line 70, in _refresh_health_checks 
     crashid: crash for crashid, crash in self.crashes.items() 
   File "/usr/share/ceph/mgr/crash/module.py", line 71, in <dictcomp> 
     if self.time_from_string(crash['timestamp']) > cutoff and 'archived' not in crash 
   File "/usr/share/ceph/mgr/crash/module.py", line 108, in time_from_string 
     return datetime.datetime.strptime(timestr, DATEFMT) 
   File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime 
     (data_string, format)) 
 ValueError: time data '2019-07-06 15:5' does not match format '%Y-%m-%d %H:%M:%S.%f' 
 </pre> 
 

 So crash module cannot load and emitted HEALTH_ERR. As I understand, the time format for that particular dump might be wrong. Is there anyway I could fix or clean this ?

Back