Before this commit, if the control machine and the target machine were in different time zones and the target machine's time zone were neither UTC nor GMT, the SDN check would raise a ValueError exception when parsing a systemd unit's ExecMainStartTimestamp property: ValueError: time data 'Tue 2018-08-07 23:09:46 EDT' does not match format '%a %Y-%m-%d %H:%M:%S %Z' The problem is that Python's strptime cannot reliably parse time zones: https://bugs.python.org/issue22377 The solution is to drop the time zone prior to parsing the time stamp. This commit fixes bug 1613752. https://bugzilla.redhat.com/show_bug.cgi?id=1613752 * roles/openshift_health_checker/openshift_checks/sdn.py (SDNCheck.save_service_logs): Omit time zone before parsing time stamp.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|