Project

General

Profile

Actions

Bug #58822

closed

rgw/syncpolicy: Unable to restrict sync to subset of zones

Added by Soumya Koduri about 1 year ago. Updated about 1 year ago.

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

0%

Source:
Tags:
multisite sync-policy
Backport:
reef
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Suppose there are three zones (zg1-1, zg1-2, zg1-3) in a zonegroup, out of which sync policy is created to allow sync between only zg1-1, zg1-2 as shown below -

#radosgw-admin sync info --group-id=zg1-policy1 {
"sources": [ {
"id": "zg1-pipe",
"source": {
"zone": "zg1-2",
"bucket": "*"
},
"dest": {
"zone": "zg1-1",
"bucket": "*"
},
"params": {
"source": {
"filter": {
"tags": []
}
},
"dest": {},
"priority": 0,
"mode": "system",
"user": ""
}
}
],
"dests": [ {
"id": "zg1-pipe",
"source": {
"zone": "zg1-1",
"bucket": "*"
},
"dest": {
"zone": "zg1-2",
"bucket": "*"
},
"params": {
"source": {
"filter": {
"tags": []
}
},
"dest": {},
"priority": 0,
"mode": "system",
"user": ""
}
}
],

Expected behavior- is that objects created in zg1-1, zg1-2 will synced among each other but will not be replicated to zg1-3. However that doesn't seem to be the case.

Observations: Objects created in zg1-1, zg1-2 are being copied to zg1-3 even though there is no policy configured allowing the same. Strangely, the objects created at zg1-3 are not being replicated to zg1-1 or zg1-2.

Actions #1

Updated by Casey Bodley about 1 year ago

  • Tags changed from rgw, to multisite sync-policy
Actions #2

Updated by Soumya Koduri about 1 year ago

  • Pull request ID set to 50397

This seem to have caused due to incorrect zone configuration. Due to a bug in test-rgw-multisite.sh, the endpoints created for zone2 are being added to zone3 as well resulting in zonegroup update issues for zone3.

Actions #3

Updated by Soumya Koduri about 1 year ago

  • Status changed from New to Resolved
  • Backport set to reef
Actions

Also available in: Atom PDF