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

one extra $ before {{ $labels.reason }} for description of ClusterOperatorDown alert

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-8079. The following is the description of the original issue:

      Description of problem:

      description for ClusterOperatorDown, there is one $ before {{ $labels.reason }}

      $ oc -n openshift-cluster-version get prometheusrules cluster-version-operator -oyaml
      ....
          - alert: ClusterOperatorDown
            annotations:
              description: The {{ $labels.name }} operator may be down or disabled because
                ${{ $labels.reason }}, and the components it manages may be unavailable
                or degraded.  Cluster upgrades may not complete. For more information refer
                to 'oc get -o yaml clusteroperator {{ $labels.name }}'{{ with $console_url
                := "console_url" | query }}{{ if ne (len (label "url" (first $console_url
                ) ) ) 0}} or {{ label "url" (first $console_url ) }}/settings/cluster/{{
                end }}{{ end }}.
              summary: Cluster operator has not been available for 10 minutes.
            expr: |
              max by (namespace, name, reason) (cluster_operator_up{job="cluster-version-operator"} == 0)
            for: 10m
            labels:
              severity: critical
      

      the description is like below if ClusterOperatorDown alert is fired

      The insights operator may be down or disabled because $UploadFailed,and the components it manages.... 

      if it's intended, we could close this bug

       

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

      4.13.0-0.nightly-2023-02-27-101545

      How reproducible:

      always

              lmohanty@redhat.com Lalatendu Mohanty
              openshift-crt-jira-prow OpenShift Prow Bot
              Jia Liu Jia Liu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: