Commit Graph

97 Commits

Author SHA1 Message Date
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
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 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
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
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 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 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
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
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
Pau Espin ad4fa373a8 bsc: Store osmo-bts-omldummy logs out of docker container
Change-Id: I0c02c4a9311122c3fe8ca877e02043f697723281
2020-06-25 13:42:59 +02:00
Neels Hofmeyr 42b731e09b ttcn3-bsc-test latest: remove MSC pooling specific bits in latest build
Change-Id: I2b129caa513686a105d31ae56b065757b12fcac8
2020-06-24 20:39:02 +02:00
Neels Hofmeyr 04c20edefd collect core dumps: '--ulimit core=-1' and WORKDIR=/data everywhere
Change-Id: Ief73b53ed9da6f5af82975bc36d851277d5d3185
2020-06-21 20:58:22 +00:00
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
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 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
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
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
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
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
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
Harald Welte cf2e72b6e7 ttcn3-bsc-test: Enable CBSP tests
for some strange reason, the tests developed + merged in September 2019
are not yet automatically executed.  Let's fix that.

"latest" should work fine, the BSC side code was already present in 1.6.0

Change-Id: I4408265d1be900359256f5cab553893d03cc8362
2020-03-30 20:00:31 +02:00
Pau Espin c3f157b939 Update ttcn3-*/jenkins.sh to log stdout+stderr of process to log file
This way we get VTY parsing failures as well as backtraces upon process
crash.

Related: OS#4212
Change-Id: I3d9f6de638dbc07391a32c6a0cbd469dc5adf2b5
2019-11-20 17:17:45 +01:00
Philipp Maier 80030e9815 osmo-bsc.cfg: remove obsolete logging categories (cc, mgcp)
The logging categories cc and mgcp are obsolete. The tests still contain
logging statements with those categories, which makes osmo-bsc
terminate during startup while parsing the configuration file.

Change-Id: Ifd6bf46b73420c0443f997ea953318710544b751
2019-10-30 08:08:31 +00:00
Pau Espin dbeec9ec47 ttcn3-bsc-sccplite: Enable color output in log file
Change-Id: I63932a9d2aafad68624aee3e42bef0bd4c2c4717
2019-10-23 17:59:27 +02:00
Pau Espin 4c73bc883d bsc: Set route ctx 0 for IPA and 1 for M3UA
Since libosmo-sccp.git 89407619a31a4332bdb59e7921b99a29b7d6e00c it is
not allowed to use routing ctx != 0 for IPA AS.

Change-Id: If3e883aa988ffa1686f1363d5d5d4dbb21ce36c7
2019-10-22 18:44:59 +02:00
Pau Espin 65bc0ae407 ttcn-*: Fix gsmtap log not enabled
gsmtap log won't be sending any message unless it is allowed by "logging
filter all 1".

Change-Id: Ibf8062c0d962f2572a07623e6f06936df0d42c67
2019-10-04 15:50:50 +02:00
Oliver Smith 5f98d0120a sccplite/osmo-bsc.cfg: add bts 3
Have the same amount of bts like in the regular (non-sccplite)
osmo-bsc.cfg, so we can make BSC_Tests.TC_ctrl pass for regular and
sccplite again.

Related: I1c57a04747f5ec004ccf4657954dcb0b003c24fc
Related: Ie2c664ba0f845da644e20e2c919c12d8fc2af6ba (osmo-ttcn3-hacks)
Related: OS#4156
Change-Id: I00547dccf8908d46df4730cb513fe577956d7683
2019-08-20 08:00:15 +00:00
Pau Espin 38f51b709f ttcn3-bsc/msc: Drop fixups for latest releases not supporting osmux
Last releases of osmo-bsc and osmo-bsc already support Osmux, so we can
drop those lines as indicated.

Change-Id: Id6a18f2d691f6e9234a5a0cf91ed5c840a6394de
2019-08-19 19:24:39 +02:00
Neels Hofmeyr 8ddb0f87ab apply osmo-bsc.cfg changes from osmo-ttcn3-hacks
Analogous to osmo-ttcn3-hacks patch If44dd6b578cdc55076c8180707d1c2d69fe5f2a8,
also remove the neighbor config from osmo-bsc.cfg here.

Change-Id: I23d9a2046709452f4d3904230871f7421c6987a9
2019-08-15 01:05:27 +02:00
Neels Hofmeyr f3c0493976 adjust osmo-bsc.cfg for TC_ho_neighbor_config_1 thru _7
- Actually enable handover.
- Add bts 3

Related: osmo-ttcn3-hacks Ia4ba0e75abd3d45a3422b2525e5f938cdc5a04cc
Change-Id: I1c57a04747f5ec004ccf4657954dcb0b003c24fc
2019-08-13 21:53:50 +00:00
Oliver Smith c2ed5bb201 ttcn3-*: enable GSMTAP logging
Configure each osmo-* program to send GSMTAP log output to the IP of the
docker container, which runs the testsuite (and therefore runs tcpdump).

Related: https://lists.osmocom.org/pipermail/openbsc/2019-June/012946.html
Change-Id: I99e74f6ffb5b7d566cec35995bf067df414968d8
2019-07-10 09:34:39 +02:00
Pau Espin ee49c7ba88 ttcn3-*: Enable extended-timestamp in VTY cfg
Having extended-timestamp allows for easier matching between osmo-*.log
files and pcap traces.

Change-Id: I98cdc0adc24edc966d5648d2c215c6ad7c749209
2019-06-03 17:59:42 +02:00
Pau Espin 0e59f1e8bf bsc: Fix: Disable osmux for ttcn3-bsc-test-sccplite-latest
Recent commit added bits to disable "osmux on/off" vty commands on
"-latest" tested, but forgot to add required line in
sccplite/BSC_Tests.cfg for sed command in jenkins.sh script to work.

Fixes: 2cdab85e5f
Change-Id: I9b4ce2d7151d65b4c83417a59fd01672971b3937
2019-05-31 14:44:58 +02:00
Pau Espin 2cdab85e5f bsc: Disable osmux for ttcn3-bsc-test-latest
Latest tagged version of osmo-bsc doesn't support "osmux on/off" VTY
commands, so we have to enable osmux use on that version to avoid most
TTCN3 tests failing during set up phase.

Depends: osmo-ttcn3-hacks I61e4c59b2926f3f70cb6d0190a8683861e54179a
Change-Id: I745b210f43cb147d323a15f78c294f70ee077729
2019-05-28 18:42:01 +02:00
Oliver Smith 61f2be7bd4 Fix git checkout for branches and commits
Replace 'git checkout -f -B $BRANCH origin/$BRANCH && \' in all
Dockerfiles that accept branch variables ($OSMO_TTCN3_BRANCH,
$OSMO_MGW_BRANCH, ...) with the following:
	git checkout $BRANCH && \
	(git symbolic-ref -q HEAD && git reset --hard origin/$BRANCH || exit 1); \

This allows using branch names and commit hashes in the $BRANCH
variables. Using commits is needed for the bisect script added in [1].

The second line ("(git symbolic...") checks if we are in detached HEAD
state after the checkout, and if we are not, pulls in all new commits
from origin/$BRANCH. Note that it ends in ';' instead of '&&', because
the command in the next line should be executed even if
"git symbolic-ref" does not exit with 0 (detached HEAD state).

Here is an example, to illustrate that the new command does the right
thing. Clone a repository and be 50 commits behind origin/master:
$ git clone "https://git.osmocom.org/osmo-mgw"
$ cd osmo-mgw
$ git reset --hard origin/master~50

With BRANCH="master":
$ git checkout master && \
  (git symbolic-ref -q HEAD && git reset --hard origin/master || exit 1); \
  echo "done"
Already on 'master'
...
done
$ git status
Your branch is up-to-date with 'origin/master'.

With BRANCH="85978d":
$ git checkout 85978d && \
  (git symbolic-ref -q HEAD && git reset --hard origin/85978d || exit 1); \
  echo "done"
Note: checking out '85978d'.
...
done
$ git status
HEAD detached at 85978dad

Related previous changes:
* [2] made it work for commit hashes, but broke using branch names other
      than master, and pulling in new commits from master
* [3] made branches other than master work again, but did not fix
      pulling in new commits from master
* [4] reverted [3] and the git checkout related part from [2]

[1] Change-Id: I11f7e61a9b30d58a0fdfcaf77dde447806bf661f
[2] Change-Id: If3bc5fae07cf63c4fef68306be4c4328660bc869
[3] Change-Id: I2ff745c8d19b777d876170d5717c082ceb68a1f3
[4] Change-Id: Ie6da0f9ea96f11407e38545a6b3cf22ef9cadc25

Related: OS#4015
Change-Id: I4004980baf0b7d6096702b6f3067ccbdb369a28c
2019-05-22 11:18:56 +02:00
Harald Welte 06ac6e455e Revert "Simplify git checkout, allow branches and commits"
Unfortuately this commit will check out *local* master (i.e. the
previous checkout) rather than the origin/master as it's supposed to
be. This means that ever since merging this patch, our ttcn3 tests
were running some "undefined" stale versions and not current master.

This reverts commit 26565bb729.

Change-Id: Ie6da0f9ea96f11407e38545a6b3cf22ef9cadc25
2019-05-21 17:53:11 +02:00
Oliver Smith 26565bb729 Simplify git checkout, allow branches and commits
Replace the following statements:

a) "git checkout -f -B $BRANCH origin/$BRANCH"
b) "git checkout -f -B $BRANCH $BRANCH"

with:

c) "git checkout -f $BRANCH"

Regarding a), we don't need to specify 'origin/' for each branch, since
we are cloning the repositories in the same Dockerfile, and therefore we
know for sure that there is only one remote and branch names won't be
ambiguous. Removing the 'origin/' allows to put commit hashes into the
branch variables (like done in the new bisect script [1]).

Version b) does not work with branch names:
$ git checkout -f -B osmith/check-imei-before-lu osmith/check-imei-before-lu
fatal: Cannot update paths and switch to branch 'osmith/check-imei-before-lu' at the same time.
Did you intend to checkout 'osmith/check-imei-before-lu' which can not be resolved as commit?

New version c) works with both commits and branches, and it is shorter.

[1] Change-Id: I11f7e61a9b30d58a0fdfcaf77dde447806bf661f

Change-Id: I2ff745c8d19b777d876170d5717c082ceb68a1f3
2019-05-07 10:24:52 +02:00