Project

General

Profile

Bug #22062

Updated by Abhishek Lekshmanan over 6 years ago

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.  

 <pre> 
 $ 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 

 </pre> 

 


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

 <pre> 
 $ 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": "site", 
                 "api_name": "site", 
                 "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": "az1", 
                         "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": "az2", 
                         "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 
 } 
 </pre> 

 


Back