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

Komponente Setup
Titel Prometheus special agent configuration: Crash when updating from Checkmk 2.0 to 2.1
Datum 27.06.2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.1.0p5 2.2.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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"

Zur Liste aller Werks