From ee57f0952a68cd3ffa1c7421d4a9fce8caec869f Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 3 Jun 2017 15:20:50 +0200 Subject: 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 --- doc/manuals/chapters/install.adoc | 49 ++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 29 deletions(-) (limited to 'doc') diff --git a/doc/manuals/chapters/install.adoc b/doc/manuals/chapters/install.adoc index 9900e6b..41c85e4 100644 --- a/doc/manuals/chapters/install.adoc +++ b/doc/manuals/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 -- cgit v1.2.3