Changes:
[Oliver Smith] ttcn3-*/jenkins*.sh: use $SUBNET everywhere
[Oliver Smith] network_create: find free subnet automatically
------------------------------------------ [...truncated 15.07 KB...] + local distro_arg + local depends + local dir + [ registry.osmocom.org = registry.osmocom.org ] + docker pull registry.osmocom.org/osmocom-build/debian-bullseye-titan Using default tag: latest latest: Pulling from osmocom-build/debian-bullseye-titan Digest: sha256:33c02949d71e8f89cbe9ab1eed644c821e98199744d8b90820c9b324dff3d6d6 Status: Image is up to date for registry.osmocom.org/osmocom-build/debian-bullseye-titan:latest registry.osmocom.org/osmocom-build/debian-bullseye-titan:latest + continue + docker_distro_from_image_name ttcn3-pcu-test + echo debian-bullseye + distro_arg=debian-bullseye + [ -z ] + docker_upstream_distro_from_image_name ttcn3-pcu-test + echo debian:bullseye + upstream_distro_arg=debian:bullseye + docker_dir_from_image_name ttcn3-pcu-test + echo ttcn3-pcu-test + dir=ttcn3-pcu-test + pull_arg=--pull + grep ^FROM ../ttcn3-pcu-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-pcu-test (export NO_DOCKER_IMAGE_BUILD=1 to prevent this) + make -C ../ttcn3-pcu-test BUILD_ARGS= UPSTREAM_DISTRO=debian:bullseye DISTRO=debian-bullseye IMAGE=osmocom-build/ttcn3-pcu-test make: Entering directory 'https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/ws/ttcn3-pcu-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-pcu-test-sns-latest/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-pcu-test:latest . Sending build context to Docker daemon 34.82kB 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 ---> 1b7dc1b2b28d Step 5/9 : ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit
---> Using cache ---> 25938111891d Step 6/9 : RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" pcu ---> Using cache ---> abb8bdc8ead2 Step 7/9 : VOLUME /data ---> Using cache ---> 530ed21012f6 Step 8/9 : COPY PCU_Tests.cfg /data/PCU_Tests.cfg ---> Using cache ---> 9d8272e48238 Step 9/9 : CMD ttcn3-docker-run pcu PCU_Tests ---> Using cache ---> 23825082ba8c [Warning] One or more build-args [OSMO_GGSN_BRANCH OSMO_HLR_BRANCH OSMO_PCU_BRANCH OSMO_SGSN_BRANCH OSMOCOM_REPO_MIRROR OSMOCOM_REPO_PATH OSMO_MGW_BRANCH OSMO_MSC_BRANCH UID OSMO_NITB_BRANCH UPSTREAM_DISTRO OSMO_BSC_BRANCH OSMO_BTS_BRANCH OSMO_GBPROXY_BRANCH OSMO_GSM_TESTER_BRANCH OSMO_SIP_BRANCH OSMOCOM_REPO_TESTSUITE_MIRROR OSMOCOM_REPO_VERSION OSMO_BB_BRANCH OSMO_UECUPS_BRANCH DISTRO OSMO_HNODEB_BRANCH OSMO_STP_BRANCH OSMO_IUH_BRANCH LIBOSMOCORE_BRANCH OPEN5GS_BRANCH OSMO_CBC_BRANCH OSMO_HNBGW_BRANCH] were not consumed Successfully built 23825082ba8c Successfully tagged osmocom-build/ttcn3-pcu-test:latest rm -rf .common make: Leaving directory 'https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/ws/ttcn3-pcu-test' + docker_image_exists ttcn3-pcu-test + docker images -q osmocom-build/ttcn3-pcu-test + test -n 23825082ba8c + list_osmo_packages debian-bullseye ttcn3-pcu-test + local distro=debian-bullseye + local image=ttcn3-pcu-test + local docker_run_sh=docker run --rm --entrypoint=/bin/sh osmocom-build/ttcn3-pcu-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-pcu-test-sns-latest/682/artifact/logs/pcu-tester + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/unix + cp sns/PCU_Tests.cfg https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/ + write_mp_osmo_repo https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/PCU_Tests.cfg + local repo=nightly + local config=https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/PCU_Tests.cfg + local line + [ -e https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/PCU_Tests.cfg ] + repo=latest + line=Misc_Helpers.mp_osmo_repo := "latest" + sed -i s/[MODULE_PARAMETERS]/[MODULE_PARAMETERS]\nMisc_Helpers.mp_osmo_repo := "latest"/g https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/PCU_Tests.cfg + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu/unix + cp sns/osmo-pcu.cfg https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu/ + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/unix + network_create + docker network ls + grep -q ttcn3-pcu-test-sns + SUBNET=2114740 + seq 1 30 + echo (2114740 + 1) % 256 + bc + SUBNET=181 + SUB4=172.18.181.0/24 + SUB6=fd02:db8:181::/64 + set +x Creating network ttcn3-pcu-test-sns, trying SUBNET=181... + docker network create --internal --subnet 172.18.181.0/24 --ipv6 --subnet fd02:db8:181::/64 ttcn3-pcu-test-sns 8d427dec36682d6862310b8a2b95a576554733565a225bcb22df8649064820ca + set +x
### Network ttcn3-pcu-test-sns created (SUBNET=181) ###
+ return + network_replace_subnet_in_configs + set +x Applying SUBNET=181 to: https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu/osmo-pcu.cfg Applying SUBNET=181 to: https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/PCU_Tests.cfg + echo Starting container with PCU Starting container with PCU + docker_network_params 181 101 + NET=181 + ADDR_SUFIX=101 + echo --network ttcn3-pcu-test-sns --ip 172.18.181.101 --ip6 fd02:db8:181::101 + docker run --rm --network ttcn3-pcu-test-sns --ip 172.18.181.101 --ip6 fd02:db8:181::101 --ulimit core=-1 -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu:/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/unix:/data/unix --name jenkins-TTCN3-centos-pcu-test-sns-latest-682-pcu-sns -d osmocom-build/osmo-pcu-latest-centos8 /bin/sh -c /usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.181.10 >>/data/osmo-pcu.log 2>&1 cc03c351ddaf073b2b4921c21e499024c738409e030559f03ecc9cbdadba5800 + echo Starting container with PCU testsuite Starting container with PCU testsuite + docker_network_params 181 10 + NET=181 + ADDR_SUFIX=10 + echo --network ttcn3-pcu-test-sns --ip 172.18.181.10 --ip6 fd02:db8:181::10 + docker run --rm --network ttcn3-pcu-test-sns --ip 172.18.181.10 --ip6 fd02:db8:181::10 --ulimit core=-1 -e TTCN3_PCAP_PATH=/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester:/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/unix:/data/unix --name jenkins-TTCN3-centos-pcu-test-sns-latest-682-ttcn3-pcu-test-sns osmocom-build/ttcn3-pcu-test + SUBDIR=pcu + SUITE=PCU_Tests + '[' -n '' ']' + cd /data + /osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/pcu/PCU_Tests ttcn3_start: Starting the test suite ttcn3_start: warning: TTCN3_DIR environment variable is not set spawn mctr_cli PCU_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: PCU_Tests.cfg MC@f69e7f2efd69: Unix server socket created successfully. MC@f69e7f2efd69: Listening on TCP port 45529. f69e7f2efd69 is the default MC2> spawn /osmo-ttcn3-hacks/pcu/PCU_Tests f69e7f2efd69 45529 TTCN-3 Host Controller (parallel mode), version 8.0.0 MC@f69e7f2efd69: New HC connected from f69e7f2efd69 [172.18.181.10]. f69e7f2efd69: Linux 5.10.0-14-amd64 on x86_64. cmtc MC@f69e7f2efd69: Downloading configuration file to all HCs. construct junitlogger Initializing `JUnitLogger' (v2.0): JUnitLogger writes JUnit-compatible XML HC@f69e7f2efd69: Warning: Option `SourceInfoFormat' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `SourceInfoFormat' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `LoggerPlugins' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `BeginTestCase' was given more than once in section [EXTERNAL_COMMANDS] of the configuration file. HC@f69e7f2efd69: Warning: Option `EndTestCase' was given more than once in section [EXTERNAL_COMMANDS] of the configuration file. HC@f69e7f2efd69: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@f69e7f2efd69: Warning: A plug-in from the same path `libjunitlogger2' is already active, skipping plug-in MC@f69e7f2efd69: Configuration file was processed on all HCs. MC@f69e7f2efd69: Creating MTC on host f69e7f2efd69. MC@f69e7f2efd69: MTC is created. MC2> smtc Executing all items of [EXECUTE] section. MC2> MTC@f69e7f2efd69: Starting external command `../ttcn3-tcpdump-start.sh PCU_Tests_SNS.TC_sns_po_size_success'. ------ PCU_Tests_SNS.TC_sns_po_size_success ------ Tue Jan 17 05:15:07 UTC 2023 NOTE: unable to use dumpcap due to missing capabilities or suid bit Waiting for packet dumper to start... 0 MTC@f69e7f2efd69: External command `../ttcn3-tcpdump-start.sh PCU_Tests_SNS.TC_sns_po_size_success' was executed successfully (exit status: 0). MTC@f69e7f2efd69: Test case TC_sns_po_size_success started. MTC@f69e7f2efd69: Start timer g_T_guard: 60 s MTC@f69e7f2efd69: Start timer T: 5 s + clean_up_common + set +e + set +x
### Clean up ###
+ trap - EXIT INT TERM 0 + type clean_up + network_clean + docker network inspect ttcn3-pcu-test-sns + grep Name + cut -d : -f2 + awk -F" NR>1{print $2} + xargs -rn1 docker kill + network_remove + set +x Removing network ttcn3-pcu-test-sns + docker network remove ttcn3-pcu-test-sns Error: No such network: ttcn3-pcu-test-sns + rm -rf https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/unix + fix_perms + set +x Fixing permissions + docker run --rm -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/ws/logs:/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/ws/_cache:/cache --name jenkins-TTCN3-centos-pcu-test-sns-latest-682-cleaner debian:bullseye chmod -R a+rX /data/ /cache/ + collect_logs + cat https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns-latest/682/artifact/logs/pcu-tester/junit-xml-21.log Build step 'Execute shell' marked build as failure Recording test results [Checks API] No suitable checks publisher found.
jenkins-notifications@lists.osmocom.org