Werk #16407: omd update: Don't Delete "config.pb" During Pre-Update

Component Site management
Title omd update: Don't Delete "config.pb" During Pre-Update
Date Mar 7, 2024
Checkmk Version 2.4.0b1 2.3.0b2
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Affected Editions
2.4.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b2 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The omd update command has the capability to undo the changes it has done up until Verifying Checkmk configuration.... However, if any change after Verifying Checkmk configuration... is persisted. Due to a regression caused by Werk #15725, the file config.pb is deleted during this verification. If the update aborts during the verification, then users will see the following error:

Starting cmc...Failed (Config /omd/sites/prod_dmz/var/check_mk/core/config.pb missing, run "cmk -U" and try again)

With this Werk, config.pb will be deleting only while Updating Checkmk configuration....

To the list of all Werks