From: Shilpa Jagannath Date: Thu, 13 Dec 2018 05:28:25 +0000 (+0530) Subject: removed cluster names X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=92515adb17e2da3afbc964da222ffdf6de8143a3;p=teuthology.git removed cluster names --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index ac356c73b..80fb7b3cb 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -147,9 +147,9 @@ class CephAnsible(Task): ansible_loc = self.each_cluster.only('installer.0') # self.each_cluster = self.each_cluster.only(lambda role: role.startswith(self.cluster_name)) # self.remove_cluster_prefix() - (ceph_first_mon,) = self.each_cluster.only( + (ceph_first_mon,) = self.ctx.cluster.only( misc.get_first_mon(self.ctx, - self.config)).remotes.iterkeys() + self.config, self.cluster_name)).remotes.iterkeys() if ansible_loc.remotes: (ceph_installer,) = ansible_loc.remotes.iterkeys() else: @@ -790,7 +790,7 @@ class CephAnsible(Task): self.each_cluster.remotes.update(new_remote_role) (ceph_first_mon,) = self.ctx.cluster.only( misc.get_first_mon(self.ctx, - self.config)).remotes.iterkeys() + self.config, self.cluster_name)).remotes.iterkeys() from tasks.ceph_manager import CephManager ctx.managers['ceph'] = CephManager( ceph_first_mon, @@ -829,7 +829,7 @@ class CephAnsible(Task): def fix_keyring_permission(self): clients_only = lambda role: role.startswith('client') - for client in self.ctx.cluster.only(clients_only).remotes.iterkeys(): + for client in self.each_cluster.only(clients_only).remotes.iterkeys(): client.run(args=[ 'sudo', 'chmod',