Werk #14732: cmk-update-agent: Retry locking

Component Agent bakery
Title cmk-update-agent: Retry locking
Date Aug 25, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p11 Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p28 Checkmk Enterprise (CEE), Checkmk MSP (CME)

The agent updater is designed to have no more than one instance running at a time on a host. This is implemented by holding a file lock while running.

We recently observed that a lock may sometimes fail briefly after it was released by a previous agent updater instance, possibly due to some anti virus software.

To mitigate this situation, the locking is now retried 10 times before aborting the agent updater call.

To the list of all Werks