]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Disable running cm-ansible by default, FOG images have already
authorVasu Kulkarni <vasu@redhat.com>
Thu, 15 Mar 2018 00:06:34 +0000 (17:06 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Wed, 19 Sep 2018 19:37:02 +0000 (12:37 -0700)
run cm-ansible code and it would be redundant to run them again.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/run.py

index 42c301310e60bce132fb541158a4c254161a4b42..8054664441cceea943a4e5f86ed9576a27315030 100644 (file)
@@ -226,10 +226,11 @@ def get_initial_tasks(lock, config, machine_type):
             {'selinux': None},
             {'clock': None}
         ])
-    if 'run-cm-ansible' in config:
-        init_tasks.extend([
-             {'ansible.cephlab': None},
-        ])
+    # dont run cm-ansible by default unless requested in config
+    # nodes are reimaged by FOG and the images provided
+    # by FOG have already gone through cm-ansible run
+    if config.get('run-cm-ansible', False):
+        init_tasks.extend([{'ansible.cephlab': None}])
 
     if 'redhat' in config:
         init_tasks.extend([