]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
kernel: fix reboot into the new kernel on xenial 992/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 1 Dec 2016 15:36:42 +0000 (16:36 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 2 Dec 2016 15:26:04 +0000 (16:26 +0100)
commit2be276e714c4dbec652cbafbb23ea45e40cfdc96
tree7844be3ae2471b43176969c7b106e58c63d1a3a0
parentc9db5ed4828dd0e358d1c5dae2e5a9001a8cea5a
kernel: fix reboot into the new kernel on xenial

shutdown is a symlink to systemctl on xenial, and on "shutdown -r now"
network gets shut down before ssh has a chance to close gracefully.
There have been multiple complaints about this and some distantly
related fixes have made it into recent systemds [1].

This doesn't seem to happen on centos, probably because of different
systemd versions or sshd configuration, so this band-aid is for ubuntu
only.  "systemctl --no-block reboot" is nicer, but not available on
trusty.

[1] https://github.com/systemd/systemd/issues/2390

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
teuthology/task/kernel.py