From: Shilpa Jagannath Date: Tue, 12 Jun 2018 08:31:48 +0000 (+0530) Subject: Fix compatibility with single cluster run X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d802652ccf9f72c35f15d07b643c530f446fab53;p=teuthology.git Fix compatibility with single cluster run --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 8bcc5c18f..9e094817e 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -436,7 +436,10 @@ class CephAnsible(Task): if re.search(r'all hosts have already failed', out.getvalue()): log.error("Failed during ceph-ansible execution") raise CephAnsibleError("Failed during ceph-ansible execution") - self.ready_cluster = self.ctx.cluster.only(lambda role: role.startswith(self.cluster_name)) + if self.cluster_name == 'ceph': + self.ready_cluster = self.ctx.cluster + else: + self.ready_cluster = self.ctx.cluster.only(lambda role: role.startswith(self.cluster_name)) log.info('Ready_cluster {}'.format(self.ready_cluster)) self._create_rbd_pool() self._fix_roles_map()