Changes:
[Oliver Smith] network_create: find free subnet automatically
------------------------------------------ [...truncated 31.78 KB...] + trap clean_up_common EXIT INT TERM 0 + set -e + NET_NAME=ttcn3-bsc_sccplite-test + mkdir https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester + cp sccplite/BSC_Tests.cfg https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester/ + write_mp_osmo_repo https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester/BSC_Tests.cfg + local repo=nightly + local config=https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester/BSC_Tests.cfg + local line + [ -e https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester/BSC_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-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester/BSC_Tests.cfg + mkdir https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc + cp sccplite/osmo-bsc.cfg https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc/ + mkdir https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bts-omldummy + network_create + docker network ls + grep -q ttcn3-bsc_sccplite-test + SUBNET=3702093 + seq 1 30 + echo (3702093 + 1) % 256 + bc + SUBNET=78 + SUB4=172.18.78.0/24 + SUB6=fd02:db8:78::/64 + set +x Creating network ttcn3-bsc_sccplite-test, trying SUBNET=78... + docker network create --internal --subnet 172.18.78.0/24 --ipv6 --subnet fd02:db8:78::/64 ttcn3-bsc_sccplite-test 468ead4f7a06308bce0d6e1b7f62f1e32e01791b9c8895b7d27146fb043c8b41 + set +x
### Network ttcn3-bsc_sccplite-test created (SUBNET=78) ###
+ return + network_replace_subnet_in_configs + set +x Applying SUBNET=78 to: https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester/BSC_Tests.cfg Applying SUBNET=78 to: https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc/osmo-bsc.cfg + echo Starting container with BSC Starting container with BSC + docker_network_params 78 20 + NET=78 + ADDR_SUFIX=20 + echo --network ttcn3-bsc_sccplite-test --ip 172.18.78.20 --ip6 fd02:db8:78::20 + docker run --rm --network ttcn3-bsc_sccplite-test --ip 172.18.78.20 --ip6 fd02:db8:78::20 --ulimit core=-1 -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc:/data --name jenkins-ttcn3-bsc-test-sccplite-latest-1462-bsc -d osmocom-build/osmo-bsc-latest d5af40e5f6b9f5dde596d1406a463de032ab5ecb766c11deda115d0448656259 + BTS_FEATURES=-fCCN,EGPRS,GPRS,IPv6_NSVC,PAGING_COORDINATION + image_suffix_is_master + return 1 + set -- 0 1 + echo Starting container with OML for BTS0 (TRXN = 1) Starting container with OML for BTS0 (TRXN = 1) + docker_network_params 78 100 + NET=78 + ADDR_SUFIX=100 + echo --network ttcn3-bsc_sccplite-test --ip 172.18.78.100 --ip6 fd02:db8:78::100 + docker run --rm --network ttcn3-bsc_sccplite-test --ip 172.18.78.100 --ip6 fd02:db8:78::100 --ulimit core=-1 -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bts-omldummy:/data --name jenkins-ttcn3-bsc-test-sccplite-latest-1462-bts0 -d osmocom-build/osmo-bts-latest /bin/sh -c /usr/local/bin/respawn.sh osmo-bts-omldummy -fCCN,EGPRS,GPRS,IPv6_NSVC,PAGING_COORDINATION 172.18.78.20 1234 1 >>/data/osmo-bts-omldummy-0.log 2>&1 2128b3195248206c62b8a7f115cf8d27d803673c2736963b3a3b60ad931701ce + set -- 1 1 + echo Starting container with OML for BTS1 (TRXN = 1) Starting container with OML for BTS1 (TRXN = 1) + docker_network_params 78 101 + NET=78 + ADDR_SUFIX=101 + echo --network ttcn3-bsc_sccplite-test --ip 172.18.78.101 --ip6 fd02:db8:78::101 + docker run --rm --network ttcn3-bsc_sccplite-test --ip 172.18.78.101 --ip6 fd02:db8:78::101 --ulimit core=-1 -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bts-omldummy:/data --name jenkins-ttcn3-bsc-test-sccplite-latest-1462-bts1 -d osmocom-build/osmo-bts-latest /bin/sh -c /usr/local/bin/respawn.sh osmo-bts-omldummy -fCCN,EGPRS,GPRS,IPv6_NSVC,PAGING_COORDINATION 172.18.78.20 1235 1 >>/data/osmo-bts-omldummy-1.log 2>&1 5cbb9036150eefc2f439e2624a93f4c6a8ab8962f431dab231aa335bbcef1bd2 + set -- 2 4 + echo Starting container with OML for BTS2 (TRXN = 4) Starting container with OML for BTS2 (TRXN = 4) + docker_network_params 78 102 + NET=78 + ADDR_SUFIX=102 + echo --network ttcn3-bsc_sccplite-test --ip 172.18.78.102 --ip6 fd02:db8:78::102 + docker run --rm --network ttcn3-bsc_sccplite-test --ip 172.18.78.102 --ip6 fd02:db8:78::102 --ulimit core=-1 -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bts-omldummy:/data --name jenkins-ttcn3-bsc-test-sccplite-latest-1462-bts2 -d osmocom-build/osmo-bts-latest /bin/sh -c /usr/local/bin/respawn.sh osmo-bts-omldummy -fCCN,EGPRS,GPRS,IPv6_NSVC,PAGING_COORDINATION 172.18.78.20 1236 4 >>/data/osmo-bts-omldummy-2.log 2>&1 0acdaaf60d83923981a87a97ea2bd1d3c7f6a54aab2a0211ae04ffb77e0da0d2 + echo Starting container with BSC testsuite Starting container with BSC testsuite + docker_network_params 78 203 + NET=78 + ADDR_SUFIX=203 + echo --network ttcn3-bsc_sccplite-test --ip 172.18.78.203 --ip6 fd02:db8:78::203 + docker run --rm --network ttcn3-bsc_sccplite-test --ip 172.18.78.203 --ip6 fd02:db8:78::203 --ulimit core=-1 -e TTCN3_PCAP_PATH=/data -e OSMO_SUT_HOST=172.18.78.20 -e OSMO_SUT_PORT=4242 -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-tester:/data --name jenkins-ttcn3-bsc-test-sccplite-latest-1462-ttcn3-bsc-test osmocom-build/ttcn3-bsc-test + SUBDIR=bsc + SUITE=BSC_Tests + '[' -n '' ']' + cd /data + /osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/bsc/BSC_Tests ttcn3_start: Starting the test suite ttcn3_start: warning: TTCN3_DIR environment variable is not set spawn mctr_cli BSC_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: BSC_Tests.cfg MC@781cb0959002: Unix server socket created successfully. MC@781cb0959002: Listening on TCP port 34793. 781cb0959002 is the default MC2> spawn /osmo-ttcn3-hacks/bsc/BSC_Tests 781cb0959002 34793 TTCN-3 Host Controller (parallel mode), version 8.0.0 MC@781cb0959002: New HC connected from 781cb0959002 [172.18.78.203]. 781cb0959002: Linux 5.10.0-14-amd64 on x86_64. cmtc MC@781cb0959002: Downloading configuration file to all HCs. construct junitlogger Initializing `JUnitLogger' (v2.0): JUnitLogger writes JUnit-compatible XML HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. HC@781cb0959002: Warning: Option `FileMask' was given more than once in section [LOGGING] of the configuration file. MC@781cb0959002: Configuration file was processed on all HCs. MC@781cb0959002: Creating MTC on host 781cb0959002. MC@781cb0959002: MTC is created. MC2> smtc Executing all items of [EXECUTE] section. MC2> MTC@781cb0959002: Starting external command `../ttcn3-tcpdump-start.sh BSC_Tests.TC_ctrl_msc_connection_status'. ------ BSC_Tests.TC_ctrl_msc_connection_status ------ Tue Jan 17 08:30:12 UTC 2023 NOTE: unable to use dumpcap due to missing capabilities or suid bit Waiting for packet dumper to start... 0 MTC@781cb0959002: External command `../ttcn3-tcpdump-start.sh BSC_Tests.TC_ctrl_msc_connection_status' was executed successfully (exit status: 0). MTC@781cb0959002: Test case TC_ctrl_msc_connection_status started. VirtMSC-IPA(5)@781cb0959002: Established a new IPA connection (conn_id=2) VirtMSC-IPA(5)@781cb0959002: CCM Tx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } VirtMSC-IPA(5)@781cb0959002: CCM Rx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } VirtMSC-IPA-WAIT(6)@781cb0959002: setverdict(pass): none -> pass VirtMSC-IPA-WAIT(6)@781cb0959002: Final verdict of PTC: pass VirtMSC-SCCP(4)@781cb0959002: v_sccp_pdu_maxlen:268 MTC@781cb0959002: BSSMAP: Received RESET-ACK in response to RESET, we're ready to go! MTC@781cb0959002: msc 1 is not configured, skipping MTC@781cb0959002: msc 2 is not configured, skipping IPA-BTS0-TRX0-RSL-IPA(9)@781cb0959002: CCM Tx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } IPA-BTS0-TRX0-RSL-IPA(9)@781cb0959002: CCM Rx:{ msg_type := IPAC_MSGT_ID_GET (4), u := { get := { { len := 1, tag := IPAC_IDTAG_UNITID (8) }, { len := 1, tag := IPAC_IDTAG_MACADDR (7) }, { len := 1, tag := IPAC_IDTAG_LOCATION1 (2) }, { len := 1, tag := IPAC_IDTAG_LOCATION2 (3) }, { len := 1, tag := IPAC_IDTAG_EQUIPVERS (4) }, { len := 1, tag := IPAC_IDTAG_SWVERSION (5) }, { len := 1, tag := IPAC_IDTAG_UNITNAME (1) }, { len := 1, tag := IPAC_IDTAG_SERNR (0) } } } } IPA-BTS0-TRX0-RSL-IPA(9)@781cb0959002: CCM Tx:{ msg_type := IPAC_MSGT_ID_RESP (5), u := { resp := { { len := 0, tag := IPAC_IDTAG_UNITID (8), data := '313233342F302F3000'O }, { len := 0, tag := IPAC_IDTAG_MACADDR (7), data := '00'O }, { len := 0, tag := IPAC_IDTAG_LOCATION1 (2), data := '00'O }, { len := 0, tag := IPAC_IDTAG_LOCATION2 (3), data := '00'O }, { len := 0, tag := IPAC_IDTAG_EQUIPVERS (4), data := '00'O }, { len := 0, tag := IPAC_IDTAG_SWVERSION (5), data := '00'O }, { len := 0, tag := IPAC_IDTAG_UNITNAME (1), data := '4F736D6F636F6D205454434E2D33204254532053696D756C61746F7200'O }, { len := 0, tag := IPAC_IDTAG_SERNR (0), data := '00'O } } } } IPA-BTS0-TRX0-RSL-IPA(9)@781cb0959002: CCM Rx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } MTC@781cb0959002: "TC_ctrl_msc_connection_status() start" MTC@781cb0959002: talloc reports "struct bsc_subscr" x 0, expecting 0 MTC@781cb0959002: talloc reports "struct gsm_subscriber_connection" x 0, expecting 0 VirtMSC-STATS(3)@781cb0959002: Final verdict of PTC: none VirtMSC-SCCP(4)@781cb0959002: Final verdict of PTC: none IPA-CTRL-CLI-IPA(7)@781cb0959002: Final verdict of PTC: none VirtMSC-IPA(5)@781cb0959002: Final verdict of PTC: none MTC@781cb0959002: setverdict(pass): none -> pass IPA-BTS0-TRX0-RSL-IPA(9)@781cb0959002: Final verdict of PTC: none VirtMGW-MGCP-0(8)@781cb0959002: Final verdict of PTC: none MTC@781cb0959002: Setting final verdict of the test case. MTC@781cb0959002: Local verdict of MTC: pass MTC@781cb0959002: Local verdict of PTC VirtMSC-STATS(3): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMSC-SCCP(4): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMSC-IPA(5): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMSC-IPA-WAIT(6): pass (pass -> pass) MTC@781cb0959002: Local verdict of PTC IPA-CTRL-CLI-IPA(7): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMGW-MGCP-0(8): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC IPA-BTS0-TRX0-RSL-IPA(9): none (pass -> pass) MTC@781cb0959002: Test case TC_ctrl_msc_connection_status finished. Verdict: pass MTC@781cb0959002: Starting external command `../ttcn3-tcpdump-stop.sh BSC_Tests.TC_ctrl_msc_connection_status pass'. Tue Jan 17 08:30:20 UTC 2023 [1;32m====== BSC_Tests.TC_ctrl_msc_connection_status pass ======[0m
Saving talloc report from 172.18.78.20:4242 to BSC_Tests.TC_ctrl_msc_connection_status.talloc Waiting for packet dumper to finish... 0 (prev_count=-1, count=1121796) Waiting for packet dumper to finish... 1 (prev_count=1121796, count=1299991) MTC@781cb0959002: External command `../ttcn3-tcpdump-stop.sh BSC_Tests.TC_ctrl_msc_connection_status pass' was executed successfully (exit status: 0). MTC@781cb0959002: Starting external command `../ttcn3-tcpdump-start.sh BSC_Tests.TC_ctrl_msc0_connection_status'. ------ BSC_Tests.TC_ctrl_msc0_connection_status ------ Tue Jan 17 08:30:25 UTC 2023 NOTE: unable to use dumpcap due to missing capabilities or suid bit Waiting for packet dumper to start... 0 MTC@781cb0959002: External command `../ttcn3-tcpdump-start.sh BSC_Tests.TC_ctrl_msc0_connection_status' was executed successfully (exit status: 0). MTC@781cb0959002: Test case TC_ctrl_msc0_connection_status started. VirtMSC-IPA(12)@781cb0959002: Established a new IPA connection (conn_id=2) VirtMSC-IPA(12)@781cb0959002: CCM Tx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } VirtMSC-IPA(12)@781cb0959002: CCM Rx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } VirtMSC-IPA-WAIT(13)@781cb0959002: setverdict(pass): none -> pass VirtMSC-IPA-WAIT(13)@781cb0959002: Final verdict of PTC: pass VirtMSC-SCCP(11)@781cb0959002: v_sccp_pdu_maxlen:268 MTC@781cb0959002: BSSMAP: Received RESET-ACK in response to RESET, we're ready to go! MTC@781cb0959002: msc 1 is not configured, skipping MTC@781cb0959002: msc 2 is not configured, skipping IPA-BTS0-TRX0-RSL-IPA(16)@781cb0959002: CCM Tx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } IPA-BTS0-TRX0-RSL-IPA(16)@781cb0959002: CCM Rx:{ msg_type := IPAC_MSGT_ID_GET (4), u := { get := { { len := 1, tag := IPAC_IDTAG_UNITID (8) }, { len := 1, tag := IPAC_IDTAG_MACADDR (7) }, { len := 1, tag := IPAC_IDTAG_LOCATION1 (2) }, { len := 1, tag := IPAC_IDTAG_LOCATION2 (3) }, { len := 1, tag := IPAC_IDTAG_EQUIPVERS (4) }, { len := 1, tag := IPAC_IDTAG_SWVERSION (5) }, { len := 1, tag := IPAC_IDTAG_UNITNAME (1) }, { len := 1, tag := IPAC_IDTAG_SERNR (0) } } } } IPA-BTS0-TRX0-RSL-IPA(16)@781cb0959002: CCM Tx:{ msg_type := IPAC_MSGT_ID_RESP (5), u := { resp := { { len := 0, tag := IPAC_IDTAG_UNITID (8), data := '313233342F302F3000'O }, { len := 0, tag := IPAC_IDTAG_MACADDR (7), data := '00'O }, { len := 0, tag := IPAC_IDTAG_LOCATION1 (2), data := '00'O }, { len := 0, tag := IPAC_IDTAG_LOCATION2 (3), data := '00'O }, { len := 0, tag := IPAC_IDTAG_EQUIPVERS (4), data := '00'O }, { len := 0, tag := IPAC_IDTAG_SWVERSION (5), data := '00'O }, { len := 0, tag := IPAC_IDTAG_UNITNAME (1), data := '4F736D6F636F6D205454434E2D33204254532053696D756C61746F7200'O }, { len := 0, tag := IPAC_IDTAG_SERNR (0), data := '00'O } } } } IPA-BTS0-TRX0-RSL-IPA(16)@781cb0959002: CCM Rx:{ msg_type := IPAC_MSGT_ID_ACK (6), u := omit } MTC@781cb0959002: "TC_ctrl_msc0_connection_status() start" MTC@781cb0959002: talloc reports "struct bsc_subscr" x 0, expecting 0 MTC@781cb0959002: talloc reports "struct gsm_subscriber_connection" x 0, expecting 0 VirtMSC-SCCP(11)@781cb0959002: Final verdict of PTC: none VirtMSC-STATS(10)@781cb0959002: Final verdict of PTC: none VirtMSC-IPA(12)@781cb0959002: Final verdict of PTC: none IPA-CTRL-CLI-IPA(14)@781cb0959002: Final verdict of PTC: none MTC@781cb0959002: setverdict(pass): none -> pass VirtMGW-MGCP-0(15)@781cb0959002: Final verdict of PTC: none IPA-BTS0-TRX0-RSL-IPA(16)@781cb0959002: Final verdict of PTC: none MTC@781cb0959002: Setting final verdict of the test case. MTC@781cb0959002: Local verdict of MTC: pass MTC@781cb0959002: Local verdict of PTC VirtMSC-STATS(10): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMSC-SCCP(11): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMSC-IPA(12): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMSC-IPA-WAIT(13): pass (pass -> pass) MTC@781cb0959002: Local verdict of PTC IPA-CTRL-CLI-IPA(14): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC VirtMGW-MGCP-0(15): none (pass -> pass) MTC@781cb0959002: Local verdict of PTC IPA-BTS0-TRX0-RSL-IPA(16): none (pass -> pass) MTC@781cb0959002: Test case TC_ctrl_msc0_connection_status finished. Verdict: pass MTC@781cb0959002: Starting external command `../ttcn3-tcpdump-stop.sh BSC_Tests.TC_ctrl_msc0_connection_status pass'. Tue Jan 17 08:30:32 UTC 2023 [1;32m====== BSC_Tests.TC_ctrl_msc0_connection_status pass ======[0m
Saving talloc report from 172.18.78.20:4242 to BSC_Tests.TC_ctrl_msc0_connection_status.talloc + clean_up_common + set +e + set +x
### Clean up ###
+ trap - EXIT INT TERM 0 + type clean_up + network_clean + docker network inspect ttcn3-bsc_sccplite-test + grep Name + cut -d : -f2 + awk -F" NR>1{print $2} + xargs -rn1 docker kill Error response from daemon: Cannot kill container: jenkins-ttcn3-bsc-test-sccplite-latest-1462-bsc: Container d5af40e5f6b9f5dde596d1406a463de032ab5ecb766c11deda115d0448656259 is not running + network_remove + set +x Removing network ttcn3-bsc_sccplite-test + docker network remove ttcn3-bsc_sccplite-test ttcn3-bsc_sccplite-test + rm -rf https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/unix + fix_perms + set +x Fixing permissions + docker run --rm -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/ws/logs:/data -v https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/ws/_cache:/cache --name jenkins-ttcn3-bsc-test-sccplite-latest-1462-cleaner debian:bullseye chmod -R a+rX /data/ /cache/ + collect_logs + cat https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-sccplite-latest/1462/artifact/logs/bsc-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