From d7be77628c5b94a9c56aa4e132e5f6667be49cf0 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Tue, 31 Jan 2012 08:05:36 -0800 Subject: [PATCH] Allow user to disable lock checking. The new plana hardware isn't in the old sepia lock database, and the machine pools are risky to merge as nothing in the software guarantees allocation from just one pool. This allows us to hand-allocate machines temporarily. --- teuthology/task/internal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 071d8e6f6f..e376066cb7 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -101,6 +101,9 @@ def save_config(ctx, config): yaml.safe_dump(ctx.config, f, default_flow_style=False) def check_lock(ctx, config): + if ctx.config.get('check-locks') == False: + log.info('Lock checking disabled.') + return log.info('Checking locks...') for machine in ctx.config['targets'].iterkeys(): status = lock.get_status(ctx, machine) -- 2.39.5