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

[GWAPI GA] DNSRecord is not removed after gateway listener is deleted

    • Important
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      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:

          

            [OCPBUGS-48297] [GWAPI GA] DNSRecord is not removed after gateway listener is deleted

            This bug is being closed because it has not had any activity in the past 3 months. While it represents a valid problem, leaving such bugs open provides a false indication that they will be addressed. Please reopen the bug if you have additional context that would help us better understand what needs to be done.

            OpenShift Jira Bot added a comment - This bug is being closed because it has not had any activity in the past 3 months. While it represents a valid problem, leaving such bugs open provides a false indication that they will be addressed. Please reopen the bug if you have additional context that would help us better understand what needs to be done.

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

                Created:
                Updated:
                Resolved: