Closed andreaskaris closed 2 years ago
After my change:
[root@ovnkubernetes ovn-kubernetes]# for i in {0..1}; do make -C test control-plane WHAT=".*Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local.*"; done
make: Entering directory '/root/development/ovn-kubernetes/test'
E2E_REPORT_DIR=/root/development/ovn-kubernetes/test/_artifacts \
E2E_REPORT_PREFIX="control-plane"_ \
KIND_IPV4_SUPPORT=false \
KIND_IPV6_SUPPORT=false \
OVN_HA= \
./scripts/e2e-cp.sh .*Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local.*
+ export KUBERNETES_CONFORMANCE_TEST=y
+ KUBERNETES_CONFORMANCE_TEST=y
+ export KUBECONFIG=/root/admin.conf
+ KUBECONFIG=/root/admin.conf
+ IPV6_SKIPPED_TESTS='Should be allowed by externalip services|should provide connection to external host by DNS name from a pod|Should validate flow data of br-int is sent to an external gateway with netflow v5|test tainting a node according to its defaults interface MTU size'
+ SKIPPED_TESTS=
+ '[' false == true ']'
+ '[' '' == false ']'
+ '[' '' '!=' '' ']'
+ SKIPPED_TESTS+='Should validate connectivity before and after deleting all the db-pods at once in Non-HA mode| e2e br-int NetFlow export validation'
+ '[' false == true ']'
+ export KUBE_CONTAINER_RUNTIME=remote
+ KUBE_CONTAINER_RUNTIME=remote
+ export KUBE_CONTAINER_RUNTIME_ENDPOINT=unix:///run/containerd/containerd.sock
+ KUBE_CONTAINER_RUNTIME_ENDPOINT=unix:///run/containerd/containerd.sock
+ export KUBE_CONTAINER_RUNTIME_NAME=containerd
+ KUBE_CONTAINER_RUNTIME_NAME=containerd
+ export NUM_NODES=2
+ NUM_NODES=2
++ sed 's/ /\\s/g'
++ echo '.*Should' be allowed to node local host-networked endpoints by nodeport services with 'externalTrafficPolicy=local.*'
+ FOCUS='.*Should\sbe\sallowed\sto\snode\slocal\shost-networked\sendpoints\sby\snodeport\sservices\swith\sexternalTrafficPolicy=local.*'
+ pushd e2e
~/development/ovn-kubernetes/test/e2e ~/development/ovn-kubernetes/test
+ go mod download
+ go test -timeout=0 -v . -ginkgo.v -ginkgo.focus '.*Should\sbe\sallowed\sto\snode\slocal\shost-networked\sendpoints\sby\snodeport\sservices\swith\sexternalTrafficPolicy=local.*' -ginkgo.flakeAttempts 2 '-ginkgo.skip=Should validate connectivity before and after deleting all the db-pods at once in Non-HA mode| e2e br-int NetFlow export validation' -provider skeleton -kubeconfig /root/admin.conf --num-nodes=2 --report-dir=/root/development/ovn-kubernetes/test/_artifacts --report-prefix=control-plane_
=== RUN TestE2e
I1221 12:24:09.238351 412115 e2e_suite_test.go:61] Saving reports to /root/development/ovn-kubernetes/test/_artifacts
Running Suite: E2e Suite
========================
Random Seed: 1640089449 - Will randomize all specs
Will run 2 of 64 specs
SSSSS
------------------------------
e2e ingress to host-networked pods traffic validation Validating ingress traffic to Host Networked pods
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2237
[BeforeEach] e2e ingress to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:185
STEP: Creating a kubernetes client
Dec 21 12:24:09.251: INFO: >>> kubeConfig: /root/admin.conf
STEP: Building a namespace api object, basename nodeport-ingress-test
Dec 21 12:24:09.353: INFO: No PodSecurityPolicies found; assuming PodSecurityPolicy is disabled.
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] Validating ingress traffic to Host Networked pods
/root/development/ovn-kubernetes/test/e2e/e2e.go:2182
STEP: Making sure that all invalid namespaces with pattern '^host-to-host-test.*|^nodeport-ingress-test.*' are deleted
STEP: Creating the endpoints pod, one for each worker
STEP: Creating an external container to send the traffic from
[It] Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2237
STEP: Creating the nodeport service with externalTrafficPolicy=local
STEP: Waiting for the endpoints to pop up
Dec 21 12:24:17.768: INFO: Waiting for amount of service:nodeportsvclocalhostnet endpoints to be 3
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:24:18.410: INFO: Validated local endpoint on node ovn-control-plane with address 172.18.0.3, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:24:19.015: INFO: Validated local endpoint on node ovn-control-plane with address fc00:f853:ccd:e793::3, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:24:19.570: INFO: Validated local endpoint on node ovn-worker with address 172.18.0.4, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:24:20.151: INFO: Validated local endpoint on node ovn-worker with address fc00:f853:ccd:e793::4, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:24:20.678: INFO: Validated local endpoint on node ovn-worker2 with address 172.18.0.2, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:24:21.188: INFO: Validated local endpoint on node ovn-worker2 with address fc00:f853:ccd:e793::2, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol udp
Dec 21 12:24:21.746: INFO: Validated local endpoint on node ovn-control-plane with address 172.18.0.3, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol udp
Dec 21 12:24:22.263: INFO: Validated local endpoint on node ovn-control-plane with address fc00:f853:ccd:e793::3, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol udp
Dec 21 12:24:22.780: INFO: Validated local endpoint on node ovn-worker with address 172.18.0.4, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol udp
Dec 21 12:24:23.302: INFO: Validated local endpoint on node ovn-worker with address fc00:f853:ccd:e793::4, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol udp
Dec 21 12:24:23.828: INFO: Validated local endpoint on node ovn-worker2 with address 172.18.0.2, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol udp
Dec 21 12:24:24.370: INFO: Validated local endpoint on node ovn-worker2 with address fc00:f853:ccd:e793::2, and packet src IP fc00:f853:ccd:e793::5
[AfterEach] Validating ingress traffic to Host Networked pods
/root/development/ovn-kubernetes/test/e2e/e2e.go:2232
[AfterEach] e2e ingress to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:186
Dec 21 12:24:24.815: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
STEP: Destroying namespace "nodeport-ingress-test-8081" for this suite.
• [SLOW TEST:15.571 seconds]
e2e ingress to host-networked pods traffic validation
/root/development/ovn-kubernetes/test/e2e/e2e.go:2154
Validating ingress traffic to Host Networked pods
/root/development/ovn-kubernetes/test/e2e/e2e.go:2181
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2237
------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
------------------------------
host to host-networked pods traffic validation Validating Host to Host Netwoked pods traffic
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2363
[BeforeEach] host to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:185
STEP: Creating a kubernetes client
Dec 21 12:24:24.822: INFO: >>> kubeConfig: /root/admin.conf
STEP: Building a namespace api object, basename host-to-host-test
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] Validating Host to Host Netwoked pods traffic
/root/development/ovn-kubernetes/test/e2e/e2e.go:2318
STEP: Making sure that all invalid namespaces with pattern '^host-to-host-test.*|^nodeport-ingress-test.*' are deleted
Dec 21 12:24:25.062: INFO: Assuring that namespace nodeport-ingress-test-8081 is deleted.
STEP: Waiting for namespaces [nodeport-ingress-test-8081] to vanish
STEP: Creating the endpoints pod, one for each worker
[It] Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2363
STEP: Creating the nodeport service with externalTrafficPolicy=local
STEP: Waiting for the endpoints to pop up
Dec 21 12:24:50.392: INFO: Waiting for amount of service:nodeportsvclocalhostnet endpoints to be 3
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:24:50.657: INFO: Validated local endpoint on node ovn-control-plane with address 172.18.0.3, and packet src IP 172.18.0.3:50946
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:24:50.861: INFO: Validated local endpoint on node ovn-control-plane with address fc00:f853:ccd:e793::3, and packet src IP [fc00:f853:ccd:e793::3]:60456
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:24:51.053: INFO: Validated local endpoint on node ovn-worker with address 172.18.0.4, and packet src IP 172.18.0.4:37408
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:24:51.238: INFO: Validated local endpoint on node ovn-worker with address fc00:f853:ccd:e793::4, and packet src IP [fc00:f853:ccd:e793::4]:43706
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:24:51.418: INFO: Validated local endpoint on node ovn-worker2 with address 172.18.0.2, and packet src IP 172.18.0.2:59696
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:24:51.623: INFO: Validated local endpoint on node ovn-worker2 with address fc00:f853:ccd:e793::2, and packet src IP [fc00:f853:ccd:e793::2]:56276
[AfterEach] host to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:186
Dec 21 12:24:51.623: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
STEP: Destroying namespace "host-to-host-test-1318" for this suite.
• [SLOW TEST:26.806 seconds]
host to host-networked pods traffic validation
/root/development/ovn-kubernetes/test/e2e/e2e.go:2295
Validating Host to Host Netwoked pods traffic
/root/development/ovn-kubernetes/test/e2e/e2e.go:2317
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2363
------------------------------
JUnit report was created: /root/development/ovn-kubernetes/test/_artifacts/junit_control-plane_01.xml
Ran 2 of 64 Specs in 42.378 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Flaked | 0 Pending | 62 Skipped
--- PASS: TestE2e (42.40s)
PASS
ok github.com/ovn-org/ovn-kubernetes/test/e2e 42.420s
+ popd
~/development/ovn-kubernetes/test
make: Leaving directory '/root/development/ovn-kubernetes/test'
make: Entering directory '/root/development/ovn-kubernetes/test'
E2E_REPORT_DIR=/root/development/ovn-kubernetes/test/_artifacts \
E2E_REPORT_PREFIX="control-plane"_ \
KIND_IPV4_SUPPORT=false \
KIND_IPV6_SUPPORT=false \
OVN_HA= \
./scripts/e2e-cp.sh .*Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local.*
+ export KUBERNETES_CONFORMANCE_TEST=y
+ KUBERNETES_CONFORMANCE_TEST=y
+ export KUBECONFIG=/root/admin.conf
+ KUBECONFIG=/root/admin.conf
+ IPV6_SKIPPED_TESTS='Should be allowed by externalip services|should provide connection to external host by DNS name from a pod|Should validate flow data of br-int is sent to an external gateway with netflow v5|test tainting a node according to its defaults interface MTU size'
+ SKIPPED_TESTS=
+ '[' false == true ']'
+ '[' '' == false ']'
+ '[' '' '!=' '' ']'
+ SKIPPED_TESTS+='Should validate connectivity before and after deleting all the db-pods at once in Non-HA mode| e2e br-int NetFlow export validation'
+ '[' false == true ']'
+ export KUBE_CONTAINER_RUNTIME=remote
+ KUBE_CONTAINER_RUNTIME=remote
+ export KUBE_CONTAINER_RUNTIME_ENDPOINT=unix:///run/containerd/containerd.sock
+ KUBE_CONTAINER_RUNTIME_ENDPOINT=unix:///run/containerd/containerd.sock
+ export KUBE_CONTAINER_RUNTIME_NAME=containerd
+ KUBE_CONTAINER_RUNTIME_NAME=containerd
+ export NUM_NODES=2
+ NUM_NODES=2
++ sed 's/ /\\s/g'
++ echo '.*Should' be allowed to node local host-networked endpoints by nodeport services with 'externalTrafficPolicy=local.*'
+ FOCUS='.*Should\sbe\sallowed\sto\snode\slocal\shost-networked\sendpoints\sby\snodeport\sservices\swith\sexternalTrafficPolicy=local.*'
+ pushd e2e
~/development/ovn-kubernetes/test/e2e ~/development/ovn-kubernetes/test
+ go mod download
+ go test -timeout=0 -v . -ginkgo.v -ginkgo.focus '.*Should\sbe\sallowed\sto\snode\slocal\shost-networked\sendpoints\sby\snodeport\sservices\swith\sexternalTrafficPolicy=local.*' -ginkgo.flakeAttempts 2 '-ginkgo.skip=Should validate connectivity before and after deleting all the db-pods at once in Non-HA mode| e2e br-int NetFlow export validation' -provider skeleton -kubeconfig /root/admin.conf --num-nodes=2 --report-dir=/root/development/ovn-kubernetes/test/_artifacts --report-prefix=control-plane_
=== RUN TestE2e
I1221 12:24:54.056912 416042 e2e_suite_test.go:61] Saving reports to /root/development/ovn-kubernetes/test/_artifacts
Running Suite: E2e Suite
========================
Random Seed: 1640089494 - Will randomize all specs
Will run 2 of 64 specs
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
------------------------------
e2e ingress to host-networked pods traffic validation Validating ingress traffic to Host Networked pods
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2237
[BeforeEach] e2e ingress to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:185
STEP: Creating a kubernetes client
Dec 21 12:24:54.069: INFO: >>> kubeConfig: /root/admin.conf
STEP: Building a namespace api object, basename nodeport-ingress-test
Dec 21 12:24:54.182: INFO: No PodSecurityPolicies found; assuming PodSecurityPolicy is disabled.
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] Validating ingress traffic to Host Networked pods
/root/development/ovn-kubernetes/test/e2e/e2e.go:2182
STEP: Making sure that all invalid namespaces with pattern '^host-to-host-test.*|^nodeport-ingress-test.*' are deleted
Dec 21 12:24:54.189: INFO: Assuring that namespace host-to-host-test-1318 is deleted.
STEP: Waiting for namespaces [host-to-host-test-1318] to vanish
STEP: Creating the endpoints pod, one for each worker
STEP: Creating an external container to send the traffic from
[It] Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2237
STEP: Creating the nodeport service with externalTrafficPolicy=local
STEP: Waiting for the endpoints to pop up
Dec 21 12:25:18.426: INFO: Waiting for amount of service:nodeportsvclocalhostnet endpoints to be 3
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:25:18.980: INFO: Validated local endpoint on node ovn-control-plane with address 172.18.0.3, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:25:19.535: INFO: Validated local endpoint on node ovn-control-plane with address fc00:f853:ccd:e793::3, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:25:20.185: INFO: Validated local endpoint on node ovn-worker with address 172.18.0.4, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:25:20.749: INFO: Validated local endpoint on node ovn-worker with address fc00:f853:ccd:e793::4, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:25:21.291: INFO: Validated local endpoint on node ovn-worker2 with address 172.18.0.2, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:25:21.822: INFO: Validated local endpoint on node ovn-worker2 with address fc00:f853:ccd:e793::2, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol udp
Dec 21 12:25:22.403: INFO: Validated local endpoint on node ovn-control-plane with address 172.18.0.3, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol udp
Dec 21 12:25:22.970: INFO: Validated local endpoint on node ovn-control-plane with address fc00:f853:ccd:e793::3, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol udp
Dec 21 12:25:23.486: INFO: Validated local endpoint on node ovn-worker with address 172.18.0.4, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol udp
Dec 21 12:25:24.008: INFO: Validated local endpoint on node ovn-worker with address fc00:f853:ccd:e793::4, and packet src IP fc00:f853:ccd:e793::5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol udp
Dec 21 12:25:24.560: INFO: Validated local endpoint on node ovn-worker2 with address 172.18.0.2, and packet src IP 172.18.0.5
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol udp
Dec 21 12:25:25.222: INFO: Validated local endpoint on node ovn-worker2 with address fc00:f853:ccd:e793::2, and packet src IP fc00:f853:ccd:e793::5
[AfterEach] Validating ingress traffic to Host Networked pods
/root/development/ovn-kubernetes/test/e2e/e2e.go:2232
[AfterEach] e2e ingress to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:186
Dec 21 12:25:25.570: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
STEP: Destroying namespace "nodeport-ingress-test-8081" for this suite.
• [SLOW TEST:31.507 seconds]
e2e ingress to host-networked pods traffic validation
/root/development/ovn-kubernetes/test/e2e/e2e.go:2154
Validating ingress traffic to Host Networked pods
/root/development/ovn-kubernetes/test/e2e/e2e.go:2181
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2237
------------------------------
SSSSSSSSSS
------------------------------
host to host-networked pods traffic validation Validating Host to Host Netwoked pods traffic
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2363
[BeforeEach] host to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:185
STEP: Creating a kubernetes client
Dec 21 12:25:25.576: INFO: >>> kubeConfig: /root/admin.conf
STEP: Building a namespace api object, basename host-to-host-test
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] Validating Host to Host Netwoked pods traffic
/root/development/ovn-kubernetes/test/e2e/e2e.go:2318
STEP: Making sure that all invalid namespaces with pattern '^host-to-host-test.*|^nodeport-ingress-test.*' are deleted
Dec 21 12:25:25.605: INFO: Assuring that namespace nodeport-ingress-test-8081 is deleted.
STEP: Waiting for namespaces [nodeport-ingress-test-8081] to vanish
STEP: Creating the endpoints pod, one for each worker
[It] Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2363
STEP: Creating the nodeport service with externalTrafficPolicy=local
STEP: Waiting for the endpoints to pop up
Dec 21 12:27:08.968: INFO: Waiting for amount of service:nodeportsvclocalhostnet endpoints to be 3
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:27:09.183: INFO: Validated local endpoint on node ovn-control-plane with address 172.18.0.3, and packet src IP 172.18.0.3:60736
STEP: Hitting the nodeport on ovn-control-plane and trying to reach only the local endpoint with protocol http
Dec 21 12:27:09.399: INFO: Validated local endpoint on node ovn-control-plane with address fc00:f853:ccd:e793::3, and packet src IP [fc00:f853:ccd:e793::3]:39738
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:27:09.594: INFO: Validated local endpoint on node ovn-worker with address 172.18.0.4, and packet src IP 172.18.0.4:58690
STEP: Hitting the nodeport on ovn-worker and trying to reach only the local endpoint with protocol http
Dec 21 12:27:09.776: INFO: Validated local endpoint on node ovn-worker with address fc00:f853:ccd:e793::4, and packet src IP [fc00:f853:ccd:e793::4]:52270
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:27:09.969: INFO: Validated local endpoint on node ovn-worker2 with address 172.18.0.2, and packet src IP 172.18.0.2:54274
STEP: Hitting the nodeport on ovn-worker2 and trying to reach only the local endpoint with protocol http
Dec 21 12:27:10.155: INFO: Validated local endpoint on node ovn-worker2 with address fc00:f853:ccd:e793::2, and packet src IP [fc00:f853:ccd:e793::2]:41458
[AfterEach] host to host-networked pods traffic validation
/root/go/pkg/mod/k8s.io/kubernetes@v1.22.2/test/e2e/framework/framework.go:186
Dec 21 12:27:10.155: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
STEP: Destroying namespace "host-to-host-test-1318" for this suite.
• [SLOW TEST:104.586 seconds]
host to host-networked pods traffic validation
/root/development/ovn-kubernetes/test/e2e/e2e.go:2295
Validating Host to Host Netwoked pods traffic
/root/development/ovn-kubernetes/test/e2e/e2e.go:2317
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
/root/development/ovn-kubernetes/test/e2e/e2e.go:2363
------------------------------
SSSSS
JUnit report was created: /root/development/ovn-kubernetes/test/_artifacts/junit_control-plane_01.xml
Ran 2 of 64 Specs in 136.094 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Flaked | 0 Pending | 62 Skipped
--- PASS: TestE2e (136.11s)
PASS
ok github.com/ovn-org/ovn-kubernetes/test/e2e 136.133s
+ popd
~/development/ovn-kubernetes/test
make: Leaving directory '/root/development/ovn-kubernetes/test'
There is a minor issue in
Should be allowed to node local host-networked endpoints by nodeport services with externalTrafficPolicy=local
or perhaps even in the k8s e2e tests.WaitForNamespacesDeleted
will already return when the namespaces are deleted, but pods are still in terminating state at this point and hogging the node ports for a good 1 - 2 minutes more:We can reproduce this by running the following test 2x in a row in a kind environment:
See the pod events here [0]
The second test will go into a retry loop where it first fails due to ports being hogged, and then it repeats the same issue on every rotation: tearing down the namespace -> pods in terminating state -> spawning new pods at the same time -> cannot run test successfully. See [1]
This is not biting us yet in our tests but may at some point in the future if we run node port tests back to back.
=====================================================
[0]
[1]