From 804708df5321206ae6c47eabdaacab8188a6392b Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 22 Oct 2025 12:04:12 +0200 Subject: [PATCH] /test: use a different image for hostname override e2e tests As discovered in ticket 134737 `hostname` is buggy on busybox due to the musl backend that it uses. something in the /etc/hosts that k8s generates trips its parser and it doesn't work properly in the ipv6 tests. To workaround that use an image that has a glibc backend, so that the hostname command works. --- test/e2e/common/node/pod_hostnameoverride.go | 2 +- test/e2e_node/pod_hostnamefqdn_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/common/node/pod_hostnameoverride.go b/test/e2e/common/node/pod_hostnameoverride.go index e68734e244a..32e9c933474 100644 --- a/test/e2e/common/node/pod_hostnameoverride.go +++ b/test/e2e/common/node/pod_hostnameoverride.go @@ -43,7 +43,7 @@ func newTestPod(namespace string) *v1.Pod { Containers: []v1.Container{ { Name: "test-pod-hostname-override", - Image: imageutils.GetE2EImage(imageutils.Agnhost), + Image: imageutils.GetE2EImage(imageutils.JessieDnsutils), Command: []string{"sh", "-c", "echo $(hostname)';'$(hostname -f)';'"}, }, }, diff --git a/test/e2e_node/pod_hostnamefqdn_test.go b/test/e2e_node/pod_hostnamefqdn_test.go index 51b9bf51bfc..92d8ebff17b 100644 --- a/test/e2e_node/pod_hostnamefqdn_test.go +++ b/test/e2e_node/pod_hostnamefqdn_test.go @@ -63,7 +63,7 @@ func testPod(podnamebase string) *v1.Pod { Containers: []v1.Container{ { Name: "test-container", - Image: imageutils.GetE2EImage(imageutils.BusyBox), + Image: imageutils.GetE2EImage(imageutils.JessieDnsutils), }, }, RestartPolicy: v1.RestartPolicyNever,