See
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/display/redirect?page=changes>
Changes:
[Oliver Smith] ttcn3-*/jenkins*.sh: use $SUBNET everywhere
[Oliver Smith] network_create: find free subnet automatically
------------------------------------------
[...truncated 34.10 KB...]
---> Using cache
---> c99caabf8a09
Step 7/11 : WORKDIR /tmp
---> Using cache
---> 882e67cdf6dc
Step 8/11 : VOLUME /data
---> Using cache
---> 7247e1d128a9
Step 9/11 : COPY osmo-bts.cfg /data/osmo-bts.cfg
---> Using cache
---> 6a54f5d0a4ff
Step 10/11 : WORKDIR /data
---> Using cache
---> 39adcfe733f6
Step 11/11 : CMD ["/bin/sh", "-c", "/usr/bin/osmo-bts-virtual -c
/data/osmo-bts.cfg -i 172.18.0.230 >>/data/osmo-bts-virtual.log 2>&1"]
---> Using cache
---> a8377f3b93a8
[Warning] One or more build-args [OSMO_SGSN_BRANCH UID OSMO_HLR_BRANCH OSMO_NITB_BRANCH
OSMO_PCU_BRANCH OSMO_GGSN_BRANCH OSMO_HNBGW_BRANCH OPEN5GS_BRANCH
OSMOCOM_REPO_TESTSUITE_MIRROR OSMO_BSC_BRANCH OSMO_SIP_BRANCH OSMO_UECUPS_BRANCH
OSMO_HNODEB_BRANCH OSMO_TTCN3_BRANCH LIBOSMOCORE_BRANCH OSMO_GBPROXY_BRANCH
OSMO_GSM_TESTER_BRANCH OSMOCOM_REPO_MIRROR OSMO_CBC_BRANCH OSMO_STP_BRANCH UPSTREAM_DISTRO
OSMO_IUH_BRANCH OSMO_MSC_BRANCH REGISTRY OSMOCOM_REPO_PATH OSMO_BB_BRANCH OSMO_BTS_BRANCH
OSMO_MGW_BRANCH] were not consumed
Successfully built a8377f3b93a8
Successfully tagged osmocom-build/osmo-bts-latest:latest
rm -rf .common
make: Leaving directory
'<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/ws/osmo-bts-latest'>
+ docker_image_exists osmo-bts-latest
+ docker images -q osmocom-build/osmo-bts-latest
+ test -n a8377f3b93a8
+ list_osmo_packages debian-bullseye osmo-bts-latest
+ local distro=debian-bullseye
+ local image=osmo-bts-latest
+ local docker_run_sh=docker run --rm --entrypoint=/bin/sh osmocom-build/osmo-bts-latest
-c
+ [ -n ]
+ set +x
### Installed Osmocom packages in: osmo-bts-latest ###
ii libosmoabis10:amd64 1.3.0 amd64 GSM A-bis
handling
ii libosmocodec0:amd64 1.7.0 amd64 Osmo codec
library
ii libosmocoding0:amd64 1.7.0 amd64 Osmo coding
library
ii libosmocore19:amd64 1.7.0 amd64 Osmo Core library
ii libosmoctrl0:amd64 1.7.0 amd64 Osmo control
library
ii libosmogsm18:amd64 1.7.0 amd64 Osmo GSM utility
library
ii libosmotrau2:amd64 1.3.0 amd64 GSM trau handling
ii libosmovty9:amd64 1.7.0 amd64 Osmo VTY library
ii osmo-bts-trx 1.5.0 amd64 osmo-bts-trx GSM
BTS with osmo-trx
ii osmo-bts-virtual 1.5.0 amd64 Virtual Osmocom
GSM BTS (no RF hardware; GSMTAP/UDP)
ii osmocom-latest 1.0.0 amd64 Dummy package,
which conflicts with: osmocom-nightly osmocom-next
+ [
registry.osmocom.org =
registry.osmocom.org ]
+ docker_depends ttcn3-bsc-test
+ local feed
+ echo debian-bullseye-titan
+ depends=debian-bullseye-titan
+ [ -n debian-bullseye-titan ]
+ docker_images_require debian-bullseye-titan
+ local i
+ local from_line
+ local pull_arg
+ local upstream_distro_arg
+ 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-bsc-test
+ echo debian-bullseye
+ distro_arg=debian-bullseye
+ [ -z ]
+ docker_upstream_distro_from_image_name ttcn3-bsc-test
+ echo debian:bullseye
+ upstream_distro_arg=debian:bullseye
+ docker_dir_from_image_name ttcn3-bsc-test
+ echo ttcn3-bsc-test
+ dir=ttcn3-bsc-test
+ pull_arg=--pull
+ grep ^FROM ../ttcn3-bsc-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-bsc-test (export NO_DOCKER_IMAGE_BUILD=1 to prevent this)
+ make -C ../ttcn3-bsc-test BUILD_ARGS= UPSTREAM_DISTRO=debian:bullseye
DISTRO=debian-bullseye IMAGE=osmocom-build/ttcn3-bsc-test
make: Entering directory
'<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/ws/ttcn3-bsc-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-bsc-test-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-bsc-test:latest .
Sending build context to Docker daemon 63.49kB
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_B…
/tmp/commit
---> Using cache
---> 00095faa6a88
Step 6/9 : RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" bsc
---> Using cache
---> 23880a8fc9d1
Step 7/9 : VOLUME /data
---> Using cache
---> 68dee03cf0b3
Step 8/9 : COPY BSC_Tests.cfg /data/BSC_Tests.cfg
---> Using cache
---> 56e21f65d434
Step 9/9 : CMD ttcn3-docker-run bsc BSC_Tests
---> Using cache
---> 647f9ca87494
[Warning] One or more build-args [OPEN5GS_BRANCH OSMO_STP_BRANCH OSMO_UECUPS_BRANCH
OSMOCOM_REPO_MIRROR OSMO_GSM_TESTER_BRANCH OSMO_HNODEB_BRANCH OSMOCOM_REPO_PATH
OSMO_BB_BRANCH OSMO_MSC_BRANCH OSMO_SGSN_BRANCH OSMO_SIP_BRANCH OSMO_BTS_BRANCH
OSMO_GGSN_BRANCH OSMO_IUH_BRANCH OSMO_BSC_BRANCH OSMO_NITB_BRANCH OSMO_HLR_BRANCH
UPSTREAM_DISTRO LIBOSMOCORE_BRANCH OSMO_CBC_BRANCH OSMO_GBPROXY_BRANCH
OSMOCOM_REPO_TESTSUITE_MIRROR OSMO_HNBGW_BRANCH UID OSMO_PCU_BRANCH DISTRO
OSMOCOM_REPO_VERSION OSMO_MGW_BRANCH] were not consumed
Successfully built 647f9ca87494
Successfully tagged osmocom-build/ttcn3-bsc-test:latest
rm -rf .common
make: Leaving directory
'<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/ws/ttcn3-bsc-test'>
+ docker_image_exists ttcn3-bsc-test
+ docker images -q osmocom-build/ttcn3-bsc-test
+ test -n 647f9ca87494
+ list_osmo_packages debian-bullseye ttcn3-bsc-test
+ local distro=debian-bullseye
+ local image=ttcn3-bsc-test
+ local docker_run_sh=docker run --rm --entrypoint=/bin/sh osmocom-build/ttcn3-bsc-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-bsc-test-latest/1571/artifact/logs/bsc-tester>
+ cp BSC_Tests.cfg
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bsc-tester/>
+ write_mp_osmo_repo
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bsc-tester/BSC_Tests.cfg>
+ local repo=nightly
+ local
config=<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/15…
+ local line
+ [ -e
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/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-latest/1571/artifact/logs/bsc-tester/BSC_Tests.cfg>
+ mkdir
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/stp>
+ cp osmo-stp.cfg
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/stp/>
+ mkdir
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bsc>
+ cp osmo-bsc.cfg
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bsc/>
+ mkdir
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bts-omldummy>
+ network_create
+ docker network ls
+ grep -q ttcn3-bsc-test
+ SUBNET=2653239
+ seq 1 30
+ echo (2653239 + 1) % 256
+ bc
+ SUBNET=56
+ SUB4=172.18.56.0/24
+ SUB6=fd02:db8:56::/64
+ set +x
Creating network ttcn3-bsc-test, trying SUBNET=56...
+ docker network create --internal --subnet 172.18.56.0/24 --ipv6 --subnet
fd02:db8:56::/64 ttcn3-bsc-test
d6ed663b5c5b28985a9969ce7cfde16c9ca7282707908f5c2b213cf1fbdbc0ce
+ set +x
### Network ttcn3-bsc-test created (SUBNET=56) ###
+ return
+ network_replace_subnet_in_configs
+ set +x
Applying SUBNET=56 to:
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/stp/osmo-stp.cfg>
Applying SUBNET=56 to:
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bsc/osmo-bsc.cfg>
Applying SUBNET=56 to:
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/bsc-tester/BSC_Tests.cfg>
+ echo Starting container with STP
Starting container with STP
+ docker_network_params 56 200
+ NET=56
+ ADDR_SUFIX=200
+ echo --network ttcn3-bsc-test --ip 172.18.56.200 --ip6 fd02:db8:56::200
+ docker run --rm --network ttcn3-bsc-test --ip 172.18.56.200 --ip6 fd02:db8:56::200
--ulimit core=-1 -v
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/stp>:/data
--name jenkins-ttcn3-bsc-test-latest-1571-stp -d osmocom-build/osmo-stp-latest
408b20f362b8660ea2b162329292d23c3e4ebe0d75c2a87e967bdba53c58b853
docker: Error response from daemon: network ttcn3-bsc-test not found.
+ clean_up_common
+ set +e
+ set +x
### Clean up ###
+ trap - EXIT INT TERM 0
+ type clean_up
+ network_clean
+ docker network inspect ttcn3-bsc-test
+ grep Name
+ cut -d : -f2
+ awk -F" NR>1{print $2}
+ xargs -rn1 docker kill
Error: No such network: ttcn3-bsc-test
+ network_remove
+ set +x
Removing network ttcn3-bsc-test
+ docker network remove ttcn3-bsc-test
Error: No such network: ttcn3-bsc-test
+ rm -rf
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/unix>
+ fix_perms
+ set +x
Fixing permissions
+ docker run --rm -v
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/ws/logs>:/data -v
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/ws/_cache>:/cache
--name jenkins-ttcn3-bsc-test-latest-1571-cleaner debian:bullseye chmod -R a+rX /data/
/cache/
+ collect_logs
+ cat
<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/*/junit-*.log>
cat:
'<https://jenkins.osmocom.org/jenkins/job/ttcn3-bsc-test-latest/1571/artifact/logs/*/junit-*.log'>:
No such file or directory
+ true
Build step 'Execute shell' marked build as failure
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found.
Configuration error?