public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] test-container: use IPv4 loopback for Squid proxy
@ 2026-11-09 12:41 'Clara Kowalsky' via isar-users
  0 siblings, 0 replies; only message in thread
From: 'Clara Kowalsky' via isar-users @ 2026-11-09 12:41 UTC (permalink / raw)
  To: isar-users; +Cc: Clara Kowalsky

APT package downloads run against the target rootfs, whose resolver
configuration may not resolve localhost. Running the test:

./scripts/run-tests.sh testsuite/citest.py:SingleTest.test_single_build \
  -p machine=qemuamd64 -p distro=trixie -p rootless=0 -p sstate=0

fails in rootfs_install_pkgs_download with:
Could not resolve 'localhost'

Fix this by pointing the proxy at 127.0.0.1 to avoid resolving its
hostname. The rootfs command shares the test container's network
namespace, so it can still reach Squid.

Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
 testsuite/dockerdata/test-container-entrypoint | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/dockerdata/test-container-entrypoint b/testsuite/dockerdata/test-container-entrypoint
index 49771c15..8c3b3552 100755
--- a/testsuite/dockerdata/test-container-entrypoint
+++ b/testsuite/dockerdata/test-container-entrypoint
@@ -78,7 +78,7 @@ mkdir /isar
 
 busybox syslogd
 squid
-export http_proxy=http://localhost:3128
+export http_proxy=http://127.0.0.1:3128
 
 # Reuse the existing entrypoint script, exploiting that entry without
 # parameters drops us into a shell, rather then calling kas.
-- 
2.56.0

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261109124139.484495-1-clara.kowalsky%40siemens.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-09 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 12:41 [PATCH] test-container: use IPv4 loopback for Squid proxy 'Clara Kowalsky' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox