ID: 14374
Title: Prometheus special agent configuration: Crash when updating from Checkmk 2.0
to 2.1
Component: Setup
Level: 1
Class: Bug fix
Version: 2.2.0i1
When updating from Checkmk 2.0 to 2.1, there was a crash related to the configuration of
the Prometheus special agent:
C+:
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
C-:
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"