]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add optional 'use_existing_cluster' flag
authorZack Cerza <zack@cerza.org>
Wed, 20 Nov 2013 22:23:07 +0000 (16:23 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 20 Nov 2013 22:23:07 +0000 (16:23 -0600)
If this flag is present, skip a few unnecessary steps

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/run.py

index 4ec1f98a8bc049fc54da5af1dee62f700d26e6c6..e96a9df26137c449787a4f832fbebf422499916b 100644 (file)
@@ -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':