Project

General

Profile

Bug #12964

rgw: region data still exist in region-map after region-map update

Added by weijun duan about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/05/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:

Description

this is my region:

$rados -p .rgw.root ls

default.region
region_info.default
zone_info.default
region_info.my-region

delete region_info.my-region

$rados -p .rgw.root rm region_info.my-region
default.region
region_info.default
region_map
zone_info.default

update region-map

$radosgw-admin region-map update

{
    "regions": [
        {
            "key": "default",
            "val": {
                "name": "default",
                "api_name": "",
                "is_master": "true",
                "endpoints": [],
                "hostnames": [],
                "master_zone": "",
                "zones": [
                    {
                        "name": "default",
                        "endpoints": [],
                        "log_meta": "false",
                        "log_data": "false",
                        "bucket_index_max_shards": 0
                    }
                ],
                "placement_targets": [
                    {
                        "name": "default-placement",
                        "tags": []
                    }
                ],
                "default_placement": "default-placement" 
            }
        },
        {
            "key": "my-region",
            "val": {
                "name": "my-region",
                "api_name": "",
                "is_master": "false",
                "endpoints": [],
                "hostnames": [],
                "master_zone": "",
                "zones": [
                    {
                        "name": "default",
                        "endpoints": [],
                        "log_meta": "false",
                        "log_data": "false",
                        "bucket_index_max_shards": 0
                    }
                ],
                "placement_targets": [
                    {
                        "name": "default-placement",
                        "tags": []
                    }
                ],
                "default_placement": "default-placement" 
            }
        }
    ],
    "master_region": "default",
    "bucket_quota": {
        "enabled": false,
        "max_size_kb": -1,
        "max_objects": -1
    },
    "user_quota": {
        "enabled": false,
        "max_size_kb": -1,
        "max_objects": -1
    }
}

regiondata (my-region) still exist in region-map
unless, delete region-map and update it, my-region Will disappear

$rados -p .rgw.root rm region_map

https://github.com/ceph/ceph/pull/5490


Related issues

Copied to rgw - Backport #13054: rgw: region data still exist in region-map after region-map update Resolved 09/05/2015

Associated revisions

Revision 95685c19 (diff)
Added by weijun duan about 3 years ago

rgw:add --reset-regions for regionmap update

Fixes: #12964

Signed-off-by: Weijun Duan <>

Revision ad833044 (diff)
Added by weijun duan about 3 years ago

rgw:add --reset-regions for regionmap update

Fixes: #12964

Signed-off-by: Weijun Duan <>
(cherry picked from commit 95685c19d6f1eab50b903e61273b5351bedc2980)

Conflicts:
src/rgw/rgw_admin.cc: usage is on cerr in hammer, not cout
src/test/cli/radosgw-admin/help.t: remove extra empty line

History

#1 Updated by Yehuda Sadeh about 3 years ago

  • Status changed from New to Pending Backport
  • Backport set to hammer

#2 Updated by Loic Dachary about 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF