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

Can't load additional Alertmanager templates with latest 4.12 OpenShift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 4.12.0
    • Monitoring
    • None
    • Important
    • None
    • MON Sprint 228, MON Sprint 229
    • 2
    • Approved
    • False
    • Hide

      None

      Show
      None
    • NA

      Description of problem:

      When the Alertmanager configuration secret holds additional keys and the Alertmanager configuration references them as templates with a relative path, receivers using the templates will fail to deliver notifications. 

      Version-Release number of selected component (if applicable):

      4.12 only (not present in previous versions)

      How reproducible:

      Only when using additional keys in the Alertmanager config secret + loading them as templates.

      Steps to Reproduce:

      1. Update openshift-monitoring/alertmanager-main secret (see attached file).
      2. Watch the alertmanager-main-0/alertmanager logs and wait for 5 minutes
      3.
      

      Actual results:

      Notification error logs + AlertmanagerClusterFailedToSendAlerts alert pending

      Expected results:

      No error and no alert

      Additional info:

      Regression introduced by https://github.com/prometheus-operator/prometheus-operator/pull/4906

        1. image-2022-12-08-10-51-58-536.png
          101 kB
          Simon Pasquier
        2. OCPBUGS-1741.yaml
          2 kB
          Simon Pasquier

              spasquie@redhat.com Simon Pasquier
              spasquie@redhat.com Simon Pasquier
              Junqi Zhao Junqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: