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

Test "[sig-network-edge][Conformance][Area:Networking][Feature:Router] The HAProxy router should be able to connect to a service that is idled because a GET on the route will unidle it" not working on dualstack ipv6primary cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • 4.15
    • Networking / router
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The test is failing because the socat configured on the pod does not support ipv6.

      It is confirmed by running on the pod:

      sh-4.4$ /usr/bin/socat TCP6-LISTEN:8082,reuseaddr,fork EXEC:'/bin/bash -c \"printf \\\"HTTP/1.0 200 OK\r\n\r\n\\\"; sed -e \\\"/^\r/q\\\"\"' &                                                                                               
      [2] 32
      sh-4.4$
      sh-4.4$ curl [fd01:0:0:5::52c]:8082                                                                                                                                                                                                          
      GET / HTTP/1.1
      Host: [fd01:0:0:5::52c]:8082
      User-Agent: curl/7.61.1
      Accept: */*
      

      As a consequence, the endpoint for the svc is shown as notReady:

      [stack@undercloud-0 ~]$ oc describe endpoints -n $NAMESPACE
      Name:         idle-test
      Namespace:    e2e-test-router-idling-qsvn7
      Labels:       app=idle-test
      Annotations:  endpoints.kubernetes.io/last-change-trigger-time: 2024-01-10T11:41:33Z
      Subsets:
        Addresses:          <none>
        NotReadyAddresses:  fd01:0:0:5::52b
        Ports:
          Name       Port  Protocol
          ----       ----  --------
          8080-http  8080  TCP
      

      and the testcase fails with http response code 503:

        Jan 10 07:10:44.005: INFO: GET#2 "http://idle-test-e2e-test-router-idling-95jmw.apps.ostest.shiftstack.com" status=503
        Jan 10 07:10:45.005: INFO: GET#3 "http://idle-test-e2e-test-router-idling-95jmw.apps.ostest.shiftstack.com" status=503
        Jan 10 07:10:46.005: INFO: GET#4 "http://idle-test-e2e-test-router-idling-95jmw.apps.ostest.shiftstack.com" status=503
      

      The fix can be placed on https://github.com/openshift/origin/blob/6d5063bb04e0395cc93d4c2591e5e1372d8e5119/test/extended/router/idle.go#L149-L154 or the test should be skipped if ipv6 cluster (or ipv6primary dualstack cluster).,¡

      Version-Release number of selected component (if applicable): https://github.com/openshift/origin/tree/release-4.15

            rfredett@redhat.com Ryan Fredette
            rlobillo Ramón Lobillo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: