From: Nathan Cutler Date: Tue, 18 Feb 2020 20:01:17 +0000 (+0100) Subject: task/kernel: after reboot, do not try to reconnect immediately X-Git-Tag: 1.1.0~152^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1413%2Fhead;p=teuthology.git task/kernel: after reboot, do not try to reconnect immediately Do not try to reconnect immediately after triggering the reboot, because the reboot sequence might not have started yet (!) Fixes: https://tracker.ceph.com/issues/44187 Signed-off-by: Nathan Cutler --- diff --git a/teuthology/task/kernel.py b/teuthology/task/kernel.py index 7ddf65557..22a12e019 100644 --- a/teuthology/task/kernel.py +++ b/teuthology/task/kernel.py @@ -679,6 +679,10 @@ def wait_for_reboot(ctx, need_install, timeout, distro=False): :param timeout: number of second before we timeout. """ import time + # do not try to reconnect immediately after triggering the reboot, + # because the reboot sequence might not have started yet (!) -- + # see https://tracker.ceph.com/issues/44187 + time.sleep(30) starttime = time.time() while need_install: teuthology.reconnect(ctx, timeout)