See
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/display/redirect?page=changes>
Changes:
[Oliver Smith] ttcn3-*/jenkins*.sh: use $SUBNET everywhere
[Oliver Smith] network_create: find free subnet automatically
------------------------------------------
[...truncated 41.85 KB...]
+ [ -z ]
+ docker_upstream_distro_from_image_name ttcn3-ggsn-test
+ echo debian:bullseye
+ upstream_distro_arg=debian:bullseye
+ docker_dir_from_image_name ttcn3-ggsn-test
+ echo ttcn3-ggsn-test
+ dir=ttcn3-ggsn-test
+ pull_arg=--pull
+ grep ^FROM ../ttcn3-ggsn-test/Dockerfile
+ from_line=FROM $REGISTRY/$USER/debian-bullseye-titan
+ echo FROM $REGISTRY/$USER/debian-bullseye-titan
+ grep -q $USER
+ pull_arg=
+ set +x
Building image: ttcn3-ggsn-test (export NO_DOCKER_IMAGE_BUILD=1 to prevent this)
+ make -C ../ttcn3-ggsn-test BUILD_ARGS= UPSTREAM_DISTRO=debian:bullseye
DISTRO=debian-bullseye IMAGE=osmocom-build/ttcn3-ggsn-test
make: Entering directory
'<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/ws/ttcn3-ggsn-test'>
awk: fatal: cannot open file `.release' for reading: No such file or directory
awk: fatal: cannot open file `.release' for reading: No such file or directory
awk: fatal: cannot open file `.release' for reading: No such file or directory
rm -rf .common
cp -r <https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/ws/common>
.common
INFO: .release created
release=0.0.0
docker build \
--build-arg USER=osmocom-build \
--build-arg UID=1000 \
--build-arg
REGISTRY=registry.osmocom.org \
--build-arg OSMO_TTCN3_BRANCH=master \
--build-arg UPSTREAM_DISTRO=debian:bullseye \
--build-arg DISTRO=debian-bullseye \
--build-arg
OSMOCOM_REPO_MIRROR=https://downloads.osmocom.org \
--build-arg OSMOCOM_REPO_PATH=packages/osmocom: \
--build-arg OSMOCOM_REPO_VERSION=latest \
--build-arg
OSMOCOM_REPO_TESTSUITE_MIRROR=https://downloads.osmocom.org \
--build-arg LIBOSMOCORE_BRANCH=master \
--build-arg OSMO_BB_BRANCH=master \
--build-arg OSMO_BSC_BRANCH=master \
--build-arg OSMO_BTS_BRANCH=master \
--build-arg OSMO_CBC_BRANCH=master \
--build-arg OSMO_GBPROXY_BRANCH=master \
--build-arg OSMO_GGSN_BRANCH=master \
--build-arg OSMO_GSM_TESTER_BRANCH=master \
--build-arg OSMO_HLR_BRANCH=master \
--build-arg OSMO_HNBGW_BRANCH=master \
--build-arg OSMO_HNODEB_BRANCH=master \
--build-arg OSMO_IUH_BRANCH=master \
--build-arg OSMO_MGW_BRANCH=master \
--build-arg OSMO_MSC_BRANCH=master \
--build-arg OSMO_NITB_BRANCH=master \
--build-arg OSMO_PCU_BRANCH=master \
--build-arg OSMO_SGSN_BRANCH=master \
--build-arg OSMO_SIP_BRANCH=master \
--build-arg OSMO_STP_BRANCH=master \
--build-arg OSMO_UECUPS_BRANCH=master \
--build-arg OPEN5GS_BRANCH=main \
-t osmocom-build/ttcn3-ggsn-test:latest .
Sending build context to Docker daemon 82.94kB
Step 1/9 : ARG REGISTRY
Step 2/9 : ARG USER
Step 3/9 : FROM $REGISTRY/$USER/debian-bullseye-titan
---> c52b3a0afa2b
Step 4/9 : ARG OSMO_TTCN3_BRANCH="master"
---> Using cache
---> c97415d6789c
Step 5/9 :
ADD
https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_B…
/tmp/commit
---> Using cache
---> 9eadfbcc98b5
Step 6/9 : RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" ggsn_tests
---> Using cache
---> 79e6a863a572
Step 7/9 : VOLUME /data
---> Using cache
---> 6f3eaf610018
Step 8/9 : COPY GGSN_Tests.cfg /data/GGSN_Tests.cfg
---> Using cache
---> 0003d99458f2
Step 9/9 : CMD ttcn3-docker-run ggsn_tests GGSN_Tests
---> Using cache
---> 1ded3b2d7fb3
[Warning] One or more build-args [OSMO_HLR_BRANCH OSMO_SIP_BRANCH OPEN5GS_BRANCH
OSMO_BTS_BRANCH OSMO_BSC_BRANCH OSMOCOM_REPO_PATH OSMOCOM_REPO_VERSION OSMO_BB_BRANCH
OSMO_GSM_TESTER_BRANCH OSMO_SGSN_BRANCH LIBOSMOCORE_BRANCH OSMO_HNBGW_BRANCH
OSMO_IUH_BRANCH OSMO_MGW_BRANCH OSMO_MSC_BRANCH UID OSMOCOM_REPO_TESTSUITE_MIRROR
OSMO_NITB_BRANCH OSMO_UECUPS_BRANCH DISTRO OSMO_GBPROXY_BRANCH OSMO_GGSN_BRANCH
OSMO_PCU_BRANCH OSMO_CBC_BRANCH OSMO_HNODEB_BRANCH OSMO_STP_BRANCH UPSTREAM_DISTRO
OSMOCOM_REPO_MIRROR] were not consumed
Successfully built 1ded3b2d7fb3
Successfully tagged osmocom-build/ttcn3-ggsn-test:latest
rm -rf .common
make: Leaving directory
'<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/ws/ttcn3-ggsn-test'>
+ docker_image_exists ttcn3-ggsn-test
+ docker images -q osmocom-build/ttcn3-ggsn-test
+ test -n 1ded3b2d7fb3
+ list_osmo_packages debian-bullseye ttcn3-ggsn-test
+ local distro=debian-bullseye
+ local image=ttcn3-ggsn-test
+ local docker_run_sh=docker run --rm --entrypoint=/bin/sh osmocom-build/ttcn3-ggsn-test
-c
+ [ -n ]
+ return
+ set_clean_up_trap
+ trap clean_up_common EXIT INT TERM 0
+ set -e
+ mkdir
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester>
+ cp GGSN_Tests.cfg
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester/>
+ write_mp_osmo_repo
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester/GGSN_Tests.cfg>
+ local repo=nightly
+ local
config=<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/9…
+ local line
+ [ -e
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester/GGSN_Tests.cfg>
]
+ line=Misc_Helpers.mp_osmo_repo := "nightly"
+ sed -i s/\[MODULE_PARAMETERS\]/\[MODULE_PARAMETERS\]\nMisc_Helpers.mp_osmo_repo :=
"nightly"/g
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester/GGSN_Tests.cfg>
+ mkdir
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn>
+ network_create
+ docker network ls
+ grep -q ttcn3-ggsn-test
+ SUBNET=801493
+ seq 1 30
+ echo (801493 + 1) % 256
+ bc
+ SUBNET=214
+ SUB4=172.18.214.0/24
+ SUB6=fd02:db8:214::/64
+ set +x
Creating network ttcn3-ggsn-test, trying SUBNET=214...
+ docker network create --internal --subnet 172.18.214.0/24 --ipv6 --subnet
fd02:db8:214::/64 ttcn3-ggsn-test
e0ba3318c0f71add14c328fcedbef396e3df000656ff6d87231c6a005ee9f23e
+ set +x
### Network ttcn3-ggsn-test created (SUBNET=214) ###
+ return
+ GGSN_CMD=osmo-ggsn -c /data/osmo-ggsn.cfg
+ GGSN_DOCKER_ARGS=
+ [ 0 = 1 ]
+ cp osmo-ggsn.cfg
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn/>
+ network_replace_subnet_in_configs
+ set +x
Applying SUBNET=214 to:
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn/osmo-ggsn.cfg>
Applying SUBNET=214 to:
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester/GGSN_Tests.cfg>
+ docker_network_params 214 201
+ NET=214
+ ADDR_SUFIX=201
+ echo --network ttcn3-ggsn-test --ip 172.18.214.201 --ip6 fd02:db8:214::201
+ GGSN_DOCKER_ARGS=
--network ttcn3-ggsn-test --ip 172.18.214.201 --ip6 fd02:db8:214::201
+ OSMO_SUT_HOST=172.18.214.201
+ docker run --rm --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --sysctl
net.ipv6.conf.all.disable_ipv6=0 --ulimit core=-1 -v
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn>:/data
--name jenkins-TTCN3-centos-ggsn-test-971-ggsn -d --network ttcn3-ggsn-test --ip
172.18.214.201 --ip6 fd02:db8:214::201 osmocom-build/osmo-ggsn-master-centos8 /bin/sh -c
osmo-ggsn -c /data/osmo-ggsn.cfg >/data/osmo-ggsn.log 2>&1
53d25146235c3f850a766f6f3c55d2ac365476e5a0b74acdb116d0800fbf006c
+ kernel_test_wait_for_vm
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn/osmo-ggsn.log>
+ local
log=<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/…
+ local i
+ [ 0 != 1 ]
+ return
+ docker_network_params 214 202
+ NET=214
+ ADDR_SUFIX=202
+ echo --network ttcn3-ggsn-test --ip 172.18.214.202 --ip6 fd02:db8:214::202
+ docker run --rm --sysctl net.ipv6.conf.all.disable_ipv6=0 --network ttcn3-ggsn-test --ip
172.18.214.202 --ip6 fd02:db8:214::202 --ulimit core=-1 -v
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester>:/data
-e TTCN3_PCAP_PATH=/data -e OSMO_SUT_HOST=172.18.214.201 -e OSMO_SUT_PORT=4260 --name
jenkins-TTCN3-centos-ggsn-test-971-ggsn-test osmocom-build/ttcn3-ggsn-test
+ SUBDIR=ggsn_tests
+ SUITE=GGSN_Tests
+ '[' -n '' ']'
+ cd /data
+ /osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/ggsn_tests/GGSN_Tests
ttcn3_start: Starting the test suite
ttcn3_start: warning: TTCN3_DIR environment variable is not set
spawn mctr_cli GGSN_Tests.cfg
*************************************************************************
* TTCN-3 Test Executor - Main Controller 2 *
* Version: 8.0.0 *
* Copyright (c) 2000-2021 Ericsson Telecom AB *
* All rights reserved. This program and the accompanying materials *
* are made available under the terms of the Eclipse Public License v2.0 *
* which accompanies this distribution, and is available at *
*
https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html *
*************************************************************************
Using configuration file: GGSN_Tests.cfg
MC@80664ae6d54f: Unix server socket created successfully.
MC@80664ae6d54f: Listening on TCP port 41803.
MC2> 80664ae6d54f is the default
spawn /osmo-ttcn3-hacks/ggsn_tests/GGSN_Tests 80664ae6d54f 41803
TTCN-3 Host Controller (parallel mode), version 8.0.0
MC@80664ae6d54f: New HC connected from 80664ae6d54f [172.18.214.202]. 80664ae6d54f: Linux
5.10.0-20-amd64 on x86_64.
cmtc
MC@80664ae6d54f: Downloading configuration file to all HCs.
construct junitlogger
Initializing `JUnitLogger' (v2.0): JUnitLogger writes JUnit-compatible XML
MC@80664ae6d54f: Configuration file was processed on all HCs.
MC@80664ae6d54f: Creating MTC on host 80664ae6d54f.
MC@80664ae6d54f: MTC is created.
MC2> smtc
Executing all items of [EXECUTE] section.
MC2> MTC@80664ae6d54f: Starting external command `../ttcn3-tcpdump-start.sh
GGSN_Tests.TC_pdp4_act_deact'.
------ GGSN_Tests.TC_pdp4_act_deact ------
Tue Jan 17 04:00:37 UTC 2023
NOTE: unable to use dumpcap due to missing capabilities or suid bit
Waiting for packet dumper to start... 0
MTC@80664ae6d54f: External command `../ttcn3-tcpdump-start.sh
GGSN_Tests.TC_pdp4_act_deact' was executed successfully (exit status: 0).
MTC@80664ae6d54f: Test case TC_pdp4_act_deact started.
MTC@80664ae6d54f: GTP1C ConnectionID: 1
MTC@80664ae6d54f: sending CreatePDP
MTC@80664ae6d54f: setverdict(pass): none -> pass
MTC@80664ae6d54f: setverdict(pass): pass -> pass, component reason not changed
MTC@80664ae6d54f: setverdict(pass): pass -> pass, component reason not changed
MTC@80664ae6d54f: Setting final verdict of the test case.
MTC@80664ae6d54f: Local verdict of MTC: pass
MTC@80664ae6d54f: No PTCs were created.
MTC@80664ae6d54f: Test case TC_pdp4_act_deact finished. Verdict: pass
MTC@80664ae6d54f: Starting external command `../ttcn3-tcpdump-stop.sh
GGSN_Tests.TC_pdp4_act_deact pass'.
Tue Jan 17 04:00:53 UTC 2023
[1;32m====== GGSN_Tests.TC_pdp4_act_deact pass ======[0m
Saving talloc report from 172.18.214.201:4260 to GGSN_Tests.TC_pdp4_act_deact.talloc
Waiting for packet dumper to finish... 0 (prev_count=-1, count=22821)
Waiting for packet dumper to finish... 1 (prev_count=22821, count=27017)
MTC@80664ae6d54f: External command `../ttcn3-tcpdump-stop.sh GGSN_Tests.TC_pdp4_act_deact
pass' was executed successfully (exit status: 0).
MTC@80664ae6d54f: Starting external command `../ttcn3-tcpdump-start.sh
GGSN_Tests.TC_pdp4_act_deact_ipcp'.
------ GGSN_Tests.TC_pdp4_act_deact_ipcp ------
Tue Jan 17 04:00:55 UTC 2023
NOTE: unable to use dumpcap due to missing capabilities or suid bit
Waiting for packet dumper to start... 0
+ clean_up_common
+ set +e
+ set +x
### Clean up ###
+ trap - EXIT INT TERM 0
+ type clean_up
+ network_clean
+ docker network inspect ttcn3-ggsn-test
+ grep Name
+ cut -d : -f2
+ awk -F" NR>1{print $2}
+ xargs -rn1 docker kill
Error: No such network: ttcn3-ggsn-test
+ network_remove
+ set +x
Removing network ttcn3-ggsn-test
+ docker network remove ttcn3-ggsn-test
Error: No such network: ttcn3-ggsn-test
+ rm -rf
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/unix>
+ fix_perms
+ set +x
Fixing permissions
+ docker run --rm -v
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/ws/logs>:/data -v
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/ws/_cache>:/cache
--name jenkins-TTCN3-centos-ggsn-test-971-cleaner debian:bullseye chmod -R a+rX /data/
/cache/
+ collect_logs
+ cat
<https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-ggsn-test/971/artifact/logs/ggsn-tester/junit-xml-21.log>
Build step 'Execute shell' marked build as failure
Recording test results
[Checks API] No suitable checks publisher found.