From: Patrick Donnelly Date: Sun, 30 Sep 2018 00:37:12 +0000 (-0700) Subject: qa: add timeout to cleaning up workunit sandbox X-Git-Tag: v14.0.1~147^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24275%2Fhead;p=ceph.git qa: add timeout to cleaning up workunit sandbox If there is a bug preventing rm from completing, the workunit will get stuck. Fixes: http://tracker.ceph.com/issues/36184 Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 79eb64e39a17..8c34aed2168b 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -410,7 +410,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir, ) if cleanup: args=['sudo', 'rm', '-rf', '--', scratch_tmp] - remote.run(logger=log.getChild(role), args=args) + remote.run(logger=log.getChild(role), args=args, timeout=(15*60)) finally: log.info('Stopping %s on %s...', tests, role) args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]