Commit Graph

580 Commits

Author SHA1 Message Date
Pau Espin 1b8ddfc33e ttcn3-stp: Log osmo-stp output to file and gsmtap
Similar to what we do with other suites.

Change-Id: Ib12bc92c86e4a2ba15e1eec56f2ac0905281b21d
2019-11-05 17:16:20 +01:00
Pau Espin d6ac128cf8 make: Fix OSMO_BB_BRANCH not being passed correctly
Change-Id: Ia289f8e71e8bb6c59b1caa7a23981a1f08a2f49e
2019-11-05 13:02:24 +01:00
Philipp Maier e0079d37cf ttcn3-bts-test: remove obsolete vty config
The configuration file for osmo-bsc contains obsolete config statements,
which cause osmo-bsc to crash. Lets remove those config statements.

Change-Id: Ic91e2ee1e9132886cd02535bc84a568d4c25dbb4
2019-10-31 12:56:57 +01:00
Philipp Maier 7cb84b0d16 osmo-bsc-latest: remove obsolete logging categories
The logging categories cc and mgcp are obsolete for osmo-bsc and will
cause recent versions of osmo-bsc to crash. Lets remove this logging
categories from the config file now.

Change-Id: Idd85318abe3fc982909c11115c886835a3d8cd37
2019-10-30 13:49:16 +00:00
Oliver Smith b6ab37d964 repo-install-test: disable osmo-ggsn service
OsmoGGSN is not able to use the tun4 device from the default config in
docker. Since the more strict config checking in [1], it does not just
report a warning, but fails to start:

	<0002> ggsn.c:189 APN(internet): Opening TUN device tun4
	<0001> tun.c:184 errno=2/No such file or directory open() failed
	<0002> ggsn.c:191 APN(internet): Failed to configure tun device
	Error occurred during reading the below line:
	  no shutdown
	Failed to open config file: '/etc/osmocom/osmo-ggsn.cfg'

Fix the repo install test jenkins job by not checking osmo-ggsn anymore.
In theory, we could probably create the tun device on the host, and
mount it inside the docker container. But that would require some
additional logic to clean it up properly, and it does not seem worth the
effort right now.

[1] libosmocore Ic9c1b566ec4a459f03e6319cf369691903cf9d00
Change-Id: I15c7a2f38a21cd96c9852ad26f4b4a81798e6593
2019-10-30 13:00:29 +00:00
Harald Welte 436fe0c143 stp: don't only execute STP_Tests.control, but also M3UA and IPA
Change-Id: Icc7d168dc90d3551d27c1be27c50d66dd84f0a50
Related: OS4220
2019-10-30 12:01:14 +01:00
Harald Welte 1e45b4d966 osmo-stp-test: Ensure we build the laforge/stp branch
Change-Id: I2cf300eb37b327450da0f8b20ee209a6109bf8fe
Related: OS#4220
2019-10-30 11:55:25 +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
Daniel Willmann d74bc618e5 Add docker image for osmo-nitb-latest
Change-Id: I23cb350ded2940bd63b47ae84e44faa3292b0d9d
2019-10-29 12:37:18 +01:00
Pau Espin 5e70a29727 Introduce ttcn3-stp-test
Currently builds from osmo-ttcn3-hacks.git branch laforge/stp instead of
master, since it's only available in the former branch. Once it gets
merged, we can modify Dockerfile as explained in it.

OS#4220
Change-Id: I635c891f5da7b8c59527abbad14d7377465d1045
2019-10-24 16:46:02 +02: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 6a994afdf9 Fix trailing whitespace
Change-Id: Ib51a84560bad521d0adf4bb883c10418c51468a2
2019-10-23 17:58:05 +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
Daniel Willmann c66029cd99 Fix ttcn3-pcu-test-latest
Remove the gsmtap-categories that are unknown to the latest osmo-pcu
release.

Change-Id: I4ed750aaa728272fcda09fd23cf172db0e539aa8
2019-10-15 12:55:43 +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
Pau Espin ae148f1836 debian-stretch-titan: Install netcat-openbsd required by osmo-ttcn3-hacks
Scripts ttcn3-tcpdump-start.sh and ttcn3-tcpdump-stop.sh, run by
osmo-ttcn3-hacks upon start and end of every test in the suite, starts
and stops tcpdump and netcat each time.
netcat is started in order to have a dummy sink for gsmtap log packets,
to get rid of annoying ICMP messages as well as the kernel deciding to
drop those messages (hence not ending up inside the pcap file of
tcpdump) under some circumstances.

Depends: osmo-ttcn3-hacks.git Id69d98db63f8260067ad6bc1525fb05c936912f2
Change-Id: Iccda25bc274ee93705c23dfd3e0f9dad5fc2a059
2019-10-04 15:47:54 +02:00
Pau Espin 72dd6c9a4a ttcn3-pcu: Enable GSMTAP
Depends on recent commit adding RACH, AGCH and PCH gsmtap categories.

Depends: osmo-pcui.git I4d62f98801af1b0a290d3dd35bd213ccf3151035
Change-Id: I24782f5403266d29aea46ef1d94a431077b194b3
2019-09-30 19:56:21 +02:00
Pau Espin ae42e2e864 ttcn3-pcu: Enable logging color in osmo-pcu.log
Change-Id: I209b03e493bb6b047a46eadd80712259f1d1474d
2019-09-30 19:55:53 +02:00
Alexander Couzens 625b49fd01 sgsn: enable Iu tests
All related Iu patches has been merged.
Change-Id: Ic26bcabb8b5192c401ab0bcc6a88b29fa0d3d8da
2019-09-16 13:19:30 +00:00
Harald Welte e066f2a830 Add 'osmo-remsim-latest' container
Change-Id: If16d4038a3c9a0532ae3a59762c68e40c18a9236
2019-09-13 11:55:29 +00:00
Harald Welte 7c53be0412 support for dockerized osmo-resmim testsuite
Change-Id: I05090f408b04aae24c23978da831e9f844d723a3
2019-09-13 13:43:48 +02:00
Harald Welte 0d426bd8f5 add osmo-resmsim-master Docker container
this will be used in upcoming TTCN-3 tests for osmo-remsim

Change-Id: I8508441289455d0a2e3486a99ef09c85937de26f
2019-09-13 11:02:06 +00:00
Pau Espin 6b7cab9a47 ttcn3-ggsn: Disable echo-timer test when running against latest
Change-Id: I6657eefed00df96e3bcdca174a6ea0be1897b762
2019-08-23 19:19:37 +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
Pau Espin b1999827f5 Fix ttcn3-sgsn-latest (cs7 instance override)
Change-Id: Ie45fa7875b409c3955c26d333110c36453c276f9
2019-08-19 19:14:36 +02:00
Pau Espin d3e667989d ttcn3-sgsn: Disable not-yet available SGSN_Tests_Iu tests
Previous commit was merged without dependent tests from osmo-ttcn3-hacks
being yet present. Let's disable them until they are present.

Fixes: ca2ef84252
Change-Id: Icd7a3885bac7f8189272981d4fdac3f269e6adef
2019-08-19 18:07:46 +02:00
Alexander Couzens ca2ef84252 ttcn3-sgsn-master: add support for Iu
To support Iu tests, start osmo-stp when testing.

Depends-on: I66069e31c30d33934ad57cc2b8794f56ffd5c7d6 (osmo-ttcn3-hacks)
Change-Id: I4d6aef98832202652c5fe254105728430ba77119
2019-08-19 15:09:20 +00: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
Pau Espin f4b8b15fdb ttcn3-sgsn: Unifi osmo-sgsn.cfg's logging setup to resemble other projects
Change-Id: I89ba62be92557e35ed083dbc9a3624ff0fb6cbd3
2019-08-12 12:11:39 +02:00
Daniel Willmann c9c116d9b3 osmo-hnbgw-master: Bind Iuh socket to 0.0.0.0
Change-Id: I117fb440beaf4fcecde705e1e6d7e0d43e1226e4
Related: OS#2589
2019-07-29 11:49:46 +02:00
Oliver Smith ef8b48516e debian-repo-install-test: systemctl status -n 200
Show up to 200 log lines instead of the default (10).

Related: OS#3369
Change-Id: Ic72dbf1b4c59a259139187b98e74211d57534dc2
2019-07-26 08:43:52 +02:00
Oliver Smith ee01cc5548 debian-repo-install-test: add fixed services
Enable test of systemd services for osmo-sgsn, osmo-pcu, osmo-hnbgw and
osmo-bts-virtual. Add issue ID to failing osmo-ctrl2cgi and
osmo-trap2cgi services.

Depends: Id892e1f4ab2daabbe9824b819b5fed985373b97a (osmo-sgsn)
Depends: Ie8001611756b661ff1871508c6248b2e990ba1d7 (osmo-bsc)
Depends: I354140f014854f1755b649e40a65e5d88b99c0ec (osmo-iuh)
Related: OS#3369
Change-Id: I4e182b396e1a2e36a73384233b1a38a70c7cd5d9
2019-07-25 06:35:31 +00:00
Daniel Willmann 533fef5815 regen_doc: Change IP network to an unused subnet
Previously we were using 178.18.12.0/24 which could have conflicted with
the osmo-bsc sccplite TTCN3 tests.

Change-Id: Ib5ab391ebb21ce2455fbb1ae47dd01ed53cd2e41
2019-07-24 18:05:02 +02:00
Daniel Willmann ae82b3fad2 osmo-cn-latest: Let osmo-hlr upgrade the db scheme
Change-Id: I9171d908de03bf0de7cb7590c901c4ce0759b8c0
2019-07-24 17:35:04 +02:00
Daniel Willmann de77537151 osmo-sgsn-master: Enable Iu support
So far the SGSN master image is built without Iu support.
osmo-sgsn-latest is using the built debian packages which enable Iu
support, so it's not an issue there.

Change-Id: Ib9c2e96dc7309f7fcbd563d656b64d37f2599f7b
2019-07-24 13:44:02 +00:00
Oliver Smith 4345224fa0 debian-repo-install-test: run systemd services
Run systemd services of Osmocom programs, to check if any are not
starting properly. Use a whitelist to determine which services must
start up, because some are currently broken.

Modify the docker run command to support changing the CPU scheduling
policy/priority in systemd service files (used by osmo-bts).

Related: OS#3369
Change-Id: Ie6385f85560fefa7e7c9dca72cb5e2e914d4507a
2019-07-23 14:10:53 +02:00
Oliver Smith 29825bbc71 debian-repo-install-test: kill already running
The container grows heavily in size as the test runs, so make sure to
always kill existing ones (from stopped jobs) before starting a new
one. In order to do that, do not use $BUILD_TAG as container name,
which changes with every new jenkins run.

Related: OS#3369
Change-Id: Ide795092b656c9f0eb92a075d8f662944089019f
2019-07-23 14:10:53 +02:00
Oliver Smith 380d49dbd0 debian-repo-install-test: add docker container
Add own container with systemd, so we can (in a follow-up commit) run
the Osmocom systemd services in this test job. Rewrite the
"interactive shell" logic to support the new systemd docker container,
and enable it with an INTERACTIVE environment variable instead of
hardcoding 'interactive="true"' in the script. While at it, move the
Repository.key install to the Dockerfile so it works more like the other
docker containers we have.

Related: OS#3369
Change-Id: I0348f65a2ac184ba6b001e5130dfc8124e657367
2019-07-23 12:09:53 +00:00
Daniel Willmann b1abc29b7c osmo-nitb-master: Include only one access-list in config
Each access list will have their own counters. Have only one in the
config so the script generating the counter documentation doesn't repeat
itself.

Change-Id: I01b6e5af9cf84cf1b8d313ac47ab6b77fc598f4c
2019-07-18 20:44:31 +02:00
Alexander Couzens c034da0547 osmocom-bb-host-master: install python-enum as fake_trx dependency
62825cc8eb4e26d58d32a0af72b17256b185af61 (osmocom-bb)
started to use the python module enum which not part of the standard
libary of python 2.

Change-Id: I70b7f1b43a1e121114a924c09614d6eddc801881
2019-07-11 15:37:41 +02: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
Eric Wild ca27dffea7 clean up the net and attached containers to ensure reliable test starts
We can't create the net if it exists, and it can't be removed until all
attached containers are dead, so ensure this is the case upon net
creation. This fixes test failures due to stale nets and half-killed
test runs.

Change-Id: Id6d13b233ebfd808d8dfe83b6d1d1ba20c3392c8
2019-07-05 15:16:17 +02:00
Oliver Smith f9a889e29d debian-stretch-build-dist: new Dockerfile
Provide all build dependencies needed to pass ./configure of most
Osmocom repositories. This will be used to run osmo-release-tarballs.sh
in jenkins.

Related: OS#3870
Change-Id: I991fe41a1f55ccd6a66815ec3d7f239850397d9a
2019-07-02 13:19:39 +02:00
Pau Espin 2bd38c7846 ggsn: Set correct name for osmo-ggsn log file
Change-Id: I65803bdd4d2bcd79c690841bfc3cc62c8260289d
2019-06-30 11:55:11 +00:00
Oliver Smith 7721e142dc ttcn3-mgw-test-latest: disable conn_timeout_test
Depends: I8bbf15baa45679d5812a5a9184520ef9b9e73bba (osmo-ttcn3-hacks)
Change-Id: I05ff77246462ba90e8704969e0982662027ad630
2019-06-28 11:22:02 +02:00
Oliver Smith 0436d95f2e regen_doc: check OSMO_INTERACT_VTY, fix default
Change default from osmo-interact-vty.py to osmo_interact_vty.py, which
is the name of the script in osmo-python-tests.git.

Check if that script is in PATH before building and running the docker
container.

Change-Id: I763c7379b710160e0155f1fde091137754141335
2019-06-27 09:57:01 +02:00
Daniel Willmann b39b785fdf Have only one bts/bsc configured in osmo-bsc and bscnat
The way our counter reporting works is that each counter group is
reported even if the same one exists multiple times. To avoid that
change the default config (used by regen_doc.sh) to only configure one
bts / bsc.

Change-Id: I57468d983580b5ed4f15961ac1eac9bed9096556
Related: OS#1700
2019-06-24 14:12:01 +00:00
Daniel Willmann 3c9fd3bef8 osmo-sgsn-master: Bind to localhost instead of a specific IP by default
This does not break ttcn3-sgsn-test since it uses a custom config file
with the correct IPs.

Change-Id: I2a922139c50d06217e5e6105ea65bf673daa10a8
Related: OS#1700
2019-06-24 14:12:01 +00:00