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

DNSRecord is not removed after gateway listener is deleted

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 1
    • Important
    • None
    • None
    • None
    • Rejected
    • NI&D Sprint 278
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

         When a gateway is created with multiple listeners, corresponding multiple DNSRecords are also created. When a listener is removed from the gateway the corresponding DNSRecord is not deleted  

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

          OCP 4.19

      How reproducible:

          Always

      Steps to Reproduce:

          1. Create a gateway with 3 unique listeners with different hostNames
      e.g
      oc create -f - <<EOF
      apiVersion: gateway.networking.k8s.io/v1
      kind: Gateway
      metadata:
        name: gateway
        namespace: openshift-ingress
      spec:
        gatewayClassName: openshift-default
        listeners:
        - name: http
          hostname: "*.$gwapi_domain"
          port: 80
          protocol: HTTP
          allowedRoutes:
            namespaces:
              from: All
        - name: https
          hostname: "*.prod.example.com"
          port: 443
          protocol: HTTPS
          tls:
            mode: Terminate
            certificateRefs:
            - name: gwapi-wildcard
          allowedRoutes:
            namespaces:
              from: All
        - name: prod-https
          hostname: "*.stage.example.com"
          port: 443
          protocol: HTTPS
          tls:
            mode: Terminate
            certificateRefs:
            - name: gwapi-wildcard
          allowedRoutes:
            namespaces:
              from: All
      EOF     
          2. Check the DNSRecords in the openshift-ingress namespace
          3. Edit the gateway CR and remove a listener
          4. Check the DNSRecords again after removing the listener
          

      Actual results:

      DNSRecord of the removed listener still remains    

      Expected results:

          DNSRecord of the removed listener should be deleted

      Additional info:

          

              alebedev@redhat.com Andrey Lebedev
              rh-ee-iamin Ishmam Amin
              None
              None
              Ishmam Amin Ishmam Amin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: