Commit Graph

598 Commits

Author SHA1 Message Date
Harald Welte 37f3d4594b centos8-build: Make 'make' work again
Change-Id: I695ff7d6db7026a3b91771d4964f23d3151ef0aa
2020-12-16 10:54:37 +01:00
Harald Welte de52a89d0d migrate from CentOS_8_Stream to CentOS_8
Change-Id: I72c8fdae14816ec0a243f3fca4b4c2a49b562845
Related: SYS#5250
2020-12-16 10:54:37 +01:00
Harald Welte 62ac277796 gbproxy-test-fr: Avoid dumpcap failing to write to /data
Change-Id: I73dbdb4d85342e5fccd5ea4d9927f3244293d718
2020-12-11 18:11:52 +01:00
Harald Welte 5bffa66272 debian-stretch-titan: Add wireshark-common for dumpcap
We need dumpcap by ttcn3-dumpcap-start.sh

Change-Id: I0879710ff200bde7f77584dfb69cfb14f02f5d69
2020-12-11 15:26:14 +00:00
Harald Welte 2279aac61c ttcn3-gbproxy-test: Use dumpcap instead of tcpdump
This is required for creating proper pcap files with both ethernet
and framerelay/hdlc traffic.

Change-Id: Id237c25b12e70a89f12bd6d745b09c3abf9b7a7a
2020-12-11 15:44:46 +01:00
Harald Welte a10c26d6f7 ttcn3-gbproxy-test-fr: depend also on osmo-sgsn-master
osmo-gbproxy-master is derived from osmo-sgsn-mater, and the former
needs to be re-built to catch up with osmo-sgsn.git changes (Where
the osmo-gbproxy source code is located)

Change-Id: I8abc9f89d19d657403569b7705cd923342ff300b
2020-12-11 12:16:07 +01:00
Vadim Yanitskiy e1e8d3c592 debian-stretch-titan: use dpkg to install libfftranscode
For some magic reason, apt segfaults while installing the DEBs:

  $ apt install ./libfftranscode0_0.3_${DPKG_ARCH}.deb \
                ./libfftranscode-dev_0.3_${DPKG_ARCH}.deb
  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
  Reading package lists...
  Segmentation fault (core dumped)

so it kind of confirms the warning about its stability ;)

Change-Id: I7f3288161577b055145afe89de7dff50853760f5
2020-12-10 15:19:22 +00:00
Harald Welte 233d37ee88 ttcn3-gbproxy-test-fr: Fix hdlcnet device names
In Change-Id I80de01c96185c60fe2de7a8ffa9daed2669658e1 we introduced
the wrong hdlcnetX device names.  We must use each devoce only once,
rather than trying to use hdlcnet1..4 twice.

Change-Id: I56f75995fe94b46b0210de2a4f83e384b4e4ca4f
2020-12-09 19:28:51 +01:00
Pau Espin Pedrol ffd76f2060 centos8-build: Use arg OSMOCOM_REPO_MIRROR
Change-Id: If2aefff04792fe4d215fcc52377bec64d9a1db2d
2020-12-09 16:36:17 +00:00
Harald Welte 120f786a54 centos8-repo-install-test: Upstream requires 'powertools' not 'PowerTools'
I just confirmed: With a centos:centos8 base image of a few weeks ago,
"PowerTools" works. With the current docker base image for
centos:centos8, only lowercase "powertools" works, uppercase is no
longer accepted.

https://access.redhat.com/discussions/5417621
https://www.reddit.com/r/CentOS/comments/jd7x3d/how_to_enable_powertools_in_centos_stream/
https://git.centos.org/rpms/centos-repos/blob/c8/f/SOURCES/CentOS-Stream-PowerTools.repo#_11

Change-Id: I0db6c82576c5aae94531b7ec2fd98429cab702de
Closes: SYS#5244
2020-12-09 17:09:32 +01:00
Harald Welte d3dacd4ad4 gbproxy-test-fr: Fix syntax error in config file
It's mp_enable_bss_load_sharing, not mp_enable_load_sharing

Change-Id: I0d2241e0d9e376f27d04721034b1e197901aa662
2020-12-09 12:02:39 +01:00
Harald Welte ec62979d51 centos8-build: Upstream requires 'powertools' not 'PowerTools'
I just confirmed: With a centos:centos8 base image of a few weeks ago,
"PowerTools" works. With the current docker base image for
centos:centos8, only lowercase "powertools" works, uppercase is no
longer accepted.

https://access.redhat.com/discussions/5417621
https://www.reddit.com/r/CentOS/comments/jd7x3d/how_to_enable_powertools_in_centos_stream/
https://git.centos.org/rpms/centos-repos/blob/c8/f/SOURCES/CentOS-Stream-PowerTools.repo#_11

Change-Id: I518d5523688a7439f76684ee38bf743a4e78c9fd
Closes: SYS#5244
2020-12-09 11:05:27 +01:00
Harald Welte 5e299ecfea gbproxy: Enable test of load-sharing when running over FR
Change-Id: I2ce1f67dc8f45f7a62a923e45fb479c4c482eec9
Depends: osmo-ttcn3-hacks.git I96e8b6a1a69148f770476e87c920dc256c1d7379
Related: OS#4520
2020-12-08 08:37:53 +01:00
Harald Welte 01eb160c53 gbproxy: update ttcn3 configuration to reflect osmo-gbproxy.cfg
In Change-Id I80de01c96185c60fe2de7a8ffa9daed2669658e1 we updated
only the osmo-gbproxy.cfg, but noth the GBProxy_Tests.cfg for the
test suite, which of course won't work.

Change-Id: I35603dc76926d76e57993f7eab1354eea8d25dad
Related: SYS#5226
2020-12-08 08:37:53 +01:00
Pau Espin Pedrol a14d7912e2 Rename centos-repo-install-test/Dockerfile to centos8
We are using centos8 as distro name instead of centos everywher else
and jenkins-common.sh are expecting that.

Related: OS#4888
Change-Id: I05b012abced5b812e74315ccf64365896412e876
2020-12-07 13:28:00 +00:00
Daniel Willmann 2689304aa5 ttcn3-gbproxy-test-fr: Catch up with config changes
Change-Id: I80de01c96185c60fe2de7a8ffa9daed2669658e1
Related: SYS#5226
Depends: I698a932b3dc78c776e9350283109463bcdc40e6b (osmo-ttcn3-hacks)
2020-12-04 20:09:04 +01:00
Pau Espin 7d7a06b749 common: Introduce OSMOCOM_REPO_MIRROR param
This allows easily changing to another osmocom repo base URL if the
default one is down.

Related: OS#4862
Change-Id: I8010b08f3dabacfb3c13a44eece6c7a490e0742e
2020-12-02 14:27:02 +01:00
Pau Espin 78ae9377a7 common: Automatize UPSTREAM_DISTRO name based on image name
Similar to what is already done with DISTRO, which points to given image
of ours based on name. This time we do the same with upstream images,
such as debian:stretch or centos:centos8.

This way, for instance calling docker_images_require
"osmo-bsc-latest-centos8" would try to build the
osmo-bsc-latest/Dockerfile file starting from a centos8 image.

Change-Id: I33cb21aa024396974559fd98f9f3c64e2c351eda
2020-12-01 11:46:20 +00:00
Harald Welte b83c28fc34 Add ttcn3-gbproxy-test-fr for FR related testing
Testing FR support in osmo-gbproxy is a bit more complicated
as it involves the "hdlc" net-devices privded by the hdlc_fr.ko
kernel module.

So we need to
* run on a host with actual hdlc net-devices (e.g. dahdi_dyamic_loc)
* move those net-devices into the containers after starting them
* wait for the net-devices to appear in the containers before starting
  either gbproxy or the test suite

Change-Id: Id4b52877db53cb6e59f6d0d3f754aaae633949e8
2020-11-30 15:50:31 +01:00
Harald Welte 29f454f2f2 osmo-gbproxy-master (derived from osmo-sgsn-master)
Using a separate container will allow us to do gbproxy specific things
like waiting for physical net-devices to show up in the docker netns
before actually starting the osmo-gbproxy executable

Change-Id: I5e6351055ac9430f13e43291cf2a9d52683fe6bf
2020-11-30 15:50:01 +01:00
Harald Welte 8368c2b973 debian-stretch-titan: Use correct architecture of libfftranscode
We cannot blindly assume that we're running on amd64.

Change-Id: I937d7b02a194244a62b79dbe6b78c27f7baabeb6
Related: OS#4727
2020-11-14 22:54:09 +01:00
Harald Welte ddf61d2453 debian-stretch-titan: use libfftranscode 0.3 (latest version)
Change-Id: Id7e285b170a2f36067a29985c577c3d44d7c7204
Related: OS#4727
2020-11-14 22:47:34 +01:00
Harald Welte 70fcc1124b NS_Configuration: Adjust config regarding support for NS-VCG
In osmo-ttcn3-hacks.git Change-Id If1220852785853f8a5d8de183d5053ddd6ccb958
we introduce support for multiple NS-VC inside a NS-VCG.  This modifies
the configuration structures, and we need to adjust all config files
accordingly.

Change-Id: I6ac250555c3ac2aa8feb70bd3a052aafec5d4210
2020-11-13 09:23:11 +01:00
Pau Espin 1210086f95 ogt: Install dependency python3-watchdog
Change-Id: I9136cef6b5a7be085c840dd798bc21493f0a47a6
2020-11-10 17:26:44 +01:00
Harald Welte 027826fdba introduce 'REGISTRY' argument to all Dockerfiles
This is initialized to docker.io, keeping the default behaviour
if not specified.  However, it allows us to specify a private
registry later on.

Related: OS#4839
Change-Id: I32d4ee6256033c809108c1b86cb6b6c58d880f49
2020-11-02 17:02:26 +01:00
Harald Welte a90660bef8 osmo-mgw-master: Add missing libosmo-abis dependency on CentOS
Change-Id: I2f2368aa1dba52937164ade319722f1e85635f15
2020-10-25 10:47:03 +00:00
Pau Espin d5bd67d602 ogt: Create grbroker target directory
This is needed on the target remote hosts, where osmo-gsm-tester will
install a copy of the script to run remotely at runtime.

Change-Id: I59151dfe7091628707cd016db42171d22729a60c
2020-10-21 12:34:05 +00:00
Pau Espin e89c0d2ede ttcn3-bts: Enable gsmtap sapi for tch in osmo-bts.cfg
Change-Id: Idbd30800538200970de7a7fba6cd051cdf7ff252
2020-10-21 11:55:19 +00:00
Neels Hofmeyr 6c61185db4 fix ttcn3-smlc-test/Dockerfile
Change-Id: I6a53b3f398d807233a53cad61ae61b5f0c89b971
2020-10-21 00:46:10 +02:00
Daniel Willmann d047266211 gbproxy: Fix docker config for SGSN NS port
Related: SYS#5002
Change-Id: Idcd594714b3a525d496c471f16b62addf7d25ea9
2020-10-19 14:57:35 +00:00
Pau Espin 2ac3deec0b osmo-gsm-tester: Install gnuradio dependency
The python bindings of gnuradio are used to control a zmq connection
broker between srsENB and srsUE to emulate attenuations.

Change-Id: Ic4e8c4d6a5d1e20dd336ff15868c7c3f51dea323
2020-10-16 16:13:15 +02:00
Neels Hofmeyr 738ec9d51f bsc: add missing 'smlc / enable' for LCS tests
This part is missing from the already merged
I3394f391a6068ab8afeafa329b69a8ae4ad05cd9
which enabled LCS tests for osmo-bsc.

Change-Id: I873d6e46e00ee0e91b15d719829baff2bf9f115a
2020-10-16 15:49:04 +02:00
Harald Welte 0cb56e4bc7 osmo-*-master: Invalidate docker cache when CentOS repo changes
We currently only invalidate the cache if the Debian repository changes,
but not if the CentOS repository changes.  This leads to strange
artefacts, such as CentOS containers for osmo-bts-master using an
old libosmocore, despite a new one being available in the repo.

As Dockerfiles don't support conditional "ADD", we need to actually
add both the CentOS and the Debian repsotiry file, so any change
in either of the two will now (unneccessarily) invalidate the cache
for both Debian and CentOS builds.

Change-Id: I7b13644afb9d3be3b94184193177e003c13718d3
2020-10-16 13:13:08 +02:00
Daniel Willmann 687ea83fc6 Add GBProxy_Test
Change-Id: I6661887c741b44aa0927079f79b4d5fcc40d8acf
2020-10-15 17:02:14 +02:00
Daniel Willmann f567542874 osmo-sgsn-*: Expose ports for gbproxy as well
Change-Id: I4d2f659b14919a15601f507704e3224aedf5e24f
2020-10-15 11:14:17 +02:00
Daniel Willmann 95c6d07758 osmo-pcu-test: Only handle SNS where we test IP-SNS
Change-Id: Ic26699c40793224d0c647046e09a7a94b5e109bd
2020-10-15 11:14:17 +02:00
Neels Hofmeyr 81f6944d15 bsc: enable LCS tests for normal bsc master tests
Change-Id: I3394f391a6068ab8afeafa329b69a8ae4ad05cd9
2020-10-15 04:11:04 +00:00
Neels Hofmeyr 71b3157420 add ttcn3-smlc-test
Change-Id: I6ab09224a41796fed4023ba1ef1ff99f37863875
2020-10-15 04:09:33 +00:00
Neels Hofmeyr 72ddd58f07 add osmo-smlc-master
Change-Id: I8222e80e84432e51d86fd3b9faeaab6d20723d7e
2020-10-15 04:09:33 +00:00
Neels Hofmeyr c0c3596dfa bsc: enable Lb routing between BSC <-> virtual SMLC
Notably LCS tests are still disabled, just routing BSSMAP-LE/SCCP via STP to
the virtual SMLC is now possible.

Change-Id: Ic296291886ce18fd3ff34d45c519de605ba827cc
2020-10-15 00:57:45 +00:00
Neels Hofmeyr 3318ed3f26 bsc: add mp_enable_lcs_tests := false
Introduce this switch for enabling the Lb interface startup, and first off set
to false everywhere. A later patch will enable Lb where it makes sense.

Depends: Idf463c3c2169cad953b4ebc5b5845b31d5efb848 (osmo-ttcn3-hacks)
Change-Id: Id26064931c482c25217bccdeec866e9afc1fd9b5
2020-10-15 00:56:15 +00:00
Vadim Yanitskiy 36600bdfbc ttcn3-pcu-test: fix latest: tolerate CellId IE in BVC-RESET for BVCO=0
For more details, see Ie87820537d6d616da4fd4bbf73eab06e28fda5e1.

Change-Id: Ibe7eac7ff82955fab16373fae6d9ef4efb35a3a5
Depends: If6245d73ed701e631b67146ace4ba028bdb4226c
Depends: Icebee25b53fef623db6ae91ca0d943e70a3c86b7
2020-10-09 17:21:32 +07:00
Pau Espin 3cee04dddb ogt: Update installed patchelf to required version 0.11
osmo-gsm-tester requires patchelf 0.11 since a while ago to solve some
bugs on older versions. See osmo-ci
d276db78afbb3f28fc6a4a949bca131d0cfac1d4 for more information.

Related: OS#4389

Change-Id: I3a0c2168420d2a4ee2302a191824f571ec17786b
2020-10-05 12:44:09 +02:00
Harald Welte 01a159b847 gerrit: upgrade to 3.2.3
Change-Id: I81cc8439719576d09d90622d4c69cd960e34728c
2020-10-03 16:02:36 +02:00
Harald Welte 6dec3e7264 gerrit: upgrade to 2.16.22
Change-Id: I9fdf561d404512b5e4f16e93229da974c394b670
2020-10-03 13:21:43 +02:00
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