osmith has uploaded this change for review. ( 
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-4-git-send-email-yanhaishu...@cmss.chinamobile.com/

Fixes: OS#6575
Change-Id: Ie27668f38b80c52ffef4e17b3fe64f0c9109bdea
---
M _testenv/testenv/podman.py
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/99/38299/1

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: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie27668f38b80c52ffef4e17b3fe64f0c9109bdea
Gerrit-Change-Number: 38299
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to