]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
removed cluster names
authorShilpa Jagannath <smanjara@redhat.com>
Thu, 13 Dec 2018 05:28:25 +0000 (10:58 +0530)
committerShilpa Jagannath <smanjara@redhat.com>
Thu, 13 Dec 2018 05:28:25 +0000 (10:58 +0530)
teuthology/task/ceph_ansible.py

index ac356c73b73afaa0dee539fbb5498a981a125e6b..80fb7b3cb1db2e01239c8f4c55f6ae2b197e32a9 100644 (file)
@@ -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',