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:
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,
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',