From: Sage Weil Date: Tue, 16 Nov 2021 16:54:56 +0000 (-0600) Subject: contextutil: add sleep-on-error X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=739e9312cd040bc7ac2922a60cf4be911dae3113;p=teuthology.git contextutil: add sleep-on-error Signed-off-by: Sage Weil --- 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()