Commit Graph

553 Commits

Author SHA1 Message Date
Harald Welte 0c77380165 cgit: Increase fastcgi timeout from default 60s to 120s
Change-Id: Ida429f692fe939bb96bdd1c7313e6b0fd7b26913
2020-10-03 12:43:20 +02:00
Harald Welte 28a44de777 cgit: Don't depend on unmaintained upstream; work directly with debian
Change-Id: Ifa98f77c24298265e39313b679944d649e25ddde
2020-10-03 12:36:04 +02:00
Harald Welte e5f036796c cgit: osmo-commit-filter.py: migrate from deprecated cgi.escape to html.escape
Our error.log is full of:

/usr/local/lib/cgit/filters/osmo-commit-filter.py:18: DeprecationWarning: cgi.escape is deprecated, use html.escape instead
  return '<a href="%s">%s</a>' % (url, cgi.escape(txt))

Change-Id: I97707519029d4f8d703d2df1b8beab15665d49b1
2020-10-03 12:15:45 +02:00
Philipp Maier 148f45de7c BSC_Tests: disable IPV6 parameter mp_media_mgw_offer_ipv6 for latest
Change-Id: I63f9d751c8b1347d2e14ab408830ba4858e133b2
Depends: osmo-ttcn3-hacks I30c77abef63636bb02db12d2f2b2d79ea244b96c
2020-09-29 22:40:21 +00:00
Harald Welte d5af310648 PCU+SGSN: Adjust to new "provider" structure of NSConfiguration
In Change-Id I6904520d8c2f546327029777d68b1907611a8cf5 of
osmo-ttcn3-hacks, we change the structure of NSConfiguration.  Let's
adjust the configs accordingly.

Change-Id: I8c5e59e79b69c13632d69f5011be9279b827a4fa
Depends: osmo-ttcn3-hacks I6904520d8c2f546327029777d68b1907611a8cf5
2020-09-28 14:11:07 +00:00
Daniel Willmann 01caeb1226 ttcn3-pcu-test: Change config to support statsd
Change-Id: I2779cdb4ec7cac891aa86e3fefa739e61f867691
Depends: osmo-ttcn3-hacks.git Change-Id I90964b32fa11ed2582afc5fb56bd302b06606f86
Related: SYS#4877
2020-09-25 14:28:47 +02:00
Vadim Yanitskiy 92b653170d ttcn3-pcu-test-sns: use PCUIFv9 for 'latest' images
Change-Id: Iae0136c453ad14114dae17e8b0e8b5ae2ef8e352
Related: I9350c4a54434c3d46ce9424f382ca0057e58d053
Related: SYS#4868, SYS#4915
2020-09-22 13:30:44 +07:00
Vadim Yanitskiy 0e2a3d6bb1 ttcn3-{pcu,bts}-test: use PCUIFv9 for 'latest' images
Change-Id: I6f072e4db07fd6907b91925549edcf62d9c93fb7
Related: I9350c4a54434c3d46ce9424f382ca0057e58d053
Related: SYS#4868, SYS#4915
2020-09-22 02:00:41 +07:00
Harald Welte 15855072ba PCU+SGSN tests: Set address_family field of NSConfiguration
In osmo-ttcn3-hacks Change-Id I0b4fda96accef401ffc009010f9f5621583fd6dd
we introduce the address_family member; let's make sure all configs use
it as expected.

Change-Id: I52e8b11f047a7a2ecce18e4a4f9ff3ed495a0352
2020-09-18 11:33:35 +02:00
Pau Espin abe8cd0a5e ttcn3-bsc: Set new BSC_Tests_CBSP module parameters
Depends: osmo-ttcn3-hacks.git Change-Id I859edebd24634ec9b448cd114f5541c93e552b0b

Change-Id: Ia18e358c70861801597d5abec0a48776c7e0bdfe
2020-09-18 08:31:26 +00:00
Pau Espin 0b1371c101 ttcn3-msc: Force MNCCv6 on ttcn3-msc-test-latest
Default is MNCCv7 since osmo-ttcn3-hacks.git
I5448ff931ec33f24f4837a51376f1703fe97683b, but latest tagged version of
osmo-msc only supports MNCCv6.

Change-Id: Iaac2f5453214dfcf6efd070f6ea1212a7833eb1b
2020-09-16 12:35:21 +02:00
Pau Espin f63ab39214 ttcn3-sip: Update default mp_mncc_version
Keep it using the older version in MNCC_Emulation for older versions of
osmo-sip-connector (last tagged released), since those doesn't support
MNCC7 yet.

Change-Id: I5dbacdd4bd8110b7f6cf6bdb561af420b65c035f
2020-09-16 12:34:08 +02:00
Pau Espin be98438d94 ttcn3-msc: Update module params against new osmo-ttcn3-hacks.git
module param mp_enable_osmux_test is dropped in osmo-ttcn3-hacks.git
I8bc0551ec91a5fd8ea2f291a1e16a06a739c7a75.
module param mp_enable_crashing_tests is introduced in
osmo-ttcn3-hacks.git I46f1066323e19dfe708402a8c9c68e257f62751c.

Change-Id: I22bb43ba6d15eabcc731a2c3ef7aabc4f250d508
2020-09-15 20:54:02 +00:00
Harald Welte f28aa95173 New fpga-build image for building iCE40 gateware + RISC-V firmware
this will be needed for building e1-tracer + icE1usb gateware+firmware
on our jenkins slaves.

Change-Id: I7c2072b9524a2038d71c0fac4f2023b92af26382
2020-09-14 22:38:40 +02:00
Vadim Yanitskiy 078717ab2b ttcn3-bts-test/fh: do not configure CBCH slots statically
In BTS_Tests_SMSCB, we dynamically configure the CBCH slots via
the VTY interface, so there is no need to set them here.  This
was also the reason of some SMSCB test case failures, because
the BSC would send unexpected LOAD INDICATIONs.

Change-Id: I6e005ca772e26878c7b19df0d854936d7b7718dd
Related: SYS#4868, OS#4708
2020-09-12 20:16:31 +07:00
Pau Espin c90560f64f ttcn3-mgw: Update module param addresses naming to support ipv6
Depends: osmo-ttcn3-hacks.git Change-Id Ia393d7175de277ec8fa524ba74bf3b150b74c766

Change-Id: I2840eeee8ae53dc8bdf96ce7b6c76e4c8e0af859
2020-09-08 20:12:25 +02:00
Pau Espin 4d9cde0f4d ttcn3-bsc-sccplite: Bind osmo-bsc SS7 instance to container's local address
Change-Id: Ic2b608a055635f94d74cc24c3a934d6458934e82
2020-09-01 15:48:37 +02:00
Pau Espin 18de547d3e ttcn3-sgsn: Enable osmo-sgsn SS7 multi-homing and IPv6 features in tests
Change-Id: I21dbe79705dcc23426a88174120f6f810df84749
2020-08-30 16:07:57 +00:00
Pau Espin 2025b1a3f0 ttcn3-msc: Enable osmo-msc SS7 multi-homing and IPv6 features in tests
Change-Id: I784eb033a4887c5a9f2bfaa52aa39cb86cdf13ce
2020-08-30 16:07:10 +00:00
Pau Espin a985e1bd6e ttcn3-bsc: Enable osmo-bsc SS7 multi-homing and IPv6 features in tests
Change-Id: I662ede0957a67c7a733cba8e4e65bf0c8c72b878
2020-08-30 14:15:27 +00:00
Neels Hofmeyr c276d736c7 bsc CBSP: apply new cbc config
Adjust osmo-bsc.cfg to work with osmo-bsc
Icaa2775cc20a99227dabe38a775ff808b374cf98 and osmo-ttcn3-hacks
I7eea0dd39de50ed80af79e0f10c836b8685d8644.

Related: Icaa2775cc20a99227dabe38a775ff808b374cf98 (osmo-bsc)
Related: I7eea0dd39de50ed80af79e0f10c836b8685d8644 (osmo-ttcn3-hacks)
Related: OS#4702
Change-Id: I9e9760121265b3661f1c179610e975cf7a0873f1
2020-08-28 08:44:27 +00:00
Pau Espin 1f45fb08ff jenkins-common.sh: Add function to print docker network related parameters
Change-Id: Ie00561de7a4494065156a124565e2190151e6019
2020-08-27 12:49:43 +02:00
Pau Espin 8d4a97a3fc ttcn3-stp: Configure M3UA setup to use IPv6 together with IPv4
Depends: libosmo-sccp.git Change-Id I09226a5cecc37dd4676acd61c2051befe5234cb3
Depends: osmo-ttcn3-hacks.git Change-Id Ib1925ed1df5cea3fa66f28b5625532d454a2c338
Change-Id: Id6e197cc3ba71e36f29ceec44742b7452a47b36b
2020-08-27 10:47:28 +00:00
Daniel Willmann 49fa190470 ttcn3-mgw-test: Removing the e1 config options on latest
Fixes the test failure on ttcn3-mgw-test-latest

Change-Id: I3143ba905a77fabd1074dbd618c7ae48fa92a77a
2020-08-25 11:30:59 +02:00
Harald Welte a8521eb11a msc: Disable expecting CommonID when testing 'latest'
As of osmo-ttcn3-hacks.git Change-Id I4976d9bb1f07c8ab4ffa02848414f8ddd1bdfd3f
the test suite expects the MSC to send a CommonID to the BSC.  As
older/existing tagged osmo-msc don't do that, we needt odisable that
check when verifying 'latest'.

Change-Id: If2e4cc41cb7b5758a78d694d62b34390a08e6387
Related: OS#2969
2020-08-19 07:29:31 +00:00
Philipp Maier 02bd8bc60e osmo-mgw.cfg: fix config file + add E1 trunk
The config file of osmo-mgw has an incorrect indentation. Also no E1
trunk is configured, so that the E1 related tests fail. Lets fix this.

Change-Id: I3b19afc0809bd56e9fe0f5e968e1c000d29f4abd
2020-08-18 21:01:50 +02:00
Alexander Couzens 7bc7dccd0b debian-stretch-jenkins: install osmo-python-tests for python2
osmo-python-tests for python2 is being used when building
old releases.

Change-Id: I63b3e92e745a664d5d0168c718daddae83c20df5
2020-08-17 08:34:13 +00:00
Harald Welte cc1620eac8 ttcn3-ggsn-test: Use IPv6 address of the tester as "DNS1"
We cannot rely on every test slave always having proper IPv6
conenctivity to a public DNS server, and that DNS server to respond
to ICMPv6 echo request.  We're testing half of the internet instead
of our GGSN.  Let's use the IPv6 address of the docker container
running the test sute, which is guaranteed to always exist.  We have
no problems with routing, as the ICMPv6 is hand-crafted and encapsulated
into GTP before it's sent to the kernel IP stack - so basically on the
transmit side, the kernel doesn't know anything about the destination
address of the encapsulated IPv6 packet.

Closes: OS#4713
Change-Id: I1377ffa2cc6980168297d5ff5c81fa5dad94d7a9
2020-08-16 14:53:36 +02:00
Harald Welte 5edd774edc ttcn3-ggsn-test: Add static IPv6 addresses to containers
Change-Id: Id8656f09eb1d879153dc4034bd562596ee6e35db
2020-08-16 12:49:51 +00:00
Harald Welte 873f496d2b migrate ttcn3-msc-test from 172.18.1.0/24 to 172.18.20.0/24
When introducing IPv6 support, we map the third digit of the IPv4
address (X) to the 6th byte of an IPv6 prefix "fd02:db8:X::/64"

However, the docker daemon seems to use "fd02:db8:1::/64" internally
for its default network, so creating a docker network with the same
IP address is failing.

Let's move the MSC test suite to another sub-net (1->20) to avoid
related problems.

Change-Id: I9c5f9b96d5523eae09f3f2e6c813e9e0d047f9ab
2020-08-14 08:03:41 +02:00
Daniel Willmann 68ddce97e3 Update bsc tester config to enable stats testing
Change-Id: I6ed591cdc4d3108547eda2a1755ae6f6cef2b4d2
Related: SYS#4877
Depends: I8526b645dc4af59adcc1855699421a026f505c1d (osmo-ttcn3-hacks)
2020-08-13 23:00:44 +02:00
Vadim Yanitskiy 149de2822d ttcn3-bts-test/fh: fix: properly rename classnames
Not only append ':hopping' to classnames equal 'BTS_Tests', but
also 'BTS_Tests_SMSCB' and 'BTS_Tests_LAPDm', so they would not
shadow non-hopping test cases in the test results analyzer.

Change-Id: Ie6ed7844c2d0dfd839181bce971506284da03d28
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy a21c4f2fac ttcn3-bts-test/fh: fix: do not run BTS_Tests.control twice
Apparently, TITAN concatenates the contents of all sections, so
we end up with the following set of test cases:

  [EXECUTE]
  BTS_Tests.control
  BTS_Tests_SMSCB.control
  BTS_Tests_LAPDm.control
  BTS_Tests.control

Change-Id: I71802daec4a5591cbf0fce59a4247027f8dfca46
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy c91dae9d1d ttcn3-bts-test/fh: fix: properly include BTS_Tests.cfg
Include the correct configuration file, not the one from the image.

Change-Id: Iecae5cddfbbce4c3bc4077c6c09f527914c06e4b
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy 617835b50b ttcn3-bts-test/jenkins.sh: use bts-tester-{generic,oml,virtphy,hopping}
Let's use separate directories to store the artifacts of different
TTCN-3 test case groups.  This would prevent the test suite from
overwriting *.log and *.pcap files when running both generic and
hopping configurations together, and simplify the overall hierarchy.

Change-Id: I7c41cfb395047433e22e9c65c8c00ae284717b32
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy 075a487ad9 ttcn3-bts-test/jenkins.sh: do not create unused directory
Change-Id: I01efad7f86723301807237d9fae515e82cae125b
2020-08-13 19:27:39 +00:00
Harald Welte 306a51dd30 Enable IPv6 in docker networking
We previously only allocated IPv4 sub-nets to the network segments
created with 'docker network'.  Let's fix that by assigning both
IPv4 and IPv6 address ranges to each docker network.

Related: OS#4700
Change-Id: I8802208fddcce1ffa57e5626575d23d02b320d99
2020-08-13 15:01:58 +00:00
Neels Hofmeyr 7b5248b464 bsc-sccplite CBSP: fix osmo-bsc.cfg to contain 3 BTS with a CBCH
Fix the TC_si2quater_* test fallout.

When adjusting the bsc AoIP test config, forgot to also adjust the SCCPlite
test suite config, which caused fallout in the SCCPlite tests.

Related: Idbcc703ace7012fb395f0eef3e445df28b368d74 (docker-playground)
Related: Iac46ee2cc5bc0978d5f5baa550baf493a7c56b1b (osmo-ttcn3-hacks)
Change-Id: I810ff6f89d722e7274046c360a2cbebf6f6ee53a
2020-08-13 13:08:26 +00:00
Neels Hofmeyr cca5e49c4e bsc CBSP: fix osmo-bsc.cfg to contain 3 BTS with a CBCH
The bsc/BSC_Tests_CBSP.ttcn rely on a configuration where the first three BTS
carry out SMSCB messaging, and the fourth BTS does not. That requires a CBCH
channel config on bts 0, 1, 2.

Related: Iac46ee2cc5bc0978d5f5baa550baf493a7c56b1b (osmo-ttcn3-hacks)
Change-Id: Idbcc703ace7012fb395f0eef3e445df28b368d74
2020-08-12 21:11:48 +00:00
Neels Hofmeyr 596aa901ce jenkins-common.sh: exit early on full disk
When my disk runs full, jenkins-common.sh fails to create a VOL_BASEDIR right
at the start, and hence no testsuite gets its external volumes mounted
properly. However, the test suite still starts up with missing cfg files etc,
and fails in non-obvious ways, until I find out the disk is full some minutes
later. Instead, verify that the base dir really exists or bail out right there.

Change-Id: I6540797c8e0ee3e7b09d4a80592d5e270e7d9adc
2020-08-12 18:23:05 +00:00
Vadim Yanitskiy 27a063fc2f ttcn3-bts-test/jenkins.sh: enable frequency hopping test cases
Change-Id: I2b8ee5037146203801ab92a1b4fe6703522d8093
Related: SYS#4868, OS#4546
2020-08-08 01:37:35 +07:00
Vadim Yanitskiy 46a29a706e ttcn3-bts-test/osmo-bsc.cfg: do not enable CBCH slots by default
As it turns out, test cases from BTS_Tests_SMSCB configure the
CBCH slots "on the fly" depending on the test case parameters.
This configuration also makes some test cases fail, so let's
(re)configure SDCCH8+CBCH timeslots to SDCCH8.

Change-Id: I3699450542dc1350971fbf87ad60a330428dec27
2020-07-31 05:02:17 +07:00
Vadim Yanitskiy 9619d2355b ttcn3-bts-test: add configuration with frequency hopping parameters
The Physical channel configuration is the same as in the non-hopping
configuration file.  Hopping parameters are listed below the table.

== Physical channel configuration (FDMA) ==

  +-------+------------------+------------------+------------------+------------------+
  | # / # |      TRX#0       |      TRX#1       |      TRX#2       |      TRX#3       |
  +-------+------------------+------------------+------------------+------------------+
  | ARFCN |       871        |       873        |       875        |       877        |
  +-------+------------------+------------------+------------------+------------------+

== Physical channel configuration (TDMA) ==

  +-------+------------------+------------------+------------------+------------------+
  | # / # |      TRX#0       |      TRX#1       |      TRX#2       |      TRX#3       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS0  |   CCCH+SDCCH4    |    TCH/F (a)     |    TCH/F (a)     |    TCH/F (a)     |
  +-------+------------------+------------------+------------------+------------------+
  |  TS1  |      TCH/F       |   SDCCH8+CBCH    | SDCCH8+CBCH (b)  | SDCCH8+CBCH (b)  |
  +-------+------------------+------------------+------------------+------------------+
  |  TS2  |    TCH/F (c)     |    TCH/H (c)     |    TCH/F (d)     |    TCH/H (d)     |
  +-------+------------------+------------------+------------------+------------------+
  |  TS3  |  TCH/F_PDCH (e)  |  TCH/F_PDCH (e)  |  TCH/F_PDCH (e)  |  TCH/F_PDCH (e)  |
  +-------+------------------+------------------+------------------+------------------+
  |  TS4  | TCH/F_TCH/H_PDCH | TCH/F_TCH/H_PDCH | TCH/F_TCH/H_PDCH | TCH/F_TCH/H_PDCH |
  +-------+------------------+------------------+------------------+------------------+
  |  TS5  |    TCH/H (f)     |    TCH/H (f)     |    TCH/H (f)     |    TCH/H (f)     |
  +-------+------------------+------------------+------------------+------------------+
  |  TS6  |    SDCCH8 (g)    |     PDCH (h)     |     PDCH (h)     |    SDCCH8 (g)    |
  +-------+------------------+------------------+------------------+------------------+
  |  TS7  |     PDCH (i)     |     PDCH (j)     |     PDCH (i)     |     PDCH (j)     |
  +-------+------------------+------------------+------------------+------------------+

== Hopping configuration ==

  a) HSN=0, MAIO=0,1,2
  b) HSN=1, MAIO=3,5
  c) HSN=2, MAIO=0,1
  d) HSN=2, MAIO=2,3
  e) HSN=3, MAIO=3,2,1,0
  f) HSN=5, MAIO=0,1,2,3
  g) HSN=6, MAIO=1,0
  h) HSN=6, MAIO=1,0
  i) HSN=0, MAIO=1,3
  j) HSN=0, MAIO=0,2

Change-Id: I7822c3581fccba3277a63577e740e7486307635d
Related: SYS#4868, OS#4546
2020-07-21 19:46:56 +00:00
Vadim Yanitskiy d3ce838e0c ttcn3-bts-test/osmo-bsc.cfg: change pchan config for TRX#1..3
The new physical channel configuration will be used in the upcoming
multi-transceiver test cases.  Rather than having the same logical
channel combinations configured for all transceivers, it makes
sense to test more deviations.  TRX#0 has kept unchanged.

== Physical channel configuration ==

  +-------+------------------+------------------+------------------+------------------+
  | # / # |      TRX#0       |      TRX#1       |      TRX#2       |      TRX#3       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS0  |   CCCH+SDCCH4    |      TCH/F       |      TCH/H       |       PDCH       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS1  |      TCH/F       |   SDCCH8+CBCH    |       PDCH       |      TCH/H       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS2  |      TCH/F       |       PDCH       |   SDCCH8+CBCH    |      TCH/H       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS3  |   TCH/F_PDCH     | TCH/F_TCH/H_PDCH |       PDCH       |   SDCCH8+CBCH    |
  +-------+------------------+------------------+------------------+------------------+
  |  TS4  | TCH/F_TCH/H_PDCH |   TCH/F_PDCH     |      SDCCH8      |       PDCH       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS5  |      TCH/H       |      SDCCH8      |      TCH/F       |      TCH/F       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS6  |      SDCCH8      |       PDCH       |       PDCH       |       PDCH       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS7  |       PDCH       |       PDCH       |       PDCH       |      SDCCH8      |
  +-------+------------------+------------------+------------------+------------------+

Change-Id: Ib27704dcba3979d69e44065c472b1452eaa11a7a
Related: SYS#4868, OS#4546
2020-07-21 19:46:56 +00:00
Vadim Yanitskiy e6e2b06689 make: use $(nproc) instead of hard-coded number of cores
Change-Id: Ie93b81a8a9206c47c4e4d4834fc5c03d9bf4254c
2020-07-13 02:52:10 +07:00
Pau Espin fc5cab9e3a ttcn3-bts: Fix most OML test failing after osmo-bts shutdown optimization
Since osmo-bts.git 0a6bdb024f5429a35c56178496158c9b1c3ee032, the process
is quickly terminated during shutdown if no TRX is running. Since in the
OML tests the TTCN3 components implements the OML IPA server side, most
of the time when osmo-bts starts it finds no one listening on the
address and exits immediately. This makes respawn.sh script run osmo-bts
lots of times per seconds (since osmo-bts terminates quicker now). As a
result, it quickly consumes the 500 launch threshold and exits without
starting osmo-bts being launched anymore.
As a result, only first tests pass, and all the later ones fail because
osmo-bts never connects.

Let's add a sleep 1 between respawns in respawn.sh only when running OML
tests (not needed in the others since there's an osmo-bsc always
running). This also clears a lot of output in the logs of osmo-bts
processes restarting over and over again.

Change-Id: I10d3e1ef8325dd78f9ae2b95fbfd1c6d893bf8a4
2020-07-08 12:37:29 +00:00
Neels Hofmeyr 37a603b1d3 ttcn3-msc-test latest: do not require VLR cell id match in latest build
Depends: Ie410714a96353f74a52a104c56fa0a08683e0004 (osmo-msc)
Change-Id: I052fea208021509e12826c50474b96474e7a58c2
2020-07-08 01:45:41 +00:00
Vadim Yanitskiy c33612da64 ttcn3-bts-test/osmo-bsc.cfg: use logging level 'notice' by default
Change-Id: Ib0bfbe0d98ef0d3e6d627e737edbbf013a5f19c0
2020-07-06 03:35:13 +07:00
Vadim Yanitskiy 438e63ec76 ttcn3-bts-test/osmo-bts.cfg: use logging level 'notice' by default
Change-Id: I51e95a83aac0af1223d9608c234b87162835c9bc
2020-07-06 03:35:09 +07:00
Pau Espin d1dcc58323 Makefile: Support overriding LIBOSMOCORE_BRANCH
gr-gsm-master is using it but it cannot be overriden. Similarly iy can
be helpful to do so in temporarliy modified images when testing
libosmocore features.

Change-Id: Ia9f26f3513da339d2255a0f6b2277682fe15bdf2
2020-06-30 18:23:04 +02:00