Project

General

Profile

Bug #22062

rgw: multisite with jewel as master will not sync data

Added by Abhishek Lekshmanan about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/07/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

With a jewel rgw as the master zone, data doesn't sync as sync_from_all in period ends up as configured being false as it isn't present in master zone's period.

$ radosgw-admin sync status 
          realm bed4eae8-ce6c-4126-8b70-632a32f95833 (mulcl)
      zonegroup 2618ee34-0a93-419f-ac41-8c6ff33677c7 (site)
           zone aad80b74-2641-4ed5-82d7-34da12b4b7cc (az2)
  metadata sync syncing
                full sync: 0/64 shards
                incremental sync: 64/64 shards
                metadata is caught up with master
      data sync source: 046d47c6-90cd-43fc-991a-e6deb00b712c (az1)
                        not syncing from zone

Also explicitly modifying zone params with zone modify will not work as period commit will still revert to sync_from_all set to false.

$ radosgw-admin period get 
Sending period to new master zone 046d47c6-90cd-43fc-991a-e6deb00b712c
{
    "id": "222905ca-2a83-4ba4-8517-93d7e7da3497",
    "epoch": 26,
    "predecessor_uuid": "bb96da9a-b212-4d37-abcd-1f8dd382cd9b",
    "sync_status": [],
    "period_map": {
        "id": "222905ca-2a83-4ba4-8517-93d7e7da3497",
        "zonegroups": [
            {
                "id": "2618ee34-0a93-419f-ac41-8c6ff33677c7",
                "name": "multisite",
                "api_name": "multisitesite",
                "is_master": "true",
                "endpoints": [
                    "http://localhost:8001" 
                ],
                "hostnames": [],
                "hostnames_s3website": [],
                "master_zone": "046d47c6-90cd-43fc-991a-e6deb00b712c",
                "zones": [
                    {
                        "id": "046d47c6-90cd-43fc-991a-e6deb00b712c",
                        "name": "z1",
                        "endpoints": [
                            "http://localhost:8001" 
                        ],
                        "log_meta": "false",
                        "log_data": "true",
                        "bucket_index_max_shards": 0,
                        "read_only": "false",
                        "tier_type": "",
                        "sync_from_all": "false",
                        "sync_from": []
                    },
                    {
                        "id": "aad80b74-2641-4ed5-82d7-34da12b4b7cc",
                        "name": "z2",
                        "endpoints": [
                            "http://localhost:8002" 
                        ],
                        "log_meta": "false",
                        "log_data": "true",
                        "bucket_index_max_shards": 0,
                        "read_only": "false",
                        "tier_type": "",
                        "sync_from_all": "false",
                        "sync_from": []
                    }
                ],
                "placement_targets": [
                    {
                        "name": "default-placement",
                        "tags": []
                    }
                ],
                "default_placement": "default-placement",
                "realm_id": "bed4eae8-ce6c-4126-8b70-632a32f95833" 
            }
        ],
        "short_zone_ids": [
            {
                "key": "046d47c6-90cd-43fc-991a-e6deb00b712c",
                "val": 2616497148
            },
            {
                "key": "aad80b74-2641-4ed5-82d7-34da12b4b7cc",
                "val": 3908454004
            }
        ]
    },
    "master_zonegroup": "2618ee34-0a93-419f-ac41-8c6ff33677c7",
    "master_zone": "046d47c6-90cd-43fc-991a-e6deb00b712c",
    "period_config": {
        "bucket_quota": {
            "enabled": false,
            "check_on_raw": false,
            "max_size": 0,
            "max_size_kb": 0,
            "max_objects": -1
        },
        "user_quota": {
            "enabled": false,
            "check_on_raw": false,
            "max_size": 0,
            "max_size_kb": 0,
            "max_objects": -1
        }
    },
    "realm_id": "bed4eae8-ce6c-4126-8b70-632a32f95833",
    "realm_name": "foo",
    "realm_epoch": 2
}

Related issues

Copied to rgw - Backport #22183: luminous: rgw: multisite with jewel as master will not sync data Resolved

History

#1 Updated by Abhishek Lekshmanan about 1 year ago

  • Description updated (diff)

#2 Updated by Abhishek Lekshmanan about 1 year ago

  • Description updated (diff)

#3 Updated by Casey Bodley about 1 year ago

  • Status changed from New to Testing

#4 Updated by Abhishek Lekshmanan about 1 year ago

  • Backport set to luminous

#5 Updated by Casey Bodley about 1 year ago

  • Status changed from Testing to Pending Backport

#6 Updated by Nathan Cutler about 1 year ago

  • Copied to Backport #22183: luminous: rgw: multisite with jewel as master will not sync data added

#7 Updated by Nathan Cutler 12 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF