Werk #12151: Agent updater fails eventually when proxy environment is set on host

Component Agent bakery
Title Agent updater fails eventually when proxy environment is set on host
Date Mar 10, 2021
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 2.0.0p1 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

In some rare cases, the agent updater may fail on hosts that have a proxy environment configured. I.e., one of the environment variables HTTP_PROXY, HTTPS_PROXY, ALL_PROXY (also lowercase variants) are set.

The agent updater will eventually fail with the following error message, which will be visible at the cmk-update-agent.log:
RuntimeError: dictionary changed size during iteration

This Werk is marked as incompatible, because there may be some manual action needed to overcome this error: If you are experiencing this error, you can temporarily unset the above mentioned environment variable(s) on the affected systems in order to allow the agent updater to run properly and to update itself to the fixed version. Alternatively, you can install a newly baked agent on the system.

To the list of all Werks