Skip to content

Failed

ttcn3_bts_tests:oc2g.ttcn3_bts_tests.py (from ttcn3_bts_tests_oc2g)

Failing for the past 2 builds (Since #2761 )
Took 44 sec.

Stacktrace

run_ttcn3_docker.sh exited with error code 1

Standard Output

----------------------------------------------
trial-2762 ttcn3_bts_tests:oc2g ttcn3_bts_tests.py
----------------------------------------------
00:24:41.891326 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.905750 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.920661 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.935492 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.950429 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.965414 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.980031 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:41.993958 tst             ttcn3_bts_tests:oc2g: Using 1 x bts (candidates: 1)
00:24:42.135996 tst               ttcn3_bts_tests.py: using LAC 43422
00:24:42.270769 tst               ttcn3_bts_tests.py: using RAC 72
00:24:42.403128 tst               ttcn3_bts_tests.py: using CellId 43421
00:24:42.535154 tst               ttcn3_bts_tests.py: using BVCI 23407
00:24:42.561619 tst             ttcn3_bts_tests:oc2g: Using 1 x osmocon_phone (candidates: 1)
00:24:42.760918 tst            ttcn3_bts_tests.py:35: Starting CNI
00:24:42.903766 run              osmo-hlr_10.42.42.2: Starting osmo-hlr
00:24:43.393973 run         create_hlr_db(pid=31526): Launched
00:24:44.589621 run         create_hlr_db(pid=31526): Terminated: ok {rc=0}
00:24:44.933304 run pcap-recorder_any(filters='host 10.42.42.2')(pid=31528): Launched
00:24:45.273730 run   osmo-hlr_10.42.42.2(pid=31529): Launched
00:24:45.397547 run              osmo-stp_10.42.42.4: Starting osmo-stp
00:24:45.956887 run pcap-recorder_any(filters='host 10.42.42.4 and port not 22')(pid=31530): Launched
00:24:46.293724 run   osmo-stp_10.42.42.4(pid=31531): Launched
00:24:46.415523 run              osmo-msc_10.42.42.5: Starting osmo-msc
00:24:47.013342 run pcap-recorder_any(filters='host 10.42.42.5 and port not 22')(pid=31532): Launched
00:24:47.352472 run   osmo-msc_10.42.42.5(pid=31533): Launched
00:24:50.535048 run              osmo-mgw_10.42.42.3: Starting osmo-mgw
00:24:51.097131 run pcap-recorder_any(filters='host 10.42.42.3 and port not 22')(pid=31534): Launched
00:24:51.431746 run   osmo-mgw_10.42.42.3(pid=31535): Launched
00:24:51.457024 tst             ttcn3_bts_tests:oc2g: Using 1 x ip_address (candidates: 8)
00:24:51.561675 run              osmo-bsc_10.42.42.8: Starting osmo-bsc
00:24:52.224627 run pcap-recorder_any(filters='host 10.42.42.8 or host 10.42.42.9 and port not 22')(pid=31536): Launched
00:24:52.557231 run   osmo-bsc_10.42.42.8(pid=31537): Launched
00:24:58.848415 run                    osmo-bts-oc2g: Starting OsmoBtsOC2G to connect to osmo-bsc_10.42.42.8
00:24:59.839099 run         rm-remote-dir(pid=31539): Launched
00:25:01.041786 run         rm-remote-dir(pid=31539): Terminated: ok {rc=0}
00:25:01.402597 run         mk-remote-dir(pid=31540): Launched
00:25:02.606303 run         mk-remote-dir(pid=31540): Terminated: ok {rc=0}
00:25:02.909228 run    scp-inst-to-remote(pid=31552): Launched
00:25:10.121719 run    scp-inst-to-remote(pid=31552): Terminated: ok {rc=0}
00:25:10.464723 run         mk-remote-dir(pid=31617): Launched
00:25:11.665197 run         mk-remote-dir(pid=31617): Terminated: ok {rc=0}
00:25:11.980497 run     scp-cfg-to-remote(pid=31618): Launched
00:25:13.203458 run     scp-cfg-to-remote(pid=31618): Terminated: ok {rc=0}
00:25:13.594678 run         osmo-bts-oc2g(pid=31816): Launched
00:25:13.863526 tst            ttcn3_bts_tests.py:49: Starting osmocon
00:25:14.013665 run                  osmocon_ttyUSB5: Resetting the phone
00:25:14.131667 run                  osmocon_ttyUSB5: Starting osmocon
00:25:14.497407 run       osmocon_ttyUSB5(pid=31927): Launched
00:25:14.613695 run                  osmocon_ttyUSB5: Waiting for osmocon to be up and running
00:25:15.825949 tst            ttcn3_bts_tests.py:53: Creating template
00:25:16.067431 tst            ttcn3_bts_tests.py:53: Starting TTCN3 test suite
00:25:16.456850 run                 ttcn3(pid=31928): Launched
00:25:16.857551 tst            ttcn3_bts_tests.py:53: TTCN3 test suite launched, waiting until it finishes
00:25:24.090328 run         osmo-bts-oc2g(pid=31816): Terminated: ok {rc=0}
00:25:24.472883 run         osmo-bts-oc2g(pid=32478): Launched
00:25:24.731804 run                 ttcn3(pid=31928): ERR: Terminated: ERROR {rc=1}  [trial-2762↪ttcn3_bts_tests:oc2g↪ttcn3_bts_tests.py:53↪ttcn3(pid=31928)]
00:25:24.876736 run                 ttcn3(pid=31928): stdout: 
| MC2> ttcn3_start: error: the MTC cannot be created. 
| exit
| MC@98b17ce61053: Shutting down session.
| MC@98b17ce61053: Shutdown complete.
| No junit log found.
| Removing Input log files !!!
| ttcn3 docker exited with code 1
| Removing network ttcn3-bts-test
| ttcn3-bts-test
| Copying TTCN3 junit file to /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests.xml 
00:25:25.021829 run                 ttcn3(pid=31928): stderr: 
| + network_remove
| + echo Removing network ttcn3-bts-test
| + docker network remove ttcn3-bts-test
| + echo Copying TTCN3 junit file to /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests.xml
| + cp /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/ttcn3_bts_tests:oc2g/ttcn3_bts_tests.py/ttcn3/logs/bts-tester/junit-xml-*.log /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests.xml
| cp: cannot stat '/home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/ttcn3_bts_tests:oc2g/ttcn3_bts_tests.py/ttcn3/logs/bts-tester/junit-xml-*.log': No such file or directory
| + basename /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests.xml .xml
| + sed -i s#classname='BTS_Tests'#classname='trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests'#g /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests.xml
| sed: can't read /home/jenkins/workspace/osmo-gsm-tester_ttcn3/trial-2762/run.2021-03-01_00-22-28/trial-ttcn3_bts_tests:oc2g.ttcn3_bts_tests.xml: No such file or directory
| + exit 1 
00:25:25.056443 tst            ttcn3_bts_tests.py:53: ERR: RuntimeError: run_ttcn3_docker.sh exited with error code 1  [trial-2762↪ttcn3_bts_tests:oc2g↪ttcn3_bts_tests.py:53]
00:25:25.065215 tst            ttcn3_bts_tests.py:53: Test FAILED (43.2 sec)
00:25:25.111291 run pcap-recorder_any(filters='host 10.42.42.2')(pid=31528): Terminating (SIGTERM)
00:25:25.161687 run   osmo-hlr_10.42.42.2(pid=31529): Terminating (SIGTERM)
00:25:25.213119 run pcap-recorder_any(filters='host 10.42.42.4 and port not 22')(pid=31530): Terminating (SIGTERM)
00:25:25.266505 run   osmo-stp_10.42.42.4(pid=31531): Terminating (SIGTERM)
00:25:25.318343 run pcap-recorder_any(filters='host 10.42.42.5 and port not 22')(pid=31532): Terminating (SIGTERM)
00:25:25.369873 run   osmo-msc_10.42.42.5(pid=31533): Terminating (SIGTERM)
00:25:25.421688 run pcap-recorder_any(filters='host 10.42.42.3 and port not 22')(pid=31534): Terminating (SIGTERM)
00:25:25.471711 run   osmo-mgw_10.42.42.3(pid=31535): Terminating (SIGTERM)
00:25:25.523226 run pcap-recorder_any(filters='host 10.42.42.8 or host 10.42.42.9 and port not 22')(pid=31536): Terminating (SIGTERM)
00:25:25.572952 run   osmo-bsc_10.42.42.8(pid=31537): Terminating (SIGTERM)
00:25:25.623083 run         osmo-bts-oc2g(pid=32478): Terminating (SIGTERM)
00:25:25.673698 run       osmocon_ttyUSB5(pid=31927): Terminating (SIGTERM)
00:25:25.685844 ---      ParallelTerminationStrategy: PID 31528 died...
00:25:25.754084 run pcap-recorder_any(filters='host 10.42.42.2')(pid=31528): Terminated: ok {rc=0}
00:25:25.766086 ---      ParallelTerminationStrategy: PID 31529 died...
00:25:25.832974 run   osmo-hlr_10.42.42.2(pid=31529): Terminated: ok {rc=0}
00:25:25.844917 ---      ParallelTerminationStrategy: PID 31530 died...
00:25:25.912211 run pcap-recorder_any(filters='host 10.42.42.4 and port not 22')(pid=31530): Terminated: ok {rc=0}
00:25:25.924287 ---      ParallelTerminationStrategy: PID 31531 died...
00:25:25.990698 run   osmo-stp_10.42.42.4(pid=31531): Terminated {rc=256}
00:25:26.003118 ---      ParallelTerminationStrategy: PID 31532 died...
00:25:26.069910 run pcap-recorder_any(filters='host 10.42.42.5 and port not 22')(pid=31532): Terminated: ok {rc=0}
00:25:26.082658 ---      ParallelTerminationStrategy: PID 31534 died...
00:25:26.150407 run pcap-recorder_any(filters='host 10.42.42.3 and port not 22')(pid=31534): Terminated: ok {rc=0}
00:25:26.162366 ---      ParallelTerminationStrategy: PID 31535 died...
00:25:26.230536 run   osmo-mgw_10.42.42.3(pid=31535): Terminated {rc=15}
00:25:26.244746 ---      ParallelTerminationStrategy: PID 31536 died...
00:25:26.308899 run pcap-recorder_any(filters='host 10.42.42.8 or host 10.42.42.9 and port not 22')(pid=31536): Terminated: ok {rc=0}
00:25:26.321173 ---      ParallelTerminationStrategy: PID 31927 died...
00:25:26.385643 run       osmocon_ttyUSB5(pid=31927): Terminated {rc=15}
00:25:26.397364 ---      ParallelTerminationStrategy: PID 32478 died...
00:25:26.461214 run         osmo-bts-oc2g(pid=32478): Terminated {rc=36608}
00:25:29.156923 ---      ParallelTerminationStrategy: PID 31533 died...
00:25:29.225285 run   osmo-msc_10.42.42.5(pid=31533): Terminated: ok {rc=0}
00:25:29.237341 ---      ParallelTerminationStrategy: PID 31537 died...
00:25:29.303943 run   osmo-bsc_10.42.42.8(pid=31537): Terminated: ok {rc=0}

Standard Error

Traceback (most recent call last):
  File "/home/jenkins/workspace/osmo-gsm-tester_ttcn3/osmo-gsm-tester/src/osmo_gsm_tester/core/test.py", line 76, in run
    self.path)
  File "/home/jenkins/workspace/osmo-gsm-tester_ttcn3/osmo-gsm-tester/src/osmo_gsm_tester/core/util.py", line 414, in run_python_file
    spec.loader.exec_module( importlib.util.module_from_spec(spec) )
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/jenkins/workspace/osmo-gsm-tester_ttcn3/osmo-gsm-tester/sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py", line 53, in <module>
    run_ttcn3(tenv, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_groups)
  File "/home/jenkins/workspace/osmo-gsm-tester_ttcn3/osmo-gsm-tester/sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py", line 45, in run_ttcn3
    raise RuntimeError("run_ttcn3_docker.sh exited with error code %d" % proc.result)
RuntimeError: run_ttcn3_docker.sh exited with error code 1