Project

General

Profile

Actions

Bug #21329

closed

rados gateway multi-site failed to sync

Added by hoan nv over 6 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi all.

I config multi-site rados gateway use this guide.

http://docs.ceph.com/docs/master/radosgw/multisite/

After config, status of master node.

root@hoannv-ceph-luminous-1:/etc/ceph# radosgw-admin sync status
realm 07966f39-05f8-4da3-820e-15864dda3ca9 (movies)
zonegroup db34009a-7776-46ae-b94f-e81455254df3 (vczone)
zone f5e02a6f-be13-414d-914f-8690daad5710 (vczone-nps)
metadata sync no sync (zone is master)
2017-09-09 09:44:18.498364 7f08dda9dcc0 0 data sync: ERROR: failed to fetch datalog info
data sync source: d5cef7a6-c5a1-4f12-af87-6bf598fd2491 (vczone-ntl)
failed to retrieve sync info: (13) Permission denied

secondary node sync status

root@hoannv-ceph-luminous-1-zone-2:/etc/ceph# radosgw-admin sync status
realm 07966f39-05f8-4da3-820e-15864dda3ca9 (movies)
zonegroup db34009a-7776-46ae-b94f-e81455254df3 (vczone)
zone d5cef7a6-c5a1-4f12-af87-6bf598fd2491 (vczone-ntl)
metadata sync syncing
full sync: 0/64 shards
incremental sync: 64/64 shards
metadata is caught up with master
data sync source: f5e02a6f-be13-414d-914f-8690daad5710 (vczone-nps)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
data is caught up with source

This is all my command.

--- master zone
radosgw-admin realm create --rgw-realm=movies --default
radosgw-admin zonegroup create --rgw-zonegroup=vczone --endpoints=http://10.5.8.88:80 --rgw-realm=movies --master --default
radosgw-admin zone create --rgw-zonegroup=vczone --rgw-zone=vczone-nps --endpoints=http://10.5.8.88:80

radosgw-admin zonegroup remove --rgw-zonegroup=default --rgw-zone=default
radosgw-admin period update --commit
radosgw-admin zone delete --rgw-zone=default
radosgw-admin period update --commit
radosgw-admin zonegroup delete --rgw-zonegroup=default
radosgw-admin period update --commit

for i in default.rgw.control default.rgw.meta default.rgw.log;do rados rmpool ${i} ${i} --yes-i-really-really-mean-it;done

radosgw-admin user create --uid="synchronization-user" --display-name="Synchronization User" --system

radosgw-admin period update --commit

systemctl restart ceph-radosgw@rgw.`hostname -s`

--- secondary zone
radosgw-admin realm pull --url=http://10.5.8.88:80 --access-key=26P94IXSBGX49BH9VU3X --secret=2UtPPWpzBexNf4SicMjyf2phNjQvEidH5JefQAWC
radosgw-admin period pull --url=http://10.5.8.88:80 --access-key=26P94IXSBGX49BH9VU3X --secret=2UtPPWpzBexNf4SicMjyf2phNjQvEidH5JefQAWC
radosgw-admin zone create --rgw-zonegroup=vczone --rgw-zone=vczone-ntl --endpoints=http://10.5.8.74:80 --access-key=26P94IXSBGX49BH9VU3X --secret=2UtPPWpzBexNf4SicMjyf2phNjQvEidH5JefQAWC

for i in default.rgw.control default.rgw.meta default.rgw.log;do rados rmpool ${i} ${i} --yes-i-really-really-mean-it;done

radosgw-admin period update --commit

systemctl restart ceph-radosgw@rgw.`hostname -s`

Log in attachment file.

Thanks.


Files

ceph-client.rgw.zip (574 KB) ceph-client.rgw.zip hoan nv, 09/09/2017 02:56 AM
Actions

Also available in: Atom PDF