Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-30122

Invalid AlertmanagerConfig object can lead to invalid configuration for User Workload Monitoring Alertmanager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.12.z
    • Monitoring
    • Moderate
    • No
    • MON Sprint 259, MON Sprint 260
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, `AlertmanagerConfig` objects with invalid child routes generated invalid Alertmanager configuration leading to Alertmanager disruption. With this release, Prometheus Operator rejects such `AlertmanagerConfig` objects, and users receive a warning about the invalid child routes in logs. (link:https://issues.redhat.com/browse/OCPBUGS-30122[*OCPBUGS-30122*])
      Show
      * Previously, `AlertmanagerConfig` objects with invalid child routes generated invalid Alertmanager configuration leading to Alertmanager disruption. With this release, Prometheus Operator rejects such `AlertmanagerConfig` objects, and users receive a warning about the invalid child routes in logs. (link: https://issues.redhat.com/browse/OCPBUGS-30122 [* OCPBUGS-30122 *])
    • Bug Fix
    • Done

      User Workload Monitoring Alertmanager configuration can get screwed by not correctly sanitized CR content

       

      Customer recently encountered that malformed CR content will prevent User Workload Monitoring Alertmanager configuration.

              routes:
                - receiver: "XXXX" # optional route
                  matchers:
                    - severity: "!~'^critical$'" 

      will be added as CR but rejected by Alertmanager due to quoting issue.

      err="invalid label name \"\"" 

      Even though we should have some sanitizing implemented, it seems we missed that corner case.

       

       

              janantha@redhat.com Jayapriya Pai
              rhn-support-milang Michaela Lang
              Junqi Zhao Junqi Zhao
              Eliska Romanova Eliska Romanova
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: