Commit Graph

498 Commits

Author SHA1 Message Date
Neels Hofmeyr 2eb5e0e6a0 bsc.cfg: SCCPlite = AoIP: adjust logging config
Adjust the SCCPlite osmo-bsc.cfg according to changes applied in osmo-bsc.cfg,
which were obviously forgotten to also apply to the SCCPlite test runs.

Do the same logging in both SCCPlite and AoIP osmo-bsc.cfg.

Change-Id: I4a8fe459ec580078228c6775df357b6e0acbbb03
2020-06-20 20:02:56 +00:00
Neels Hofmeyr b0b594e77c attempt to capture core dump from osmo-stp during ttcn3-bsc-test run
When launching osmo-stp-master from ttcn3-bsc-test, set ulimit=-1 to allow core
files.

In osmo-stp-master set WORKDIR to /data to hopefully get the core file ending
up there without the need to set a /proc/sys/kernel/core_pattern globally in
the jenkins slave.

Change-Id: Idd67fcb3f564b9cff9b4596bf639ed1bd1b58daf
2020-06-20 18:42:57 +02:00
Neels Hofmeyr 329612ea9c bsc: adjust osmo-bsc.cfg for MSC pooling tests
Depends: I6c251f2744d7be26fc4ad74adefc96a6a3fe08b0 (osmo-bsc)
Change-Id: I353a2023d41d9f083acdd61da11109cb5a002f9b
2020-06-20 14:06:18 +00:00
Neels Hofmeyr 7557c2d75c bsc.cfg: SCCPlite = AoIP: adjust si2quater config
Adjust the SCCPlite osmo-bsc.cfg according to changes applied in osmo-bsc.cfg,
which were obviously forgotten to also apply to the SCCPlite test runs.

Make the SI2quater config reflect that of the AoIP osmo-bsc.cfg.

Change-Id: I4dbabcc28309424a336d2a052a067484d17663ac
2020-06-16 00:49:30 +02:00
Neels Hofmeyr c98125fbfc bsc.cfg: SCCPlite = AoIP: adjust handover config
Adjust the SCCPlite osmo-bsc.cfg according to changes applied in osmo-bsc.cfg,
which were obviously forgotten to also apply to the SCCPlite test runs.

These handover config changes should fix the TC_ho_* tests in
ttcn3-bsc-sccplite.

Change-Id: I9694863b2db6be6384d1d6ffb35fc477fe774d02
2020-06-16 00:49:30 +02:00
Neels Hofmeyr 7a8e34981c BSC_Tests.cfg for SCCPlite: adjust cfg for multiple MSCs
Forgot to also adjust the SCCPlite structure in previous commit
c7b52048e6, which broke SCCPlite testing.

Change-Id: I923e398ccd4bdd31c8325de1a850fe4c3236db79
2020-06-16 00:49:30 +02:00
Neels Hofmeyr c7b52048e6 BSC_Tests.cfg: adjust cfg for multiple MSCs
This only enables ttcn to be able to connect multiple MSCs. To be able to use
this in the BSC_Tests, osmo-bsc.cfg needs adjusting in an upcoming patch; tests
using this are in osmo-ttcn3-hacks I21cbab193cd0de2e5692665442eae113d5f61904.

Depends: Ibb36695b7c31f7b04eec6c5d59522fc0779b3c2f (osmo-ttcn3-hacks)
Change-Id: I1986e4ef43beee161c82193694421b56136c1afe
2020-06-14 11:01:46 +00:00
Pau Espin 932b00cfbc debian-stretch-jenkins/Dockerfile: Install source-highlight
It is needed by some user manuals using code snippet syntax
higlhlighting, such as osmo-gsm-tester one:

"""
[source,python]
----
sleep(3) # sleep for 3 seconds
----
"""

asciidoc: WARNING: test_api.adoc: line 19: filter non-zero exit code: source-highlight -f xhtml -s python: returned 127
asciidoc: WARNING: test_api.adoc: line 19: no output from filter: source-highlight -f xhtml -s python

Change-Id: I8427179f7cfc0c9150e5327803ca89adffedb8f1
2020-06-12 14:54:35 +00:00
Pau Espin db9514e2fe osmo-gsm-tester: Update resources.conf syntax changes
Change-Id: Iaa3e43d6878933b1f01026d58b01b1009fe4cd78
2020-06-11 17:17:21 +02:00
Vadim Yanitskiy 0bc32c4eab ttcn3-bts-test/jenkins.sh: fix latest: enable IPA stream ID patching
Change-Id: I9d76acc717f5aafbfbecafb30160b02486d341fd
Depends: I66cecc9ea24ba79e1a03492e3fda2874951d37a0
2020-06-09 21:05:56 +07:00
Pau Espin 44eea6be40 ttcn3-bts: Update cfg for test TC_tx_power_start_ramp_up_bcch
The test mentioned above is added in osmo-ttcn3-hacks.git
Ieb7444c6312bbeab64da2732393b3facf3e1f003.

config files are updated to make sense:
* "nominal power" in osmo-bsc.cfg reflects correct default nominal tx
  power of fake_trx.
* "osmotrx tx-attenuation" in osmo-bts.cfg is removed to let osmo-bts
  use the value received through OML (max_power_red 20).
* "power-ramp step-size" in osmo-bts.cfg is increased to speed up the
  test. There's no good reason to keep it lower.

Change-Id: I878d329dde3d2089ee3b68f56271fcb88d210025
2020-06-09 10:54:18 +00:00
Vadim Yanitskiy 511e02f3c5 ttcn3-bts-test/jenkins.sh: fix: properly start virtphy
Change-Id: I2c92ca7d8839a5e141a756f0e1ca26f5f27ca143
2020-06-07 20:46:38 +00:00
Pau Espin ed0b9c92bb ttcn3-bts: jenkins.sh: Log fake_trx stdout to file
This allows easily checking if fake_trx fails to start early during
startup, for instance due to a python exception.

Change-Id: I3e13a3b1f78d071618e4848aa19bcba1eb300d18
2020-06-07 19:27:28 +00:00
Vadim Yanitskiy 27fb91638d debian-stretch-titan: do not install unneeded dependencies
By default, Debian's package manager (apt) would install as many
dependencies as possible, including optional (recommended and
suggested) ones.

Package 'eclipse-titan' recommends 'default-jdk', which is
absolutely not needed for osmo-ttcn3-hacks, and in its turn
depends on +100500 more packages like xorg, wayland, etc.

This change significantly reduces total amount of dependencies
and the overall build time by disabling installation of
recommended and suggested dependencies.

Change-Id: I56f0d0f37e212b15e8c19ddea96d1c999177eb17
2020-06-05 22:20:35 +07:00
Vadim Yanitskiy 6dd4aba27a ttcn3-msc-test: fix osmo-msc.cfg: make it work with latest
Unfortunately, we have to revert a part of change [1], because it
broke ttcn3-msc-test-latest. The reason is that the latest release
of osmo-msc does not support 'timer vlr T3212 30'.

Change-Id: Iaeb6f1ffee9286394654bc3cf9d985ace7829110
2020-06-02 17:19:54 +07:00
Vadim Yanitskiy c69cb106fd osmo-{bsc,msc}.cfg: eliminate 'periodic location update 30'
This parameter has been deprecated in both osmo-msc and osmo-bsc.

Change-Id: I6d33c6d9c43078ee9961d3b076386188ec45be0f
2020-06-01 01:17:35 +07:00
Oliver Smith 9913f3896b osmo-*-master: support centos8
Adjust the Dockerfiles, so 'docker_images_require osmo-mgw-master-centos8'
etc. result in a centos8 based image. centos8-build already configures the
Osmocom nightly repository, so we only need to configure it for
debian-stretch.

Related: OS#4564
Change-Id: I6579748056ce0505304378b342a698b98c77fd18
2020-05-30 09:28:34 +02:00
Oliver Smith 3e3a298655 jenkins-common.sh: support osmo-*-centos8 images
Make it possible to call the ttcn3-*/jenkins.sh scripts with:
	IMAGE_SUFFIX="master-centos8"

The existing docker_images_require lines of these jenkins.sh scripts
will then call docker_images_require with arguments like
"osmo-mgw-master-centos8". For example, from ttcn3-mgw-test/jenkins.sh:

	docker_images_require \
		"osmo-mgw-$IMAGE_SUFFIX" \
		"ttcn3-mgw-test"

Let docker_images_require build the image from
osmo-mgw-master/Dockerfile (-centos8 is cut off from the dirname) and
with DISTRO=centos8 as argument.

Collisions with the debian-stretch images are avoided by setting IMAGE
to the full image name (e.g. osmo-mgw-master-centos8).

Related: OS#4564
Change-Id: I598a262fe1a7ed4dd89e13c53e4ded103c6e3b91
2020-05-30 09:14:41 +02:00
Oliver Smith 2a628add9c make/Makefile: add DISTRO argument
Prepare for distro-specific osmo-* images. While at it, put each
--build-arg on a separate line for readability.

Related: OS#4564
Change-Id: I1bf1c46295035a073e440faea3696ce53e7d7985
2020-05-30 09:14:41 +02:00
Oliver Smith 5505b95a15 ttcn3-*-test: remove implicit dependencies
Don't list debian-stretch-build and debian-stretch-titan as dependencies
anymore, now that docker_images_require finds them automatically.

Related: OS#4564
Change-Id: I3cb6b693f3dd9df84fb29c0217bb3dae454cc18f
2020-05-30 09:14:06 +02:00
Oliver Smith 061efaf6e6 docker_images_require: build depends too
Add a function to automatically resolve the most common dependencies,
osmo-* need debian-stretch-build and ttcn3-* need debian-stretch-titan.
Do this in a shell function in jenkins-common.sh, so we can extend it in
the next patch with distribution specific dependencies (osmo-*-centos8
needs centos8-build).

Related: OS#4564
Change-Id: I98760c6dc3206529c0e267338c9f6f8e1d5be33a
2020-05-30 08:57:58 +02:00
Oliver Smith 95bb9e5cb0 docker_images_require: scope of i: local
Prepare to call docker_images_require from itself, make i a local
variable.

Change-Id: I228f54f3e7431dba9e8d2a5fab0ecba3d0e6d76b
2020-05-30 08:57:58 +02:00
Oliver Smith c4298de73c centos8-build: new image
Create centos8-build similar to debian-stretch-build, as preparation for
ttcn-3 tests on centos 8.

Related: OS#4564
Change-Id: Ide1e88c92b7ac301f0ea8ca110c1b2eb43f9d5ad
2020-05-30 08:57:58 +02:00
Vadim Yanitskiy 3bd7fc452b osmo-bsc.cfg: drop deprecated '11bit_rach_support_for_egprs'
EGPRS Packet Channel Request cannot be enabled in 'GPRS only' mode
anyway. Moreover, this command was deprecated. Let's just remove it.

Change-Id: I03733490d9c4bf78a748d22874e550e015fbab78
2020-05-29 19:23:55 +07:00
Vadim Yanitskiy 28badfaf6e osmo-bsc.cfg: drop deprecated 'ip.access rtp-base' parameter
Change-Id: Ie5494fd08fc7d2277a087ccc9502b5076fa2565b
2020-05-29 14:34:31 +07:00
Vadim Yanitskiy d210c90a68 osmo-bsc.cfg: drop non-existing 'access-list-name bsc-list'
In the recent osmo-bsc master, this configuration parameter has
been removed, so it fails to start due to "unknown parameter".

Change-Id: I8f763a4b35f80f4db637bebdd8e802a835a9fd2d
2020-05-29 14:34:31 +07:00
Vadim Yanitskiy c5f1a673bd ttcn3-bts-test: enable 3 additional transceivers for BTS#0
This is needed for the forthcoming frequency hopping test cases.

Change-Id: Ib5ad31388ae25399ad09739aac3fdcb0b3a1f78b
Depends: I86afb55ecc6703ce7a229aaa626223f9331a4778
Related: OS#4546
2020-05-28 10:31:28 +00:00
Oliver Smith 9d7b8fd5f9 debian-repo-install-test: move scripts to osmo-ci
Related: OS#4563
Depends: I777098f19d75f7efbd68b837ccdcd83309429c39 (osmo-ci)
Change-Id: If93f37e8d46597a9abc67a4529be9addd65780f5
2020-05-27 11:41:47 +02:00
Oliver Smith f8d5ed55f1 centos-repo-install-test: new image
Prepare the repo-install-test to be extended to cover centos8 as well.
The scripts from docker-repo-install-test will be moved to osmo-ci.git
as shared code, and extended to work with centos8 too (using this new
image) in I399360ee6389591180859b52f0ef08883447b90b (osmo-ci).

Related: OS#4563
Change-Id: I50743c304728444ede8e0d40b8abef9d17c44d8d
2020-05-27 10:55:13 +02:00
Neels Hofmeyr acd141fa61 bsc: drop access-list-name from osmo-bsc.cfg
This configuration option is unused. Related: the IMSI filtering access list is
being dropped from osmo-bsc, which might cause test fallout.

Related: I89727af5387e8360362e995fdee959883c37d89a (osmo-bsc)
Change-Id: Ied8d766ba230b93cb1185fc8b1a77f5540dfdbc1
2020-05-18 17:52:31 +02:00
Oliver Smith 659a6cfb1a ttcn3-hlr-tests: enable DGSM tests
Change-Id: Ic4bcf5a5d76325edb104cd09620a22dbe371531d
2020-05-15 09:09:43 +02:00
Neels Hofmeyr 4449ccd8c4 bsc/osmo-bsc.cfg: remove legacy 'rtp-base' config
osmo-bsc does not use an rtp-base for years, ever since we're using an MGW.

Related: Id14fa3066ca5d472a817593074a6222f159168a8
Change-Id: I267840ecb816e9de6d89ebbacb3e296c59fad57c
2020-05-13 17:57:50 +02:00
Pau Espin eeaa003c5a osmo-gsm-tester: Fix typo in path in jenkins.sh
Change-Id: Icdbd94a9e3de81ae60ce18da86ad57ebf70fb04f
2020-05-12 16:42:51 +02:00
Pau Espin 16901f8053 osmo-gsm-tester: Point config parameter to file instead of its dirname
Since osmo-gsm-tester.git Change-Id Ieca65b71b543c44cfcec8e83efd0fe053c432e55,
the -c parameter holds the config file and not the directory where it is contained.

Change-Id: I5aa0507d0e82616ee3cca74573fea6bdb7459b53
2020-05-12 12:53:36 +00:00
Harald Welte efdcfde38f cgit: change URL for gerrit change-ids
Change-Id: Ifda98d8081b976194a9fafcfdcdb6f6340df6844
Related:OS#4529
2020-05-08 19:59:16 +02:00
Pau Espin cfad27be56 osmo-gsm-tester: Pass conf dir through -c cmd line arg instead of env var
As of osmo-gsm-tester.git Change-Id
I7eb69f870d0dcb5906d45ae067d6bed1aabf5862, the enviornment variable
OSMO_GSM_TESTER_CONF is deprecated in favour of already existing -c cmd
line argument. Let's use it while still providing the docker setup with
a way (using same env var name) to modify where the conf dir is to be
found inside the docker container (for instance, to provide an external
conf dir).

Change-Id: I54ea9dc4d0bb205debf312f5a37053bc60cfcdb7
2020-05-07 18:49:11 +02:00
Oliver Smith f48c09d3bc ttcn3-*-test/jenkins*.sh: add $DOCKER_ARGS
Allow to pass options to each "docker run" line in the various
jenkins.sh scripts. I'm using this to run the testsuites and Osmocom
components in docker with the same configurations as jenkins, but with
Osmocom and testsuite binaries built outside and mounted into the
containers:

DOCKER_ARGS="-v /usr/local:/usr/local:ro -v $hacks:/osmo-ttcn3-hacks:ro"

This allows very short test cycles without a second set of configs. The
full script that makes use of this feature is in osmo-dev.git,
ttcn3/ttcn3.sh.

Change-Id: I8d1f78aee926f8f6ec0b704e16639bc83f525816
2020-05-06 06:22:12 +00:00
Oliver Smith 27ab2a5d52 osmo-hlr-master: run ldconfig
Fix error after DGSM-related patches were merged:

osmo-hlr: error while loading shared libraries: libosmo-gsup-client.so.0: cannot open shared object file: No such file or directory
Change-Id: I80554fdbfd2c518868485f84a46c56df985c671c
2020-05-05 13:58:52 +02:00
Harald Welte acf1d8f026 gerrit: Update to 2.16.18
Change-Id: I2979d892b38c6a7729fe2b39ad240e0a66323284
2020-05-04 11:34:00 +02:00
Pau Espin 0b68e53d23 ttcn3-pcu: Fix cfgn content after ttcn3 module renaming
Required after osmo-ttcn3-hacks.git:
Ie862a1525e9f4f9a3f2427ac3898810e3d044d2f
Iacaddb56e41012ba58ef6d1b9e79d2c012259bed

Change-Id: I0710f52ddab8da8638970d28dc88f6882cc5f637
2020-04-30 11:12:44 +00:00
Harald Welte c83c2b1616 open5gs: Add pgw.sh
This can serve as an entrypoint for running open5gs-pgw inside
the open5gs-master container.  It will run setup.sh to create the ogstun
device, followed by running open5gs-pgwd as 'osmocom' user.

Change-Id: I4527b5e328fb248552e69961b80b9f791ec74293
2020-04-27 11:19:36 +00:00
Harald Welte 793e9ff973 add open5gs-master docker container
Change-Id: I089c51caa1b1d8acf0063b7bc7fe61a805b5e800
2020-04-26 23:15:01 +02:00
Harald Welte da4f98181e add osmo-uecups-master container
Change-Id: Iafcf9639f7e44f19220a9d0f375444b168a6a392
2020-04-26 23:15:01 +02:00
Harald Welte 37ee8e0a57 debian-stretch-jenkins: Add osmo-uecups dependencies
The new osmo-uecups project requires libnl-3 + jansson

Change-Id: I592e8ae8677d5d0a90a6b6a5ed9a89789d7c9a5a
2020-04-17 13:23:18 +00:00
Vadim Yanitskiy bcfd877466 ttcn3-bts-test: enable time / date logging for fake_trx.py
Depends: Ie5d14a261e17af554f7132b03d58549a4831dcdb
Change-Id: I7f82e4f573db8f72256718c04bb1ace23788ba38
2020-04-14 18:00:16 +00:00
Pau Espin 42bb1385ee osmo-gsm-tester: Update path to sysmocom's specific setup
Since osmo-gsm-tester.git I364e0859c0851b9167907a4d948b659a0f6a19fb the
example/ directory has been renamed to sysmocom/

Change-Id: I8ca085e02330be51de12066da0555c1bc0c8b767
2020-04-10 21:02:43 +02:00
Vadim Yanitskiy b648126d15 ttcn3-bts-test/virtphy: remove deprecated 'ms-power-control dsp'
osmo-bts-virtual fails to start:

  Error occurred during reading the below line:
    ms-power-control dsp

  This BTS model has no DSP/HW MS Power Control support
  Failed to parse the config file: '/data/osmo-bts.cfg'

Change-Id: Ic85603db10c11de911d20313caf2f819e92d94d1
2020-04-05 20:14:40 +07:00
Vadim Yanitskiy 34152ebda6 osmo-bsc-{latest,master}/osmo-bsc.cfg: Remove 'nat' from logging
As of Change-Id Id965295dfe04f8bd5ce831db70c86f67b8dc290b the
bogus 'NAT' log category has been removed from osmo-bsc.

Change-Id: If02272c08ba2df37d1295d09c104d11f96abbe1e
2020-04-05 00:14:29 +07:00
Vadim Yanitskiy 716af8e633 ttcn3-bts-test/osmo-bsc.cfg: Remove 'nat' from logging
As of Change-Id Id965295dfe04f8bd5ce831db70c86f67b8dc290b the
bogus 'NAT' log category has been removed from osmo-bsc.

Change-Id: I266d6f6ed54d1457b1ca63b87fc1c29f6dd40caf
2020-04-05 00:07:50 +07:00
Harald Welte 33fe5f7d88 ttcn3-bsc-test: Remove 'nat' from logging
As of Change-Id Id965295dfe04f8bd5ce831db70c86f67b8dc290b the
bogus 'NAT' log category has been removed from osmo-bsc.

Change-Id: Ie2afacfc15589c26238214cddc00baaf80e993c1
2020-04-04 18:58:48 +02:00