osmith has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38299?usp=email )
Change subject: testenv: podman: disable send_redirects
......................................................................
testenv: podman: disable send_redirects
When starting podman, set the following sysctls to avoid ICMP redirects.
ICMP redirects lead to test failures (TC_pdp4_clients_interact in the
GGSN testsuite), and should not be sent in the test environment in
general.
net.ipv4.conf.all.send_redirects=0
net.ipv4.conf.default.send_redirects=0
It is really needed to set both "all" and "default", or otherwise
ICMP
redirects still show up. I've seen setting both in this patch:
https://patchwork.kernel.org/project/linux-kselftest/patch/1570719055-25110…
Fixes: OS#6575
Change-Id: Ie27668f38b80c52ffef4e17b3fe64f0c9109bdea
---
M _testenv/testenv/podman.py
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
diff --git a/_testenv/testenv/podman.py b/_testenv/testenv/podman.py
index 0ecf12d..60aecca 100644
--- a/_testenv/testenv/podman.py
+++ b/_testenv/testenv/podman.py
@@ -209,6 +209,10 @@
f"{apt_dir_var_cache}:/var/cache/apt",
"--volume",
f"{apt_dir_var_lib}:/var/lib/apt",
+ "--sysctl",
+ "net.ipv4.conf.all.send_redirects=0", # OS#6575
+ "--sysctl",
+ "net.ipv4.conf.default.send_redirects=0", # OS#6575
]
if not testenv.args.binary_repo:
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38299?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie27668f38b80c52ffef4e17b3fe64f0c9109bdea
Gerrit-Change-Number: 38299
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>