Werk #14583: Fix attribute update and deletion of existing hosts

Component Dynamic host configuration
Title Fix attribute update and deletion of existing hosts
Date Feb 20, 2023
Level Prominent Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, the dcd could not handle host configurations, if they were in an inconsistent state. In such cases, it would stop updating and deleting the host configurations. The following error would be shown:

k: api_attributes[k] for k in future_attributes["locked_attributes"] + internal_keys
KeyError: 'site'

This meant, the attributes of the host were not present, even though they were supposed to be locked by the dcd. With this werk, the dcd will not crash. Instead it assigns the attributes, which are configured by the connection. This includes the internal attribute "Locked by", which is inaccessible via the GUI.

To the list of all Werks