mirror of https://github.com/sipwise/ec2-tools.git
This is supposed to fix the hanging SSH connection when triggering the reboot: | jenkins@jenkins-slave7:~$ ssh -o ServerAliveInterval=5 -o ServerAliveCountMax=1 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i [...] sudo reboot -f | [...] | Rebooting. | Timeout, server ec2-[...].eu-west-1.compute.amazonaws.com not responding. Without ServerAliveInterval + ServerAliveCountMax options the session might get stuck at "Rebooting", timing out only after 2 hours at worst (which is the TCP keepalive default timeout, see /proc/sys/net/ipv4/tcp_keepalive_time). Also drop the force option of reboot, which is causing troubles on sysv systems. The ssh process isn't terminated cleanly then, but ssh is running into the TCP keepalive timeout then. It seems also our systemd backport with the async reboot/halt/poweroff patch works fine, while with the "-f" option it's failing similar to the sysv situation. Change-Id: I3c2c36234d6282f96073ef558fe287d0ac3fa192changes/41/21041/2
parent
f49ba9a7b0
commit
87305d49ef
Loading…
Reference in new issue