snapcore / spread

Spread - Convenient full-system test (task) distribution
GNU General Public License v3.0
99 stars 58 forks source link

lxd: restart sshd service instead of killing it #146

Closed Meulengracht closed 2 years ago

Meulengracht commented 2 years ago

When testing with spread through the lxd-backend, it works fine against focal images, however when switching to jammy images which has a different configuration of openssh-server, the default method of just killing the ssh daemon results in spread not being able to connect through ssh after executing the commands in tuneSsh(). It seems the ssh daemon does not restart again.

Instead of killing the daemon, I changed the command to reload the daemon instead. This results in spread being able to correctly connect to ssh again.