Commit Graph

58 Commits

Author SHA1 Message Date
Max b2c7d0ab32 Set working directory in systemd service file
By default systemd will execute service with root directory (or home directory for user instance) which might result in
attempts to create files in unexpected place. Let's set it to 'osmocom' subdir of state directory (/var/lib for system instance) instead.

Related: OS#4821
Change-Id: I5bf2991d8b6507337b864f4d3c43448e54633f37
2022-09-05 13:04:56 +00:00
Pau Espin abbb8bbbc4 Bump version: 1.8.0.228-6941-dirty → 1.9.0
Change-Id: I6c955cbfdfeeef107e33aceb1db31f680d062c6d
2022-06-29 11:18:10 +02:00
Harald Welte 67851f3562 convert README to README.md; expand on all fronts
This brings our README in line with the various other osmo-*
projects such as osmo-bts:

* use markdown formatting
* links to mailing list, documentation, git repo, ...
* reference the method of contribution + code review

Change-Id: I201bf47550a8fea500925205e0de1060d58d6136
2022-06-18 13:34:46 +02:00
Oliver Smith aa6404f3f8 abis_nm: add bts model features to reported ones
As pointed out in code review, for nanobts we need to be able to combine
the reported features with a list of features we assume that the bts
model supports. This is because the enum of features is based on what
nanobts is able to report, but was extended for osmo-bts.

Related: SYS#5922, OS#5538
Change-Id: I7bdbf28c148877275048e070dce7f503ca5e6226
2022-05-02 15:14:05 +02:00
Oliver Smith f5183911c8 contrib/jenkins.sh: check osmo_bts_has_feature use
Make sure we don't check against bts->model->features instead of
bts->features by accident.

Related: SYS#5922, OS#5538
Change-Id: I47eef4978aaf9e20fc00a3ca029568671bd09d8d
2022-04-26 12:06:47 +00:00
Oliver Smith 88c13cf4cc contrib/osmo-bsc.spec.in: fix 4trx example paths
The paths were wrong in my previous attempt, add the proper paths now.
I've verified that this file builds, and adjusted the current nightly
rpm spec uploaded to OBS with this change manually this time so it
doesn't block.

Fix for:
  File not found: /home/abuild/rpmbuild/BUILDROOT/osmo-bsc-1.8.0.90.e0187.202204061142-1.1.x86_64/etc/osmocom/osmo-bsc-4trx-fh.confmerge
  File not found: /home/abuild/rpmbuild/BUILDROOT/osmo-bsc-1.8.0.90.e0187.202204061142-1.1.x86_64/etc/osmocom/osmo-bsc-4trx.cfg

Fixes: e0187bc3 ("contrib/osmo-bsc.spec.in: add new config files")
Change-Id: I92a7d85b64a9659db7ef71af5b00110b582dc4d9
2022-04-06 14:48:22 +02:00
Oliver Smith e0187bc3bb contrib/osmo-bsc.spec.in: add new config files
Fix for:
  Installed (but unpackaged) file(s) found:
  /usr/share/doc/osmo-bsc/examples/osmo-bsc/osmo-bsc-4trx-fh.confmerge
  /usr/share/doc/osmo-bsc/examples/osmo-bsc/osmo-bsc-4trx.cfg

Change-Id: Ie6c68681e5e68f4aa071fe4cee8f49040a4463e6
2022-04-06 11:28:39 +02:00
Pau Espin 9cf719889d Bump version: 1.7.0.359-d13ef-dirty → 1.8.0
Change-Id: Ibd4f22f268aa5ec3c1b7839e334ffad69f2e50a9
2021-11-16 17:21:59 +01:00
Pau Espin 3a3b1c1ff5 jenkins.sh: Fix typo
Change-Id: I80add059bd41cf385de1981bddd5c35b1d19bf57
2021-10-20 19:47:48 +02:00
Harald Welte 0ed69da597 remove obsolete dependency on libosmo-sccp
We only use libosmo-sigtran these days, so we can remove the depdency
to the old libosmo-sccp from osmo-bsc.  We don't use LIBOSMO_SCCP_*
variables in any Makefile.am, nor do we #include <osmocom/sccp/...>
anywhere [anymore].

Change-Id: Ie478016ffb6e767ba10968c1ee2ab98db15a45a3
Related: OS#2601
2021-02-23 20:18:50 +01:00
Pau Espin 6505f692d4 Bump version: 1.6.0.558-f5d07-dirty → 1.7.0
Change-Id: I0afcb06f8a7466f98cac26ff939a3813d4add1cc
2021-02-23 18:43:04 +01:00
Oliver Smith 120910c882 contrib/jenkins: don't build osmo-gsm-manuals
Related: OS#4912
Change-Id: If655798bb47c332f7decb74ed19524b3014f69b4
2021-01-14 14:58:50 +00:00
Pau Espin 8ab883b9b6 contrib/jenkins: Enable parallel make in make distcheck
Change-Id: I8489de493a9f653250d362250b6f7b31277c7e23
Related: OS#4421
2020-10-12 19:39:40 +02:00
Harald Welte 01eedbfd6c osmo-bsc.spec.in: Add missing directories to package
CentOS is happy with the spec file as-is, but OpenSuSE is more strict:

[   62s] osmo-bsc-1.6.0.191.bd5b-lp152.1.1.x86_64.rpm: directories not owned by a package:
[   62s]  - /usr/share/doc/packages/osmo-bsc/examples/osmo-bsc/ericsson
[   62s]  - /usr/share/doc/packages/osmo-bsc/examples/osmo-bsc/nokia
[   62s]  - /usr/share/doc/packages/osmo-bsc/examples/osmo-bsc/siemens

Change-Id: I40ad5d38b968db847cf5f733f82163ecac1151e0
2020-07-19 12:48:00 +02:00
Harald Welte 6b23d71832 osmo-bsc.spec.in: Package E1 config files
This resolves:

[  272s] error: Installed (but unpackaged) file(s) found:
[  272s]    /usr/share/doc/packages/osmo-bsc/examples/osmo-bsc/ericsson/osmo-bsc.rbs2308.cfg
[  272s]    /usr/share/doc/packages/osmo-bsc/examples/osmo-bsc/nokia/osmo-bsc.insite.cfg
[  272s]    /usr/share/doc/packages/osmo-bsc/examples/osmo-bsc/siemens/osmo-bsc.bs11.cfg

Change-Id: I07329564152d6b4314f1ed90a221478e2d765b47
2020-07-17 13:26:44 +02:00
Harald Welte e174c05b65 osmo-bsc.spec.in: Use %config(noreplace) to retain current config file
Change-Id: Icba90f52c40860262de9a4d5aebd418ddafde8d8
2020-06-24 05:26:35 +00:00
Oliver Smith 700a5a384c contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build with
CentOS 8 etc.

Related: OS#4550
Change-Id: I4b87cb0d80bda7bbfda600310aee24a814f97f3f
2020-05-20 08:53:13 +00:00
Oliver Smith 8b8ad33fdd contrib: import RPM spec
Copy the RPM spec file from:
https://build.opensuse.org/project/show/home:mnhauke:osmocom:nightly

Related: OS#4550
Change-Id: Id0f7568953cbf55d4a2278cf088bb37af0d19d78
2020-05-19 17:08:27 +02:00
Oliver Smith 14c80fdb65 contrib/jenkins.sh: "maintainer-clean" after "publish"
Run "make maintainer-clean" after publishing manuals, not the other way
around. Otherwise jenkins.sh fails when running for the master branch,
because docs/manuals/Makefile gets deleted although it is still needed
to publish the manuals.

Related: OS#3047
Fixes: 471fd92170 ("contrib/jenkins.sh: run "make maintainer-clean"")
Change-Id: I8ba5369b0948b61c68f43d807312c52465119aa5
2019-07-11 09:33:26 +02:00
Oliver Smith 471fd92170 contrib/jenkins.sh: run "make maintainer-clean"
Related: OS#3047
Change-Id: I5c257e21376cdccd6e2f413c7df6dd8caef497f1
2019-07-11 03:38:13 +00:00
Oliver Smith 98483760e8 contrib: fix makedistcheck with disabled systemd
EXTRA_DIST files need to be distributed, no matter if the systemd option
is configured or not.

Change-Id: Ide5de9383a2a3b957d182dca1187f73dbf1ce982
2018-12-06 16:31:24 +00:00
Oliver Smith ab9a259cd2 contrib/jenkins.sh: build and publish manuals
Add new environment variables WITH_MANUALS and PUBLISH to control if
the manuals should be built and uploaded. Describe all environment vars
on top of the file.

When WITH_MANUALS is set, install osmo-gsm-manuals like any other
dependency and add --enable-manuals to the configure flags (for "make"
and "make distcheck"). Add the bin subdir of the installed files to
PATH, so osmo-gsm-manuals-check-depends can be used by ./configure.

Related: OS#3385
Change-Id: Ief6ce94013612a968183e82abef421f116ed37c3
2018-12-05 13:09:11 +01:00
Pau Espin d58ddb2c4e Install systemd services with autotools
Change-Id: I015ac3fbe5adc551b76bac5c15ad93d30d0d2b6e
2018-09-13 13:58:26 +00:00
Pau Espin 052364d906 contrib: osmo-bsc.service: Fix osmo-mgw.service dependency
Since a while ago, osmo-bsc works only with osmo-mgw.

Change-Id: If95d20db4d379b9632342f7e552237066124ac40
2018-03-23 15:44:19 +00:00
Pau Espin 6c4d01efd3 contrib: osmo-bsc.service: Update description
Change-Id: I99d02bd8bd5842580518b34865dd0cbd0433bf27
2018-03-23 15:44:19 +00:00
Pau Espin 835b02ab14 contrib: jenkins.sh: Add --enable-werror flag
Change-Id: Ife9ca2a5b835dfd6d03c981dcf0e48265eb861eb
2018-03-18 17:40:09 +00:00
Max f93b31a5a7 Remove obsolete ./configure option
The '--enable-vty-tests' is just alias to '--enable-external-tests'
anyway.

Change-Id: I9492d8e988b464aa41f572611cbf2461bb8be3eb
2018-01-02 12:53:11 +01:00
Max ad1e3cdd6c Migrate from OpenSSL to osmo_get_rand_id()
This avoids potential licensing incompatibility and makes integration of
Debian packaging patches easier.

The libosmocore version requirements are fine already but for jenkins
tests to pass we have to have Ic77866ce65acf524b768882c751a4f9c0635740b
merged into libosmocore master.

Change-Id: Ia57bf1300525cf3c247284fe966b1c415c2d53e2
Related: OS#1694
2017-12-27 11:10:59 +00:00
Max 09653a0a19 Enable sanitize for CI tests
Change-Id: I86f8f29dbe13869fa4a0ac1f55ff697a8975525b
2017-12-21 17:19:45 +01:00
Max f8dc526207 Remove unneeded .py scripts
The ipa.py has been moved to osmo-python-tests as osmo_ipa - use it for
vty and ctrl tests instead of local copy. The soap.py and twisted_ipa.py
are not BSC-specific: leftovers from repository split which are now
available in osmo-python-tests as well.

Change-Id: Ia4285b18b152b070c148228604d1e61a8adedba1
2017-12-19 18:08:46 +01:00
Neels Hofmeyr c752351c5c jenkins: use osmo-clean-workspace.sh before and after build
See osmo-ci change I2409b2928b4d7ebbd6c005097d4ad7337307dd93 for rationale.

Depends: I2409b2928b4d7ebbd6c005097d4ad7337307dd93
Change-Id: I9b6afb59f0a8037d1510a7fddb63927f10d653e5
2017-10-28 15:08:27 +00:00
Max 9cc704424a Further cleanup leftovers from BSC/MSC split
* drop unused header
* fix name of jenkins test
* remove dead code

Change-Id: I986904864741995910b6ba92173b9f7b1b03e2f1
2017-09-25 08:25:15 +00:00
Neels Hofmeyr 5282a81323 drop files unrelated to osmo-bsc
These either remain from openbsc.git or slipped in while applying recent
patches from openbsc.git and do not belong in osmo-bsc.

Empty out contrib: remove things that are either obviously unrelated to
osmo-bsc, or seem old and/or esoteric.

osmoappdesc.py: drop nitb_e1_configs (and some ws)

Change-Id: Ib20064f35e623d99c7d59496a3156e84b8a0d07a
2017-09-06 16:25:08 +02:00
Harald Welte 6b6ef6c340 configure.ac: Remove checks for libgtp + c-ares
Those are requirements of sgsn/gtphub and live in osmo-sgsn.git

Change-Id: I6054444aba84b37e5c05da065e1e73e5c8669205
2017-09-03 22:58:19 +02:00
Harald Welte 85a8398568 configure.ac: Remove --enable-iu
There is no Iu in a BSC, this was from old times with OsmoNITB.  This
configure option now lives in osmo-msc.git

Change-Id: I9cf1c430855fe8a59fea1cf0abb3242c38d45cea
2017-09-03 22:57:31 +02:00
Harald Welte 1fac899f30 contrib/jenkins.sh: MGCP is unconditional now
Change-Id: I88338b91eb09554c33c893d86fcaa3d6eb09a22b
2017-09-03 22:57:31 +02:00
Harald Welte 8d59bf26a8 configure.ac: remove smpp_mirror, which has no relation to a BSC
smpp_mirror is maintained in osmo-msc.git, so let's remove it
(and the associated libsmpp34 build requirement).

Change-Id: Ia7b242cc52cf261b1a5dd3c287da2868e1a2b9a8
2017-09-03 22:57:31 +02:00
Harald Welte 1861b55516 configure.ac: remove --enable-osmo-bsc, --enable-nat
This is the OsmoBSC project.  Disabling the build of the BSC would be
somewhat odd, so let's remove the option.

Also, OsmoBSC depends on libosmo-sccp now, so we must unconditionally
depend on it.  As a result, we can remove the --enable-nat option,
as this was only to avoid a mandatory libosmo-sccp requirement in
historical times.

Change-Id: Icfee8a904d33b7c13ab8d185d64fb5c2337d8640
2017-09-03 22:57:31 +02:00
Neels Hofmeyr 174e5dc1da jenkins: fix build: osmo-mgw from master, not pre_release
pre_release is gone, we need to build from master now.

Change-Id: I985274e48f310e6e38bb54c7e57db28f8e1a6833
2017-09-03 22:45:10 +02:00
Neels Hofmeyr becfc4cb1b move to osmo-mgw.git: osmo-bsc_mgcp and libmgcp as libosmo-legacy-mgcp
Rewire build and includes to libosmo-legacy-mgcp.

Drop osmo-bsc_mgcp and related python tests, now found in osmo-mgw.git.

libosmo-legacy-mgcp is installed from osmo-mgw, hence add the dependency to
jenkins.sh (so far using the pre_release branch).

Change-Id: Ic99d681759edce11564da62500c2aac5cf5fffe2
2017-08-30 14:09:31 +02:00
Philipp Maier 39f62bbcbf Implement AoIP, port to M3UA SIGTRAN (large addition and refactoring)
This was originally a long series of commits converging to the final result
seen in this patch. It does not make much sense to review the smaller steps'
trial and error, we need to review this entire change as a whole.

Implement AoIP in osmo-msc and osmo-bsc.

Change over to the new libosmo-sigtran API with support for proper
SCCP/M3UA/SCTP stacking, as mandated by 3GPP specifications for the IuCS and
IuPS interfaces.

From here on, a separate osmo-stp process is required for SCCP routing between
OsmoBSC / OsmoHNBGW <-> OsmoMSC / OsmoSGSN

jenkins.sh: build from libosmo-sccp and osmo-iuh master branches now for new
M3UA SIGTRAN.

Patch-by: pmaier, nhofmeyr, laforge
Change-Id: I5ae4e05ee7c57cad341ea5e86af37c1f6b0ffa77
2017-08-30 14:09:31 +02:00
Harald Welte 5f4c357d19 jenkins.sh: Proper error message if local environment isn't set up
Change-Id: I79c2302365824d9c8783dadfa378c8eaa07e2ee7
2017-08-27 03:52:45 +02:00
Neels Hofmeyr 33c5994d8b Use value string check from osmo-ci
Necessary since libosmocore I513835be2d931d0a931cdfc996f361a451bc1a15
removes the script from libosmocore/contrib.

Change-Id: I02d7e1c0151c687fd9341d21a09ca15cbf5a1938
2017-08-27 03:52:45 +02:00
Daniel Willmann 5b4eace845 contrib: Change systemd requirements so the services connect properly
Change-Id: Ib1b3c640ddd81927a60ee307c4b0cb90fd83eebe
2017-08-27 03:52:45 +02:00
Daniel Willmann 64f2323088 contrib: Add osmo-msc service file
Change-Id: Ifdaf4107167c84af8a616f4ee792d5a34495564b
2017-08-27 03:52:45 +02:00
Neels Hofmeyr 1ea43f8c1a jenkins: pass proper configure flags to make distcheck
Enable various components according to the build matrix during make distcheck.
Add python tests, osmo-bsc, nat, ...

Change-Id: Ic724cf61d44409337414dc58c8795896b4b97a8a
2017-08-27 03:52:44 +02:00
Neels Hofmeyr 5809e1ead9 fix make distcheck with python tests
- bscs.config needed by the vty tests was not picked up as a dist file, because
  its suffix is not 'cfg'. Rename to *.cfg. Apply this rename in
  vty_test_runner.py and osmo-bsc_nat.cfg.
- Remove restart counters after external tests, otherwise distcheck complains
  about uncleaned files.
- Add contrib/ipa.py to EXTRA_DIST, hence add a Makefile.am to contrib/.
  Otherwise the python tests cannot find that dependency.

Change-Id: I42b55cb1125099afc3a8e3f87c0e398426b2e2a9
2017-08-27 03:52:44 +02:00
Neels Hofmeyr 873ccd3cf3 jenkins: apply rename to osmo-msc in log marker
Change-Id: I8ca9a1a8bdb5b9615df5f19f0c1017cb9383f6ee
2017-08-27 03:52:43 +02:00
Neels Hofmeyr 218e4b4aa0 move openbsc/* to repos root
This is the first step in creating this repository from the legacy openbsc.git.

Like all other Osmocom repositories, keep the autoconf and automake files in
the repository root. openbsc.git has been the sole exception, which ends now.

Change-Id: I9c6f2a448d9cb1cc088cf1cf6918b69d7e69b4e7
2017-08-27 03:52:43 +02:00
Neels Hofmeyr 5ea6bfce56 jenkins: fix build of --enable-iu: use osmo-iuh tag 'old_sua'
We are building with libosmo-sccp tag 'old_sua' until the new sigtran has
been applied. Since osmo-iuh commit
  0f88c110093935305143987638e46dc6db304a3e
  "migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA"
osmo-iuh requires libosmo-sccp master. A similar 'old_sua' tag is in place in
osmo-iuh.git, to match libosmo-sccp 'old_sua'. Do that to fix the jenkins
build of --enable-iu.

Change-Id: I70f731db0b74ed48ae6dd713ed4c3247222ef0de
2017-08-27 03:52:43 +02:00