Project

General

Profile

Actions

Bug #12964

closed

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

Added by weijun duan over 8 years ago. Updated over 8 years ago.

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

0%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 1 (0 open1 closed)

Copied to rgw - Backport #13054: rgw: region data still exist in region-map after region-map updateResolvedLoïc Dachary09/05/2015Actions
Actions #1

Updated by Yehuda Sadeh over 8 years ago

  • Status changed from New to Pending Backport
  • Backport set to hammer
Actions #2

Updated by Loïc Dachary over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF