]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/kernel: after reboot, do not try to reconnect immediately 1413/head
authorNathan Cutler <ncutler@suse.com>
Tue, 18 Feb 2020 20:01:17 +0000 (21:01 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 18 Feb 2020 20:01:17 +0000 (21:01 +0100)
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 <ncutler@suse.com>
teuthology/task/kernel.py

index 7ddf65557c741c55dc3fe2199b7a6837e3e10b19..22a12e0199147c75e0ebb0f2024de775e5dff1a7 100644 (file)
@@ -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)