From 739e9312cd040bc7ac2922a60cf4be911dae3113 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 16 Nov 2021 10:54:56 -0600 Subject: [PATCH] contextutil: add sleep-on-error Signed-off-by: Sage Weil --- teuthology/contextutil.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teuthology/contextutil.py b/teuthology/contextutil.py index 57a0f08c86..04fcc01679 100644 --- a/teuthology/contextutil.py +++ b/teuthology/contextutil.py @@ -40,6 +40,9 @@ def nested(*managers): from teuthology.task import interactive log.warning('Saw failure, going into interactive mode...') interactive.task(ctx=config.ctx, config=None) + delay = 999999 + log.warning('Saw failure, sleeping for {delay} seconds') + time.sleep(delay) finally: while exits: exit = exits.pop() -- 2.39.5