Commit Graph

72 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 8f33ecf33b ansible: Wrap distro version number as string for ansible
Change-Id: I58591ee37c6ec1479778c3f90ed8004a7e2adf1e
2018-11-09 02:00:47 +00:00
Pau Espin 0c8e950e86 ansible: gsm-tester: Support power cycling multiple quad modems
uhubctl doesn't support acting on several hubs from same vendor at once.

Change-Id: I01e698c96240130ed6f632f82383f6020d2a3b81
2018-11-07 10:23:42 +00:00
Pau Espin da939e6cdf ansible: gsm-tester: prod has now 8 modems attached
4 EC20 modems were attached,  and the issue with only 3 out of the 4
showing up was fixed a while ago.

Change-Id: I0e0876fd5581e9eb56c498078ae8cd8c68ede5b5
2018-11-07 10:23:42 +00:00
Pau Espin 6691cf4dbb ansible: gsm-tester: Add IP addr for umtrx
Change-Id: I7fb65e3c337fc82c787e925fbbdf9eaf7569defd
2018-11-07 10:23:42 +00:00
Holger Hans Peter Freyther 7e5e3ece47 misc: Install patchelf to add/set an rpath if wanted
Change-Id: I6e4ad2e3855af7bcefc22d4190cc4e6f58581857
2018-11-06 13:14:05 +00:00
Holger Hans Peter Freyther f091b3e9e3 ansible: Skip liblimesuite-dev for debian 8.0
There is no installable liblimesuite-dev for Debian 8.0 and the
playbook execution fails. Install it for Debian 9.0 or later.

Change-Id: I0cee652b9d9703dc10b6105711a26f33cc2a3fda
2018-11-02 13:03:40 +00:00
Holger Hans Peter Freyther bcd7207c40 ansible: Future proof for debian releases after debian9.0
buster has a liblua5.3-dev, openjdk-8-jre-headless and the ttcn3
packages should work as well.

Change-Id: I76f516bbe503d15d9210ab14e7d9dd024e0ce72f
2018-11-02 13:03:29 +00:00
Pau Espin 0370864469 ansible: ogt: install udhcpc and iperf3
These tools are used during gprs data plane setup and performance
testing.

Change-Id: I5beddd74fca726c5ea2c9527836a9f50d92b4ce8
2018-10-26 19:25:53 +00:00
Pau Espin 8c47ea27c3 ansible: ogt: Add new local IP addr to be available for resources
Change-Id: I32574a935289fa208647d16663b77c0708c0572c
2018-10-26 19:25:53 +00:00
Pau Espin cee37b8004 ansible: ogt: Deploy osmo-gsm-tester_netns_exec.sh
Related: OS#2308
Change-Id: I587dd5630b211a906351f064c718f8f4c5fe6273
2018-10-26 19:25:53 +00:00
Harald Welte 24f2ef00b2 Add osmo-remsim to gerrit + master build verification
... which introduces a requirement for libcsv-dev in ansible.

Change-Id: I2ac65947ce9ecc071f774dc4df0f08c99c16c632
2018-10-15 02:06:22 +02:00
Pau Espin 52fb2808d6 ansible: Install liblimesuite-dev and setup limesdr rights in gsm-tester
Change-Id: I7fafae340221cac63e33bccabcce6fd8f4385514
2018-10-09 14:03:26 +02:00
Holger Hans Peter Freyther c52d3505f8 OsmocomBB: Add lua5.3 for the scriping interface
Change-Id: Ia3bd58b98d1e248a92ddd171fb16a23ca8e0b29d
2018-08-30 15:09:54 +00:00
Pau Espin fa24bc77ef ansible: osmocom_build_deps: Add cmake
cmake is required to build LimeSuite, and its not currently installed in
the build slave.

Change-Id: I1808a2394798cd11a0bee8f664c7d18fa71cd5b8
2018-08-27 19:33:12 +02:00
Pau Espin e0c094ddb4 ansible: gsm-tester: Add extra IP for LimeSDR
Change-Id: Ic0fddfc0eaf884cdd5436139675a5a19fafa96b9
2018-08-27 19:25:34 +02:00
Pau Espin eb844d933a ansible: osmo-gsm-tester-prod: Add DHCP lease for secondary muliTRX nanobts
Change-Id: I3967d7b4203f5361dc03074dcd82c870d60c8aac
2018-07-26 18:15:29 +02:00
Alexander Couzens c1c9052f11 ansible: add playbook setup-simtest
Change-Id: Iab74a2b3fc3148bce815b2dadd1fd683c4b64c44
2018-07-19 23:04:24 +02:00
Alexander Couzens d2cacbd784 ansible: osmocom-jenkins-slave: add var install_jenkins_utilities
To select if some utilities including qemu/debootstrap/fakeroot will be installed.
Usefull for small setups e.g. simtester

Change-Id: I72f4460b8550da191e74a44be0ee3eeb3b2d7769
2018-07-19 23:04:24 +02:00
Alexander Couzens 6330cf1d98 ansible: osmocom-jenkins-slave: debian.yml: don't install recommends
Pulls a lot of packages

Change-Id: I894455ea779ece84c403f768a1260a1cf2528389
2018-07-19 23:04:24 +02:00
Alexander Couzens 5f555dbb40 ansible: osmocom-jenkins-slave: move installing build + runtime deps into own file
For small nodes (e.g. simtester) the full blown packages are not required nor supported.
In this case only the jenkins user and the ssh keys will be setted up.

Change-Id: I469a8012b124516bfd9c4d4dd3a3fe0e1ff80bb6
2018-07-19 23:04:24 +02:00
Alexander Couzens 98c2d50040 ansible: osmocom-jenkins-slave: add variables to the README.md
Change-Id: I878ed30ee2f44d98635511011c17f0f0e986bcc9
2018-07-19 21:00:41 +00:00
Harald Welte 6866852c37 jobs: add master+gerrit verification job for gapk
Change-Id: Iedf3b43c164ae7e3e653820284c4d4ddaa545784
2018-07-03 15:24:25 +00:00
Pau Espin f82bc2a1c9 ansible: gsm-tester: Add IP addr for osmo-bts-octphy to bind to
Change-Id: I708960790e330a24c653f162b767d3b3ca4d145d
2018-07-02 17:08:06 +00:00
Pau Espin 6f5120ca37 ansible: gsm-tester: Assign IP addr in different range to nanobts
We currently use range around 10.42.42.1-10 for local dynamically
assigned IP addresses (osmo-msc, osmo-bsc, etc.).
The range 10.42.42.50-60 for local statically assigned IP addresses
(to run osmo-bts-trx sysmocell-5k for instance, where the other end
is cofigured with a static dst addr).
For remote addresses, we use IPs in the range 10.42.42.110-120.
Let's create a new range in 10.42.42.120-130 for remote addressess
assigned by udhcpd server.

nanobts assigned assdresses are moved to the latest group to
differentiate them easily and show that they are not IP addr used
locally.

Change-Id: I9eadb0329a670ce6c2254520d9c86bfbdc898b3a
2018-07-02 17:08:04 +00:00
Harald Welte 98cc650b48 ansible: Add various additional packages to osmocom-workstation
Change-Id: I9d22cd6e4d3a3c8c685362bb62cd2a6ef467c461
2018-06-13 11:12:18 +00:00
Harald Welte 1600f979e7 osmocom-workstatin: change default user to osmocom
Change-Id: I35da5f2276730c7f81d5a1c2e6878ea3e23bca3b
2018-06-13 11:12:18 +00:00
Harald Welte 3547a81e37 ansible: osmocom-workstation: Add user to 'docker' group
Change-Id: I43169dfb39525ffe16a3ed1cbf5360b47f9f8a00
2018-06-13 11:12:18 +00:00
Harald Welte 18b8307d8f ansible: osmocom-workstation: clone ttcn-3 deps
Change-Id: Ib0169c858c3c0610e49d01f1dafee5c725ddc7df
2018-06-13 11:12:18 +00:00
Harald Welte 03dcb21b4a ansible: Use SDK/toolchain for 2.3.4, not 2.3.2
Change-Id: Ia39284acce65c5779b71154662f3f55349a86960
2018-06-13 11:12:18 +00:00
Alexander Couzens feda39b8e7 ansible: gsm-tester: change production gsm_modems to 3
In the production setup, there are only 3 valid modems.
Moving the variable into the host_vars so they can have
different amount of modem between rnd & prod.

Change-Id: Ic51a14a339bb9be50504a27a724f6f428ee7304f
2018-06-12 16:17:27 +00:00
Alexander Couzens ecb756f37c anisble: gsm-tester: uhubctl: add "-n 1d50:4002"
uhubctl -p 123456 -a 1 is rejecting because uhubctl detects two hubs.
Selecting only one hub.

Fixes the error message:
    Error: changing port state for multiple hubs at once is not supported.
    Use -l to limit operation to one hub!

Change-Id: I2e3c248e4eaef39f18ff38d1055db6d552fc4d20
2018-06-12 16:17:06 +00:00
Alexander Couzens b3ce1d1f2d ansible: fix deprecation of "include:"
"include:" has been deprecated in favour of "include_tasks:".

Change-Id: I6e1bb11e9392f7da9ed554c37f9625daa0950308
2018-06-12 16:16:30 +00:00
Alexander Couzens e5182e1f69 ansible: fix deprecation of filter "| changed"
"| changed" filter will be removed in ansible 2.9

Change-Id: Idf11d54d60b78733ed212f04940cee15b3a55400
2018-06-12 16:16:28 +00:00
Harald Welte 6cce4c2d20 add "osmocom-workstation" role
this role can be used to provision developer workstations, which
includes a git clone of all osmocom git repositories as well as
development tools like valgrind, gdb, ccache, wireshark, ...

Change-Id: I1a943079470db97f41c9c38318feb0716daa7cd5
2018-06-10 15:27:08 +02:00
Alexander Couzens 5707b730f8 ansible: gsm-tester: fix apt_repository tasks
Mistyped filename and apt_repostory

Change-Id: Icc97d9d2355f8922853d6b21cb8a95f532347031
2018-06-07 14:57:43 +02:00
Alexander Couzens 9c8b13d2ad ansible: gsm-tester-bts: remove role prefix in names
The role is prefixed anyway by newer ansible's. No need
to manual add it

Change-Id: I4ef16b2e9ab594dd0f76baf43979e73b51282c14
2018-06-07 14:57:43 +02:00
Alexander Couzens da0788f89c ansible: setup-gsm-tester.yml: use role gsm-tester-bts
Change-Id: I7cf033605ad1da6c3ea887b5ba72507bcd6991c7
2018-06-07 14:57:43 +02:00
Alexander Couzens 22672f06d7 ansible: gsm-tester: add udev rule to allow jenkins to access sispm devices
Change-Id: Idd0426a8130046e7aacc02421440eb403bd88888
2018-06-07 14:57:43 +02:00
Alexander Couzens 1620014708 ansible: gsm-tester-network: start all network interfaces after adding new ones
Change-Id: I197dadb68cffeba4c451d2fbfe40075039a67cb8
2018-06-07 12:48:28 +00:00
Alexander Couzens b25b15d8bd ansible: gsm-tester: add missing python dependencies
Change-Id: I0871df95a968f8f9e9318882c5397a16cba1814a
2018-06-07 12:48:17 +00:00
Alexander Couzens 7c7b83c93e ansible: gsm-tester: only check once the apt freshness
Change-Id: I40462fed216b1c0844a41172001dd2aaf8a8d04c
2018-06-07 12:47:55 +00:00
Alexander Couzens 088d2d6bb7 ansible: udhcpd: add systemd service file
The udhcpd /etc/init.d/ script is racy and fails often.

Change-Id: Ie373119a902a001f093599e289cadb8b2d290668
Fixes: OS#3311
2018-06-07 12:47:44 +00:00
Alexander Couzens 4be1378a89 ansible: osmocom-jenkins-slave: install autoconf-archive
Required at least by osmo-sysmon.

Change-Id: I5c6536bfb68ffdda7ec7bf71f5d0efeb1cb77e61
2018-06-05 19:23:27 +02:00
Alexander Couzens 246fd550f0 README.md: mark the version bold
Some parts will fail if used with earlier version.

Change-Id: Iab002a51afc2cc60875696eff0cd538ff9a49eca
2018-06-05 11:55:39 +02:00
Pau Espin cd23e09f36 ansible: Document docker login step
This step requires manual interaction since a password will be asked.

Change-Id: I193c721490c115a17c2f6753b3b139d7dc33aa39
2018-05-25 12:16:09 +02:00
Alexander Couzens acfaecc008 ansible: add a simple README.md
Change-Id: I96057bb92faa8e3375c5bad20ef1536475807b67
2018-05-24 16:35:33 +02:00
Alexander Couzens 8508b81403 ansible: gsm-tester: add jenkins to the dialout group
To access tty*

Change-Id: Icc7b3fa9ca7c14360d78069d8d42e6039afda32b
2018-05-24 16:29:29 +02:00
Alexander Couzens c5dd87a811 ansible/setup-gsm-tester: add docker
Change-Id: Idfd96c4e3556b93ca85acb94a2176ec269a906d1
2018-05-24 16:23:23 +02:00
Alexander Couzens 68c3ca0203 osmocom-jenkins-slave: install graphiz
Change-Id: Iad1f10d057475ca15bc3104b5c97fa57e29db15e
2018-04-24 11:26:24 +02:00
Alexander Couzens b6bb7258a0 ansible: osmocom-jenkins-slave: fix crontab for fstrim
Change-Id: Ib6aae8d1d986346dc7bc0fc945bab6491fff4f3f
2018-04-16 16:30:24 +02:00