client=client)
region = ceph_config['rgw region']
zone = ceph_config['rgw zone']
- zone_info = dict(
- domain_root=ceph_config['rgw zone root pool'],
- )
+ zone_info = dict()
for key in ['rgw control pool', 'rgw gc pool', 'rgw log pool', 'rgw intent log pool',
'rgw usage log pool', 'rgw user keys pool', 'rgw user email pool',
- 'rgw user swift pool', 'rgw user uid pool']:
+ 'rgw user swift pool', 'rgw user uid pool', 'rgw domain root']:
new_key = key.split(' ',1)[1]
new_key = new_key.replace(' ', '_')
if ctx.radosgw_agent.procs:
for agent_client, c_config in ctx.radosgw_agent.config.iteritems():
dest_zone = zone_for_client(ctx, agent_client)
- sync_dest, sync_port = get_sync_agent(ctx, agent_client)
- log.debug('doing a sync from {host1} to {host2}'.format(
- host1=agent_client,host2=sync_dest))
- radosgw_agent_sync(ctx, sync_dest, sync_port)
+ sync_host, sync_port = get_sync_agent(ctx, agent_client)
+ log.debug('doing a sync via {host1}'.format(host1=sync_host))
+ radosgw_agent_sync(ctx, sync_host, sync_port)
def host_for_role(ctx, role):
for target, roles in zip(ctx.config['targets'].iterkeys(), ctx.config['roles']):