Commit d1e8fd6d authored by Leigh B Stoller's avatar Leigh B Stoller

When rebooting a shared host, using a much longer pingwait to avoid

apod'ing the host while it is still stopping and saving containers.
parent dc2f8d02
......@@ -872,7 +872,11 @@ sub RebootNode {
# We wait a while for the node to stop responding to pings, and if it never
# goes silent, whack it with a bigger stick.
my $wtime = ($prepare ? $PREPAREWAIT : $PINGWAIT);
# We need to give shared hosts a chance to stop their containers.
# The standard pingwait is too small.
my $wtime = ($prepare ||
$nodeobject->sharing_mode() ? $PREPAREWAIT : $PINGWAIT);
info("$pc: waiting ${wtime}s for reboot");
if (WaitTillDead($pc, $wtime) == 0) {
info("$pc: rebooted");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment