]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Allow user to disable lock checking.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 31 Jan 2012 16:05:36 +0000 (08:05 -0800)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 31 Jan 2012 16:05:36 +0000 (08:05 -0800)
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

index 071d8e6f6f8a130968835aaaa78d53fd572d52df..e376066cb740670ecd17e60ab826e7225d9035c1 100644 (file)
@@ -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)