From: Zack Cerza Date: Wed, 20 Nov 2013 22:23:07 +0000 (-0600) Subject: Add optional 'use_existing_cluster' flag X-Git-Tag: v0.94.10~27^2^2~364^2~480 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8150d44d0af383510ab7c7bccde07d78a6a3fef;p=ceph.git Add optional 'use_existing_cluster' flag If this flag is present, skip a few unnecessary steps Signed-off-by: Zack Cerza --- diff --git a/teuthology/run.py b/teuthology/run.py index 4ec1f98a8bc0..e96a9df26137 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -135,9 +135,12 @@ def main(ctx): {'internal.check_lock': None}, {'internal.connect': None}, {'internal.check_conflict': None}, - {'internal.check_ceph_data': None}, - {'internal.vm_setup': None}, ]) + if not ctx.config.get('use_existing_cluster', False): + init_tasks.extend([ + {'internal.check_ceph_data': None}, + {'internal.vm_setup': None}, + ]) if 'kernel' in ctx.config: distro = get_distro(ctx) if distro == 'ubuntu':