]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
copy purge-cluster to top level dir for the playbook to work 1112/head
authorVasu Kulkarni <vasu@redhat.com>
Tue, 19 Sep 2017 20:54:52 +0000 (13:54 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 21 Sep 2017 21:40:39 +0000 (14:40 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py

index 03147b874b9de2fd2a61ff50c51f7f76738bc043..52eb2163ca64c0aa2f6eeb55272dc3d635ad600a 100644 (file)
@@ -185,11 +185,20 @@ class CephAnsible(Task):
             'ANSIBLE_STDOUT_CALLBACK=debug',
             'ansible-playbook', '-vv',
             '-e', 'ireallymeanit=yes',
-            '-i', 'inven.yml', 'infrastructure-playbooks/purge-cluster.yml'
+            '-i', 'inven.yml', 'purge-cluster.yml'
         ]
         log.debug("Running %s", args)
         str_args = ' '.join(args)
         installer_node = self.ceph_installer
+        # copy purge-cluster playbook from infra dir to top level dir
+        # as required by ceph-ansible
+        installer_node.run(
+            args=[
+                'cp',
+                run.Raw('~/ceph-ansible/infrastructure-playbooks/purge-cluster.yml'),
+                run.Raw('~/ceph-ansible/'),
+            ]
+        )
         if self.config.get('rhbuild'):
             installer_node.run(
                 args=[