From: Tommi Virtanen Date: Tue, 31 Jan 2012 16:05:36 +0000 (-0800) Subject: Allow user to disable lock checking. X-Git-Tag: 1.1.0~2655 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d7be77628c5b94a9c56aa4e132e5f6667be49cf0;p=teuthology.git 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. --- 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)