On Fri, Jan 25, 2019 at 02:50:46PM +0000, Ian Jackson wrote:
> When we `power on' with the ssh method, we actually run ssh reboot.
> 
> On some systems (notably, FreeBSD) the kernel does not simply reboot
> immediately even with the runes we provide here, ie for FreeBSD
>   reboot -nq
> Eg, I have seen reboots with several messages like this:
>   Jan 25 14:17:59.100044 Waiting (max 60 seconds) for system thread 
> `bufspacedaemon-2' to stop... done

So it seems like reboot -nq doesn't behave as expected...

> This can result in the ssh method failing spuriously, because the
> `power on' appears to complete while the host is still up in the
> previous environment.  In one of my test runs I saw an ssh to the host
> succeed, and print the uptime (of the existing environment), between
> the reboot command being issued and the host actually rebooting.
> 
> So, wait (up to just over a minute) until the host does not respond to
> ping.  (target_await_down runs ping -c 5.)
> 
> CC: Roger Pau Monné <roger....@citrix.com>
> Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>

Reviewed-by: Roger Pau Monné <roger....@citrix.com>

Thanks.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to