In cluster-data-sync.conf, if I use https,then it will show the error:

INFO:urllib3.connectionpool:Starting new HTTPS connection (1): s3.ceph71.com
ERROR:root:Could not retrieve region map from destination
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/radosgw_agent/cli.py", line 269, in 
main
    region_map = client.get_region_map(dest_conn)
  File "/usr/lib/python2.6/site-packages/radosgw_agent/client.py", line 391, in 
get_region_map
    region_map = request(connection, 'get', 'admin/config')
  File "/usr/lib/python2.6/site-packages/radosgw_agent/client.py", line 153, in 
request
    result = handler(url, params=params, headers=request.headers, data=data)
  File "/usr/lib/python2.6/site-packages/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 279, in 
request
    resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, 
cert=cert, proxies=proxies)
  File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 374, in 
send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests/adapters.py", line 213, in 
send
    raise SSLError(e)
SSLError: hostname 's3.ceph71.com' doesn't match u'ceph71'


If I use http, there is no error, and the log is
INFO:radosgw_agent.worker:finished processing shard 26
INFO:radosgw_agent.sync:27/128 items processed
INFO:radosgw_agent.worker:15413 is processing shard number 27
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:radosgw_agent.worker:finished processing shard 27
INFO:radosgw_agent.sync:28/128 items processed
INFO:radosgw_agent.worker:15413 is processing shard number 28
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph69.com
INFO:radosgw_agent.worker:syncing bucket "zhangyt6"
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com
INFO:urllib3.connectionpool:Starting new HTTP connection (1): s3.ceph71.com


I can see the sync of bucket but the sync is failed:
 INFO:radosgw_agent.worker:syncing bucket "zhangyt6"




Another question is that it will create a pool called .rgw.root  
automatically.Does it have some affect?


Thanks!





At 2014-04-10 00:40:15,"Craig Lewis" <cle...@centraldesktop.com> wrote:

On 4/9/2014 3:33 AM, wsnote wrote:

Now I can configure it but it seems make no sense.
The following is the Error info.


 [root@ceph69 ceph]# radosgw-agent -c /etc/ceph/cluster-data-sync.conf
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): s3.ceph71.com
ERROR:root:Could not retrieve region map from destination


This error means that radosgw-agent can't retrieve the region and zone maps 
from the slave zone.

In cluster-data-sync.conf, double check that the destination URL is correct, 
and that ceph69 can connect to that URL. 

Next verify dest_access_key and dest_secret_key are correct.  Compare them to 
radosgw-admin user show --name client.radosgw.us-east-1.  radosgw-admin uses 
those credentials to pull that data.  Before I started, I made sure that all of 
my secret keys did not have backslashes.

One of the issues I ran into was making sure I created everything in the zone 
RGW pools, not the default RGW pools.  Sometimes my users would end up in 
.users.uid, not .us.east-1.users.uid, because I forgot to add the --name 
parameter to the radosgw-admin commands.
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to