Werk #12709: agent_proxmox_ve: Crash with KeyError('started_time') when corresponding backup job failed

Component Checks & agents
Title agent_proxmox_ve: Crash with KeyError('started_time') when corresponding backup job failed
Date Apr 13, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In case a backup job failed, unfinished VM backup logs do not contain started_time, which would result in unhandled KeyError('started_time') when sorting backup entries. This change will make agent_proxmox_ve use the time the job failed at as started_time for each VM in order to be able to assign a failed backup to a certain point in time.

To the list of all Werks