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

openshift_ingress_to_route_controller_ingress_without_class_name metrics is not reset to 0 after the Ingress resources being deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 4.14
    • Networking / router
    • None
    • No
    • 1
    • Sprint 252
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The openshift_ingress_to_route_controller_ingress_without_class_name metrics is not reset to 0 after the Ingress resource being deleted.
      
      As a result, the IngressWithoutClassName alert will keep in Firing state even if the Ingress resource that cause the alert has already been deleted.

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

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

          1. Create a test Ingress resouce
      
      $ cat ingress.yaml
      apiVersion: networking.k8s.io/v1
      kind: Ingress
      metadata:
        name: minimal-ingress
      spec:
        rules:
        - http:
            paths:
            - path: /testpath
              pathType: Prefix
              backend:
                service:
                  name: hello-sinatra
                  port:
                    number: 8080
      
          2. Confirm the IngressWithoutClassName alert is in Pending state
         3. Confirm the openshift_ingress_to_route_controller_ingress_without_class_name metrics has a value equals to 1
          4. Delete the test Ingress resource
          5. Confirm the IngressWithoutClassName alert state and the openshift_ingress_to_route_controller_ingress_without_class_name metrics value

      Actual results:

          The IngressWithoutClassName alert is still in Pending state because the openshift_ingress_to_route_controller_ingress_without_class_name metrics value is still 1.

      Expected results:

         The openshift_ingress_to_route_controller_ingress_without_class_name metrics value is reset to 0 and the IngressWithoutClassName alert is resolved. 

      Additional info:

          

            mmasters1@redhat.com Miciah Masters
            rhn-support-yhe Yiyong He
            Hongan Li Hongan Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: