Project

General

Profile

Actions

Bug #59106

open

rgw/archive: Sync logs are not trimmed

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

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
archive backport_processed
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The sync logs generated by the archive zone (which is not a source zone) are never trimmed. However this issue doesn't seem to arise for the other zones excluded (as source/dest) from the sync using the Sync Policy rules.

In addition, "bucket sync status" command incorrectly shows as 'shards behind' from the archive zone (though the sync is disabled).

[root@localhost build]# ./bin/radosgw-admin sync status  --rgw-zone=default
2023-03-20T09:11:13.085+0530 7f87fe43c9c0 -1 WARNING: all dangerous and experimental features are enabled.
2023-03-20T09:11:13.091+0530 7f87fe43c9c0 -1 WARNING: all dangerous and experimental features are enabled.
2023-03-20T09:11:13.091+0530 7f87fe43c9c0 -1 WARNING: all dangerous and experimental features are enabled.
realm d9011ad1-d38c-4335-a1f5-4693a119711a (multisite)
zonegroup d6fc5b57-b338-4748-a57a-fbb81f1ad8f1 (default)
zone 6d71e705-d117-4ee7-9a42-cf7d8294be69 (default)
current time 2023-03-20T03:41:13Z
zonegroup features enabled: resharding
metadata sync no sync (zone is master)
data sync source: cd15cd31-c06f-4fa8-beac-f1b044f4acf8 (archive-zone)
not syncing from zone
source: ec8571ac-fa84-44e9-976d-87e3d5f1833f (multisite-zone)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
data is caught up with source
[root@localhost build]#
[root@localhost build]# ./bin/radosgw-admin bucket sync status --bucket=bucket1 --rgw-zone=default
2023-03-20T09:10:01.864+0530 7f4a71a0d9c0 -1 WARNING: all dangerous and experimental features are enabled.
2023-03-20T09:10:01.870+0530 7f4a71a0d9c0 -1 WARNING: all dangerous and experimental features are enabled.
2023-03-20T09:10:01.871+0530 7f4a71a0d9c0 -1 WARNING: all dangerous and experimental features are enabled.
realm d9011ad1-d38c-4335-a1f5-4693a119711a (multisite)
zonegroup d6fc5b57-b338-4748-a57a-fbb81f1ad8f1 (default)
zone 6d71e705-d117-4ee7-9a42-cf7d8294be69 (default)
bucket :bucket1[6d71e705-d117-4ee7-9a42-cf7d8294be69.14193.1])
current time 2023-03-20T03:40:01Z
source zone cd15cd31-c06f-4fa8-beac-f1b044f4acf8 (archive-zone)
source bucket :bucket1[6d71e705-d117-4ee7-9a42-cf7d8294be69.14193.1])
incremental sync on 11 shards
bucket is behind on 2 shards
behind shards: [2,10]
source zone ec8571ac-fa84-44e9-976d-87e3d5f1833f (multisite-zone)
source bucket :bucket1[6d71e705-d117-4ee7-9a42-cf7d8294be69.14193.1])
incremental sync on 11 shards
bucket is caught up with source
[root@localhost build]#

Related issues 3 (1 open2 closed)

Copied to rgw - Backport #59672: pacific: rgw/archive: Sync logs are not trimmedRejectedSoumya KoduriActions
Copied to rgw - Backport #59673: reef: rgw/archive: Sync logs are not trimmedResolvedSoumya KoduriActions
Copied to rgw - Backport #59674: quincy: rgw/archive: Sync logs are not trimmedIn ProgressSoumya KoduriActions
Actions

Also available in: Atom PDF