aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-03 15:20:50 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-03 15:36:39 +0200
commitf60efb528ce03e0fa3209963c5d7bcff61689381 (patch)
treec85d3fcc51c75b9661a01967990d05e28cf0fcc8
parent6afa4ce698b1e5b32c213970cd07441c14fefc5a (diff)
OsmoGSMTester: tweak sysmobts: systemctl, ssh, limits, reboot
Simpler systemctl rule to disable stock services. Fix the limits config, which was not the right way for sysmoBTS. SSH access: apparently no need to create an ssh key at all, login is permitted right away. Add hint to reboot at the right time. Change-Id: I8e686383318ee2eece908a4e690e5061ade0cd02
-rw-r--r--OsmoGSMTester/chapters/install.adoc49
1 files changed, 20 insertions, 29 deletions
diff --git a/OsmoGSMTester/chapters/install.adoc b/OsmoGSMTester/chapters/install.adoc
index 9900e6b..41c85e4 100644
--- a/OsmoGSMTester/chapters/install.adoc
+++ b/OsmoGSMTester/chapters/install.adoc
@@ -530,10 +530,7 @@ To use the SysmoBTS in the osmo-gsm-tester, the following systemd services must
be disabled:
----
-systemctl mask osmo-nitb
-systemctl mask sysmobts
-systemctl mask sysmopcu
-systemctl mask sysmobts-mgr
+systemctl mask osmo-nitb sysmobts sysmopcu sysmobts-mgr
----
This stops the stock setup keeping the BTS in operation and hence allows the
@@ -563,46 +560,40 @@ iface eth0 inet static
You may set the name server in '/etc/resolve.conf' (most likely to the IP of
the gateway), but this is not really needed by the osmo-gsm-tester.
-==== SSH Access
-
-Copy an SSH public key from the system/user that runs the osmo-gsm-tester,
-presumably user 'jenkins' on the *main unit* (not from the jenkins master!), to
-the 'authorized_keys' file of user 'root' on the SysmoBTS.
+==== Allow Core Files
-If the 'jenkins' user on the *main unit* has no key pair yet, generate one
-first, with an empty passphrase:
+In case a binary run for the test crashes, a core file of the crash should be
+written. This requires a limits rule. Append a line to /etc/limits like:
----
-ssh jenkins@my_main_unit
-ssh-keygen
+ssh root@10.42.42.114
+echo "* C16384" >> /etc/limits
----
-Then copy the public key to the SysmoBTS:
+==== Reboot
-----
-ssh jenkins@my_main_unit
-cat ~/.ssh/id_rsa.pub
-# copy this public key
-----
+Reboot the BTS and make sure that the IP address for eth0 is now indeed
+10.42.42.114, and that no osmo* programs are running.
----
-sysmobts=root@10.42.42.114
-ssh $sysmobts
-cat id_rsa.pub >> ~/.ssh/authorized_keys
-# paste above public key and hit Ctrl-D
+ip a
+ps w | grep osmo
----
-==== Allow Core Files
+==== SSH Access
-In case a binary run for the test crashes, a core file of the crash should be
-written. This requires a limit rule. Copy the following config file from the
-osmo-gsm-tester source tree to the SysmoBTS:
+Make sure that the jenkins user on the main unit is able to login on the
+sysmoBTS, possibly erasing outdated host keys after a new rootfs was loaded:
+
+On the main unit, for example do:
----
-sysmobts=root@10.42.42.114
-scp install/osmo-gsm-tester-limits.conf $sysmobts:/etc/security/limits.d/
+su - jenkins
+ssh root@10.42.42.114
----
+Fix any problems until you get a login on the sysmoBTS.
+
[[hardware_modems]]
=== Modems