clients = self.config.keys() # http://tracker.ceph.com/issues/20417
for client in clients:
client_config = self.config.get(client)
- if client_config is None:
- client_config = {}
if client_config is not None:
log.info('client %s - cloudtier config is -----------------%s ', client, client_config)
log.info('Finished Configuring rgw cloudtier ...')
- cluster_name, daemon_type, client_id = teuthology.split_role(client)
- client_with_id = daemon_type + '.' + client_id
- self.ctx.daemons.get_daemon('rgw', client_with_id, cluster_name).restart()
- log.info('restarted rgw daemon ...')
+ for client in clients:
+ cluster_name, daemon_type, client_id = teuthology.split_role(client)
+ client_with_id = daemon_type + '.' + client_id
+ self.ctx.daemons.get_daemon('rgw', client_with_id, cluster_name).restart()
+ log.info('restarted rgw daemon ...')
- (remote,) = self.ctx.cluster.only(client).remotes.keys()
- wait_for_radosgw(endpoint.url(), remote)
+ (remote,) = self.ctx.cluster.only(client).remotes.keys()
+ wait_for_radosgw(endpoint.url(), remote)
task = RGWCloudTier
return ret;
}
+ ldpp_dout(this, 10) << "Restore:: Processing restore entry of object(" << obj->get_key() << ") entry: " << entry << dendl;
target_placement.inherit_from(bucket->get_placement_rule());
auto& attrs = obj->get_attrs();
attr_iter = attrs.find(RGW_ATTR_STORAGE_CLASS);
if (attr_iter != attrs.end()) {
target_placement.storage_class = attr_iter->second.to_str();
+ } else {
+ ldpp_dout(this, -1) << __PRETTY_FUNCTION__ << ": ERROR: Attr RGW_ATTR_STORAGE_CLASS not found for object: " << obj->get_key() << dendl;
}
ret = driver->get_zone()->get_zonegroup().get_placement_tier(target_placement, &tier);
if (ret < 0) {
- ldpp_dout(this, -1) << __PRETTY_FUNCTION__ << ": ERROR: failed to fetch tier placement handle, ret = " << ret << dendl;
+ ldpp_dout(this, -1) << __PRETTY_FUNCTION__ << ": ERROR: failed to fetch tier placement handle, target_placement = " << target_placement << ", for zonegroup = " << driver->get_zone()->get_zonegroup().get_name() << ", ret = " << ret << dendl;
goto done;
} else {
ldpp_dout(this, 20) << __PRETTY_FUNCTION__ << ": getting tier placement handle"