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

Komponente Dynamic host configuration
Titel Fix attribute update and deletion of existing hosts
Datum 20.02.2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.1.0p23 2.2.0b1 2.3.0b1
Level Bedeutende Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks