os-collect-config service constantly throws "ValueError: time data does not match format" traceback messages
Issue
-
os-collect-config.service
constantly throws below tracebacksMar 31 14:00:06 compute-0 os-collect-config: Traceback (most recent call last): Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/bin/os-collect-config", line 10, in <module> Mar 31 14:00:06 compute-0 os-collect-config: sys.exit(__main__()) Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/lib/python2.7/site-packages/os_collect_config/collect.py", line 286, in __main__ Mar 31 14:00:06 compute-0 os-collect-config: collector_kwargs_map=collector_kwargs_map) Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/lib/python2.7/site-packages/os_collect_config/collect.py", line 180, in collect_all Mar 31 14:00:06 compute-0 os-collect-config: content = module.Collector(**collector_kwargs).collect() Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/lib/python2.7/site-packages/os_collect_config/request.py", line 81, in collect Mar 31 14:00:06 compute-0 os-collect-config: last_modified = self.check_fetch_content(head.headers) Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/lib/python2.7/site-packages/os_collect_config/request.py", line 57, in check_fetch_content Mar 31 14:00:06 compute-0 os-collect-config: time.strptime(lm, '%a, %d %b %Y %H:%M:%S %Z')) Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/lib64/python2.7/_strptime.py", line 467, in _strptime_time Mar 31 14:00:06 compute-0 os-collect-config: return _strptime(data_string, format)[0] Mar 31 14:00:06 compute-0 os-collect-config: File "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime Mar 31 14:00:06 compute-0 os-collect-config: (data_string, format)) Mar 31 14:00:06 compute-0 os-collect-config: ValueError: time data 'Mon, 23 Mar 2020 18:08:02 GMT' does not match format '%a, %d %b %Y %H:%M:%S %Z' Mar 31 14:00:06 compute-0 systemd: os-collect-config.service: main process exited, code=exited, status=1/FAILURE Mar 31 14:00:06 compute-0 systemd: Unit os-collect-config.service entered failed state. Mar 31 14:00:06 compute-0 systemd: os-collect-config.service failed.
-
These tracebacks are observed once the
locale
is set to something else other then default.
Environment
- Red Hat OpenStack Platform 13.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.