From 9d4104f45b355f12bb75f6bf253fa113f71fb49b Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 13 Aug 2013 12:43:21 +0200 Subject: [PATCH] do not check the jobid if check-locks is False Because it relies on the lock server which is presumably not available since check-locks was set to False. It matters when using teuthology on a minimal installation. http://tracker.ceph.com/issues/5946 fixes #5946 Signed-off-by: Loic Dachary --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 33bdc4ec0..958cb64ea 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -36,7 +36,7 @@ def get_testdir(ctx): # check if a jobid exists in the machine status for all our targets # and if its the same jobid, use that as the subdir for the test - if not checked_jobid: + if not checked_jobid and ctx.config.get('check-locks') != False: jobids = {} for machine in ctx.config['targets'].iterkeys(): status = lockstatus.get_status(ctx, machine) -- 2.47.3