From 89e8f2e89213c07f752f614c550322a5669f837c Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Tue, 19 Sep 2017 13:54:52 -0700 Subject: [PATCH] copy purge-cluster to top level dir for the playbook to work Signed-off-by: Vasu Kulkarni --- teuthology/task/ceph_ansible.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 03147b874..52eb2163c 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -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=[ -- 2.47.3