Skip to content

Commit 76c4f47

Browse files
alebedev87claude
andcommitted
NE-2422: router/idle: use TCP6-LISTEN for socat on IPv6-primary clusters
On IPv6-primary dual-stack clusters, the readiness probe connects via the pod's IPv6 address. The socat backend using TCP4-LISTEN only accepts IPv4 connections, causing the pod to never become ready and the test to time out. Use TCP6-LISTEN when the infrastructure IPFamily is DualStackIPv6Primary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 90acef1 commit 76c4f47

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/extended/router/idle.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ var _ = g.Describe("[sig-network-edge][Conformance][Area:Networking][Feature:Rou
6464
g.Skip("https://bugzilla.redhat.com/show_bug.cgi?id=1933114")
6565
}
6666

67+
// On IPv6-primary clusters, socat must listen on IPv6 since
68+
// the readiness probe connects via the pod's IPv6 address.
69+
socatListen := "TCP4-LISTEN:8080"
70+
if infra.Status.PlatformStatus.AWS != nil &&
71+
infra.Status.PlatformStatus.AWS.IPFamily == configv1.DualStackIPv6Primary {
72+
socatListen = "TCP6-LISTEN:8080"
73+
}
74+
6775
timeout := 15 * time.Minute
6876

6977
g.By("creating test fixtures")
@@ -149,7 +157,7 @@ var _ = g.Describe("[sig-network-edge][Conformance][Area:Networking][Feature:Rou
149157
},
150158
Command: []string{
151159
"/usr/bin/socat",
152-
"TCP4-LISTEN:8080,reuseaddr,fork",
160+
socatListen + ",reuseaddr,fork",
153161
`EXEC:'/bin/bash -c \"printf \\\"HTTP/1.0 200 OK\r\n\r\n\\\"; sed -e \\\"/^\r/q\\\"\"'`,
154162
},
155163
Ports: []corev1.ContainerPort{

0 commit comments

Comments
 (0)