See https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/display/redirect?page=changes
Changes:
[Oliver Smith] ttcn3-*/jenkins*.sh: use $SUBNET everywhere
[Oliver Smith] network_create: find free subnet automatically
------------------------------------------ [...truncated 17.02 KB...] + 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/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/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 ---> 7fd781eb90de Step 5/9 : ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit
---> Using cache ---> 00095faa6a88 Step 6/9 : RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" pcu ---> Using cache ---> c0743dc759cc Step 7/9 : VOLUME /data ---> Using cache ---> 108c9c58179d Step 8/9 : COPY PCU_Tests.cfg /data/PCU_Tests.cfg ---> Using cache ---> 544a51b7626c Step 9/9 : CMD ttcn3-docker-run pcu PCU_Tests ---> Using cache ---> e8bc26a3cc10 [Warning] One or more build-args [UPSTREAM_DISTRO OSMO_BSC_BRANCH OSMO_MGW_BRANCH OSMO_PCU_BRANCH OSMO_UECUPS_BRANCH UID OSMO_GGSN_BRANCH OSMO_IUH_BRANCH OSMO_NITB_BRANCH OSMO_SIP_BRANCH LIBOSMOCORE_BRANCH OSMO_HNODEB_BRANCH OSMO_SGSN_BRANCH OSMO_HNBGW_BRANCH OSMO_STP_BRANCH OPEN5GS_BRANCH OSMOCOM_REPO_MIRROR OSMOCOM_REPO_PATH OSMO_CBC_BRANCH DISTRO OSMOCOM_REPO_VERSION OSMO_GSM_TESTER_BRANCH OSMO_BB_BRANCH OSMO_GBPROXY_BRANCH OSMOCOM_REPO_TESTSUITE_MIRROR OSMO_BTS_BRANCH OSMO_HLR_BRANCH OSMO_MSC_BRANCH] were not consumed Successfully built e8bc26a3cc10 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/ws/ttcn3-pcu-test' + docker_image_exists ttcn3-pcu-test + docker images -q osmocom-build/ttcn3-pcu-test + test -n e8bc26a3cc10 + 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/978/artifact/logs/pcu-tester + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester/unix + cp sns/PCU_Tests.cfg https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester/ + write_mp_osmo_repo https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester/PCU_Tests.cfg + local repo=nightly + local config=https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester/PCU_Tests.cfg + local line + [ -e https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester/PCU_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-pcu-test-sns/978/artifact/logs/pcu-tester/PCU_Tests.cfg + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu/unix + cp sns/osmo-pcu.cfg https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu/ + mkdir https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/unix + network_create + docker network ls + grep -q ttcn3-pcu-test-sns + SUBNET=2626550 + seq 1 30 + echo (2626550 + 1) % 256 + bc + SUBNET=247 + SUB4=172.18.247.0/24 + SUB6=fd02:db8:247::/64 + set +x Creating network ttcn3-pcu-test-sns, trying SUBNET=247... + docker network create --internal --subnet 172.18.247.0/24 --ipv6 --subnet fd02:db8:247::/64 ttcn3-pcu-test-sns d676d8d7d14acdd61ce58c58e34a763701a90fb9e04b3785cb4e340a92b0c7ab + set +x
### Network ttcn3-pcu-test-sns created (SUBNET=247) ###
+ return + network_replace_subnet_in_configs + set +x Applying SUBNET=247 to: https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu/osmo-pcu.cfg Applying SUBNET=247 to: https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester/PCU_Tests.cfg + echo Starting container with PCU Starting container with PCU + docker_network_params 247 101 + NET=247 + ADDR_SUFIX=101 + echo --network ttcn3-pcu-test-sns --ip 172.18.247.101 --ip6 fd02:db8:247::101 + docker run --rm --network ttcn3-pcu-test-sns --ip 172.18.247.101 --ip6 fd02:db8:247::101 --ulimit core=-1 -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu:/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/unix:/data/unix --name jenkins-TTCN3-centos-pcu-test-sns-978-pcu-sns -d osmocom-build/osmo-pcu-master-centos8 /bin/sh -c /usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.247.10 >>/data/osmo-pcu.log 2>&1 529085e925cdd186eb1c744a7856e71cad2a19d7a87b41ef5fef43ed86ee6743 + echo Starting container with PCU testsuite Starting container with PCU testsuite + docker_network_params 247 10 + NET=247 + ADDR_SUFIX=10 + echo --network ttcn3-pcu-test-sns --ip 172.18.247.10 --ip6 fd02:db8:247::10 + docker run --rm --network ttcn3-pcu-test-sns --ip 172.18.247.10 --ip6 fd02:db8:247::10 --ulimit core=-1 -e TTCN3_PCAP_PATH=/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/pcu-tester:/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/unix:/data/unix --name jenkins-TTCN3-centos-pcu-test-sns-978-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@17a1f07e5819: Unix server socket created successfully. MC@17a1f07e5819: Listening on TCP port 46065. 17a1f07e5819 is the default MC2> spawn /osmo-ttcn3-hacks/pcu/PCU_Tests 17a1f07e5819 46065 TTCN-3 Host Controller (parallel mode), version 8.0.0 MC@17a1f07e5819: New HC connected from 17a1f07e5819 [172.18.247.10]. 17a1f07e5819: Linux 5.10.0-19-amd64 on x86_64. cmtc MC@17a1f07e5819: Downloading configuration file to all HCs. construct junitlogger Initializing `JUnitLogger' (v2.0): JUnitLogger writes JUnit-compatible XML HC@17a1f07e5819: Warning: Option `SourceInfoFormat' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `SourceInfoFormat' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `LoggerPlugins' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `BeginTestCase' was given more than once in section [EXTERNAL_COMMANDS] of the configuration file. HC@17a1f07e5819: Warning: Option `EndTestCase' was given more than once in section [EXTERNAL_COMMANDS] of the configuration file. HC@17a1f07e5819: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: Option `ConsoleMask' was given more than once in section [LOGGING] of the configuration file. HC@17a1f07e5819: Warning: A plug-in from the same path `libjunitlogger2' is already active, skipping plug-in MC@17a1f07e5819: Configuration file was processed on all HCs. MC@17a1f07e5819: Creating MTC on host 17a1f07e5819. MC@17a1f07e5819: MTC is created. MC2> smtc Executing all items of [EXECUTE] section. MC2> MTC@17a1f07e5819: 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:04 UTC 2023 NOTE: unable to use dumpcap due to missing capabilities or suid bit Waiting for packet dumper to start... 0 MTC@17a1f07e5819: External command `../ttcn3-tcpdump-start.sh PCU_Tests_SNS.TC_sns_po_size_success' was executed successfully (exit status: 0). MTC@17a1f07e5819: Test case TC_sns_po_size_success started. MTC@17a1f07e5819: Start timer g_T_guard: 60 s MTC@17a1f07e5819: Start timer T: 5 s MTC@17a1f07e5819: f_incoming_sns_size(idx=0) MTC@17a1f07e5819: f_ns_exp() expecting { pDU_SNS_Size := { nsPduType := '12'O, nSEI_NS := { iEI := '04'O, ext := '1'B, lengthIndicator := { length1 := 2 }, nSEI := '04D2'O }, resetFlag := { iEI := '0A'O ("\n"), resetBIT := '1'B, spare := '0000000'B }, maxNumberOfNSVCs := { iEI := '07'O ("\a"), maxNumberOfNSVCs := ? }, numberOfIP4_Endpoints := ?, numberOfIP6_Endpoints := omit } } MTC@17a1f07e5819: Start timer T: 1 s MTC@17a1f07e5819: Test case TC_sns_po_size_success finished. Verdict: pass MTC@17a1f07e5819: Starting external command `../ttcn3-tcpdump-stop.sh PCU_Tests_SNS.TC_sns_po_size_success pass'. Tue Jan 17 05:15:10 UTC 2023 [1;32m====== PCU_Tests_SNS.TC_sns_po_size_success pass ======[0m
Waiting for packet dumper to finish... 0 (prev_count=-1, count=22066) Waiting for packet dumper to finish... 1 (prev_count=22066, count=27499) MTC@17a1f07e5819: External command `../ttcn3-tcpdump-stop.sh PCU_Tests_SNS.TC_sns_po_size_success pass' was executed successfully (exit status: 0). MTC@17a1f07e5819: Starting external command `../ttcn3-tcpdump-start.sh PCU_Tests_SNS.TC_sns_po_size_nack'. ------ PCU_Tests_SNS.TC_sns_po_size_nack ------ Tue Jan 17 05:15:12 UTC 2023 NOTE: unable to use dumpcap due to missing capabilities or suid bit Waiting for packet dumper to start... 0 MTC@17a1f07e5819: External command `../ttcn3-tcpdump-start.sh PCU_Tests_SNS.TC_sns_po_size_nack' was executed successfully (exit status: 0). MTC@17a1f07e5819: Test case TC_sns_po_size_nack started. MTC@17a1f07e5819: Start timer g_T_guard: 60 s MTC@17a1f07e5819: Start timer T: 5 s MTC@17a1f07e5819: f_incoming_sns_size(idx=0) MTC@17a1f07e5819: f_ns_exp() expecting { pDU_SNS_Size := { nsPduType := '12'O, nSEI_NS := { iEI := '04'O, ext := '1'B, lengthIndicator := { length1 := 2 }, nSEI := '04D2'O }, resetFlag := { iEI := '0A'O ("\n"), resetBIT := '1'B, spare := '0000000'B }, maxNumberOfNSVCs := { iEI := '07'O ("\a"), maxNumberOfNSVCs := ? }, numberOfIP4_Endpoints := ?, numberOfIP6_Endpoints := omit } } MTC@17a1f07e5819: Start timer T: 10 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 jenkins-TTCN3-centos-pcu-test-sns-978-pcu-sns + network_remove + set +x Removing network ttcn3-pcu-test-sns + docker network remove ttcn3-pcu-test-sns ttcn3-pcu-test-sns + rm -rf https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/artifact/logs/unix + fix_perms + set +x Fixing permissions + docker run --rm -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/ws/logs:/data -v https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/ws/_cache:/cache --name jenkins-TTCN3-centos-pcu-test-sns-978-cleaner debian:bullseye chmod -R a+rX /data/ /cache/ + collect_logs + cat https://jenkins.osmocom.org/jenkins/job/TTCN3-centos-pcu-test-sns/978/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