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

Kube-apiserver operator is trying to delete prometheus rule that does not exists

    XMLWordPrintable

Details

    Description

      Description of problem:

      Kube-apiserver operator is trying to delete prometheus rule that does not exists leading to huge amount of unwanted audit logs, 
      
      With the introduction of the change as a part of BUG-2004585 kube-apiserver SLO rulesare split into 2 groups kube-apiserver-slos-basic and kube-apiserver-slos-extended kube-apiserver-operator is trying to delete /apis/monitoring.coreos.com/v1/namespaces/openshift-kube-apiserver/prometheusrules/kube-apiserver-slos which no longer exist in the cluster

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

      4.12
      4.13
      4.14

      How reproducible:

          Its easy to reproduce

      Steps to Reproduce:

          1. install a cluster with 4.12
          2. enable cluster logging 
          3. forward the audit log to internal or external logstore using below config
      
      apiVersion: logging.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: instance
        namespace: openshift-logging
      spec:
        pipelines: 
        - name: all-to-default
          inputRefs:
          - infrastructure
          - application
          - audit
          outputRefs:
          - default     
      
          4. Check the audit logs in kibana, it will show the logs like below image

      Actual results:

          Kube-apiserver-operator is trying to delete prometheus rule that does not exists in the cluster

      Expected results:

      if the rule is not there in the cluster it should not be searched for deletion

      Additional info:

          

      Attachments

        Issue Links

          Activity

            People

              vrutkovs@redhat.com Vadim Rutkovsky
              rhn-support-ssonigra Sonigra Saurab
              Rahul Gangwar Rahul Gangwar
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: