From: "'Clara Kowalsky' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Clara Kowalsky <clara.kowalsky@siemens.com>
Subject: [PATCH] test-container: use IPv4 loopback for Squid proxy
Date: Mon, 9 Nov 2026 13:41:39 +0100 [thread overview]
Message-ID: <20261109124139.484495-1-clara.kowalsky@siemens.com> (raw)
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.
reply other threads:[~2026-11-09 12:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261109124139.484495-1-clara.kowalsky@siemens.com \
--to=isar-users@googlegroups.com \
--cc=clara.kowalsky@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox