Now my configure is normal, but there are still some mistake. Bucket list can rsync, but object not. In the secondary zone, with secondary zone's key, I can't see the bucket list ;But with master zone's key, I can see the bucket list. The log is following: the master zone: Thu, 10 Apr 2014 09:35:31 GMT /admin/log 2014-04-10 17:35:31.184939 7f0ea79d8700 15 calculated digest=dffaFPagxbrKq4OIGUW37/p/LZ0= 2014-04-10 17:35:31.184941 7f0ea79d8700 15 auth_sign=dffaFPagxbrKq4OIGUW37/p/LZ0= 2014-04-10 17:35:31.184943 7f0ea79d8700 15 compare=0 2014-04-10 17:35:31.184945 7f0ea79d8700 20 system request 2014-04-10 17:35:31.184948 7f0ea79d8700 2 req 27796:0.000323::GET /admin/log:list_data_changes_log:reading permissions 2014-04-10 17:35:31.184950 7f0ea79d8700 2 req 27796:0.000326::GET /admin/log:list_data_changes_log:verifying op mask 2014-04-10 17:35:31.184952 7f0ea79d8700 20 required_mask= 0 user.op_mask=7 2014-04-10 17:35:31.184953 7f0ea79d8700 2 req 27796:0.000329::GET /admin/log:list_data_changes_log:verifying op permissions 2014-04-10 17:35:31.184956 7f0ea79d8700 2 overriding permissions due to system operation 2014-04-10 17:35:31.184957 7f0ea79d8700 2 req 27796:0.000333::GET /admin/log:list_data_changes_log:verifying op params 2014-04-10 17:35:31.184959 7f0ea79d8700 2 req 27796:0.000335::GET /admin/log:list_data_changes_log:executing 2014-04-10 17:35:31.186112 7f0ea79d8700 2 req 27796:0.001488::GET /admin/log:list_data_changes_log:http status=404 2014-04-10 17:35:31.186276 7f0ea79d8700 1 ====== req done req=0x1cf1b10 http_status=404 ======
The secondary zone: Thu, 10 Apr 2014 09:32:48 GMT /admin/replica_log 2014-04-10 17:32:49.388584 7fd6a17fb700 15 calculated digest=0ZQB/sBiIIsDLExsbzzmF9G02Js= 2014-04-10 17:32:49.388586 7fd6a17fb700 15 auth_sign=0ZQB/sBiIIsDLExsbzzmF9G02Js= 2014-04-10 17:32:49.388587 7fd6a17fb700 15 compare=0 2014-04-10 17:32:49.388589 7fd6a17fb700 20 system request 2014-04-10 17:32:49.388592 7fd6a17fb700 2 req 79527:0.000359::GET /admin/replica_log:replicadatalog_getbounds:reading permissions 2014-04-10 17:32:49.388596 7fd6a17fb700 2 req 79527:0.000363::GET /admin/replica_log:replicadatalog_getbounds:verifying op mask 2014-04-10 17:32:49.388617 7fd6a17fb700 20 required_mask= 0 user.op_mask=7 2014-04-10 17:32:49.388619 7fd6a17fb700 2 req 79527:0.000386::GET /admin/replica_log:replicadatalog_getbounds:verifying op permissions 2014-04-10 17:32:49.388622 7fd6a17fb700 2 overriding permissions due to system operation 2014-04-10 17:32:49.388624 7fd6a17fb700 2 req 79527:0.000391::GET /admin/replica_log:replicadatalog_getbounds:verifying op params 2014-04-10 17:32:49.388626 7fd6a17fb700 2 req 79527:0.000393::GET /admin/replica_log:replicadatalog_getbounds:executing 2014-04-10 17:32:49.389355 7fd6a17fb700 2 req 79527:0.001122::GET /admin/replica_log:replicadatalog_getbounds:http status=404 2014-04-10 17:32:49.389586 7fd6a17fb700 1 ====== req done req=0xcc69b0 http_status=404 ====== At 2014-04-10 09:40:07,wsnote <wsn...@163.com> wrote: 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