Project

General

Profile

Documentation #40458

Object Gateway multisite document read-only argument error

Added by chenjiong deng 3 months ago. Updated 3 months ago.

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

0%

Tags:
multisite
Backport:
luminous mimic nautilus
Reviewed:
Affected Versions:
Pull request ID:

Description

In multisite document command:

radosgw-admin zone modify --rgw-zone={zone-name} --master --default --read-only=False

--read-only only support “false” means read-only false,others including “False” and “true” are true in fact.
And there are same problem in Luminous's documents and the other release series' documents.

This is a simple test:

[root@dev14 build]# radosgw-admin zonegroup get

{
    "id": "0f15a84b-4d34-45f9-898e-6a2a873e5922",
    "name": "default",
    "api_name": "default",
    "is_master": "true",
    "endpoints": [],
    "hostnames": [],
    "hostnames_s3website": [],
    "master_zone": "675acdc1-9c99-4099-bd7f-29e2b44218fb",
    "zones": [
        {
            "id": "675acdc1-9c99-4099-bd7f-29e2b44218fb",
            "name": "default",
            "endpoints": [
                "http://192.168.180.138:8000" 
            ],
            "log_meta": "false",
            "log_data": "false",
            "bucket_index_max_shards": 0,
            "read_only": "false", # <-----
            "tier_type": "",
            "sync_from_all": "true",
            "sync_from": [],
            "redirect_zone": "" 
        }
    ],
    "placement_targets": [
        {
            "name": "default-placement",
            "tags": [],
            "storage_classes": [
                "STANDARD" 
            ]
        }
    ],
    "default_placement": "default-placement",
    "realm_id": "a039cec1-2320-4f92-bd25-2066e1855a67" 
}

[root@dev14 build]# radosgw-admin zone modify --rgw-zone=default --master --default --read-only=False

[root@dev14 build]# radosgw-admin zonegroup get

{
    "id": "0f15a84b-4d34-45f9-898e-6a2a873e5922",
    "name": "default",
    "api_name": "default",
    "is_master": "true",
    "endpoints": [],
    "hostnames": [],
    "hostnames_s3website": [],
    "master_zone": "675acdc1-9c99-4099-bd7f-29e2b44218fb",
    "zones": [
        {
            "id": "675acdc1-9c99-4099-bd7f-29e2b44218fb",
            "name": "default",
            "endpoints": [
                "http://192.168.180.138:8000" 
            ],
            "log_meta": "false",
            "log_data": "false",
            "bucket_index_max_shards": 0,
            "read_only": "true", # <----- "false" to "true" 
            "tier_type": "",
            "sync_from_all": "true",
            "sync_from": [],
            "redirect_zone": "" 
        }
    ],
    "placement_targets": [
        {
            "name": "default-placement",
            "tags": [],
            "storage_classes": [
                "STANDARD" 
            ]
        }
    ],
    "default_placement": "default-placement",
    "realm_id": "a039cec1-2320-4f92-bd25-2066e1855a67" 
}

[root@dev14 build]# radosgw-admin zone modify --rgw-zone=default --master --default --read-only=false

[root@dev14 build]# radosgw-admin zonegroup get

{
    "id": "0f15a84b-4d34-45f9-898e-6a2a873e5922",
    "name": "default",
    "api_name": "default",
    "is_master": "true",
    "endpoints": [],
    "hostnames": [],
    "hostnames_s3website": [],
    "master_zone": "675acdc1-9c99-4099-bd7f-29e2b44218fb",
    "zones": [
        {
            "id": "675acdc1-9c99-4099-bd7f-29e2b44218fb",
            "name": "default",
            "endpoints": [
                "http://192.168.180.138:8000" 
            ],
            "log_meta": "false",
            "log_data": "false",
            "bucket_index_max_shards": 0,
            "read_only": "false", # <----- "true" to "false" 
            "tier_type": "",
            "sync_from_all": "true",
            "sync_from": [],
            "redirect_zone": "" 
        }
    ],
    "placement_targets": [
        {
            "name": "default-placement",
            "tags": [],
            "storage_classes": [
                "STANDARD" 
            ]
        }
    ],
    "default_placement": "default-placement",
    "realm_id": "a039cec1-2320-4f92-bd25-2066e1855a67" 
}


Related issues

Copied to rgw - Backport #40496: luminous: Object Gateway multisite document read-only argument error New
Copied to rgw - Backport #40497: mimic: Object Gateway multisite document read-only argument error Resolved
Copied to rgw - Backport #40498: nautilus: Object Gateway multisite document read-only argument error Resolved

History

#1 Updated by chenjiong deng 3 months ago

The test above is base on ceph matser branch current.

#3 Updated by Nathan Cutler 3 months ago

  • Status changed from New to Need Review
  • Pull request ID set to 28655

#4 Updated by Nathan Cutler 3 months ago

  • Subject changed from Doc:Object Gateway multisite document read-only argument error to Object Gateway multisite document read-only argument error

#5 Updated by Casey Bodley 3 months ago

  • Tags set to multisite
  • Backport set to luminous mimic nautilus

#6 Updated by Casey Bodley 3 months ago

  • Status changed from Need Review to Pending Backport

#7 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #40496: luminous: Object Gateway multisite document read-only argument error added

#8 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #40497: mimic: Object Gateway multisite document read-only argument error added

#9 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #40498: nautilus: Object Gateway multisite document read-only argument error added

Also available in: Atom PDF