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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • 4.15.0
    • 4.13.0
    • None
    • No
    • 1
    • OTA 244
    • 1
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      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

            trking W. Trevor King
            juzhao@redhat.com Junqi Zhao
            Jia Liu Jia Liu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: