Werk #14374: Prometheus special agent configuration: Crash when updating from Checkmk 2.0 to 2.1

Component Setup
Title Prometheus special agent configuration: Crash when updating from Checkmk 2.0 to 2.1
Date Jun 27, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1
Not yet released
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.0p5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When updating from Checkmk 2.0 to 2.1, there was a crash related to the configuration of the Prometheus special agent:

2022-06-24 12:59:27 - Updating site '...' from version 2.0.0p26.cee to 2.1.0p3.cee...
...
-|  6/25 Rewriting rulesets...
...
-| ERROR: Failed to transform rule: (Ruleset: special_agents:prometheus, ...)
-|  + "Rewriting rulesets" failed
-| Traceback (most recent call last):
...
-| AssertionError

After the update, the user interface displayed the following error message when attempting to edit the affected Prometheus rules: "Unable to read current options of this rule. Falling back to default values. When saving this rule now, your previous settings will be overwritten. Problem was: Prometheus connection option: Value must be a tuple with two elements"

To the list of all Werks