fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/37277?usp=email )
Change subject: ttcn3-s1gw-test: start osmo-s1gw container with --user=root
......................................................................
ttcn3-s1gw-test: start osmo-s1gw container with --user=root
For some reason, on Arch with docker 26.1.3 it implicitly starts
with --user=root, while with docker 20.10.5 on Debian bookworm it
starts with --user=build. This results in permission errors:
+ ip addr add 172.18.74.100/24 dev eth0
RTNETLINK answers: Operation not permitted
+ true
+ ip addr add 172.18.74.200/24 dev eth0
RTNETLINK answers: Operation not permitted
Pass --user=root explicitly to bring consistency and fix those.
Hopefully, ttcn3-s1gw-test will be passing on Jenkins with this patch.
Change-Id: I5cc67d1c3192fd55560c16c8cc44b13b2c9b3e98
Fixes: 9ca9bed "ttcn3-s1gw-test: fix using unassigned addr for osmo-s1gw"
---
M ttcn3-s1gw-test/jenkins.sh
1 file changed, 24 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/77/37277/1
diff --git a/ttcn3-s1gw-test/jenkins.sh b/ttcn3-s1gw-test/jenkins.sh
index 78a9624..f00987d 100755
--- a/ttcn3-s1gw-test/jenkins.sh
+++ b/ttcn3-s1gw-test/jenkins.sh
@@ -23,6 +23,7 @@
echo "Starting container with osmo-s1gw"
docker run --rm \
$(docker_network_params $SUBNET 100) \
+ --user=root \
--ulimit core=-1 \
--cap-add=NET_ADMIN \
-e "ERL_FLAGS=-config /data/osmo-s1gw.config" \
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/37277?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I5cc67d1c3192fd55560c16c8cc44b13b2c9b3e98
Gerrit-Change-Number: 37277
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/37270?usp=email )
Change subject: ttcn3-s1gw-test: fix using unassigned addr for osmo-s1gw
......................................................................
Patch Set 2: Code-Review+2
(1 comment)
File ttcn3-s1gw-test/s1gw.sh:
https://gerrit.osmocom.org/c/docker-playground/+/37270/comment/ab4bf171_250…
PS2, Line 8: su build -c "/tmp/osmo-s1gw/_build/default/bin/osmo-s1gw"
> is the env inherited here when running through su?
Yes, I also had this question and confirmed by testing manually.
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/37270?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I109a5feaca5acf050008e883cc8b4e1e28beebab
Gerrit-Change-Number: 37270
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 22 Jun 2024 19:33:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/37270?usp=email )
Change subject: ttcn3-s1gw-test: fix using unassigned addr for osmo-s1gw
......................................................................
Patch Set 2: Code-Review+1
(2 comments)
File ttcn3-s1gw-test/jenkins.sh:
https://gerrit.osmocom.org/c/docker-playground/+/37270/comment/e6fb16f4_11e…
PS2, Line 28: -e "ERL_FLAGS=-config /data/osmo-s1gw.config" \
You can probably simply move this inside the s1gw.sh since you only need it really to run the erlang eunit, but ok.
File ttcn3-s1gw-test/s1gw.sh:
https://gerrit.osmocom.org/c/docker-playground/+/37270/comment/1707fd51_a43…
PS2, Line 8: su build -c "/tmp/osmo-s1gw/_build/default/bin/osmo-s1gw"
is the env inherited here when running through su?
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/37270?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I109a5feaca5acf050008e883cc8b4e1e28beebab
Gerrit-Change-Number: 37270
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 22 Jun 2024 17:41:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment