Hi
I was configuring two realms in one cluster. After set up the second realm, I found a problem, the master zonegroup are set to a zonegroup "default" which is not what I want, here is current period of the second realm rb:
# radosgw-admin period get --rgw-realm=rb
{
"id": "18a3c0f8-c852-4c69-b28c-b939a3e6ad85",
"epoch": 1,
"predecessor_uuid": "cb16253f-2b89-4c19-807f-c582ff31a884",
"sync_status": [
],
"period_map": {
"id": "18a3c0f8-c852-4c69-b28c-b939a3e6ad85",
"zonegroups": [
{
"id": "2b963199-9b89-4ce6-beee-a734c814ef37",
"name": "tsz",
"api_name": "tsz",
"is_master": "false",
"endpoints": [
"http:\/\/ceph3-36.uni:80"
],
"hostnames": [],
"hostnames_s3website": [],
"master_zone": "93bbcecb-e6e3-4e49-ae20-a6fcd609e827",
"zones": [
{
"id": "93bbcecb-e6e3-4e49-ae20-a6fcd609e827",
"name": "tsz-main",
"endpoints": [
"http:\/\/ceph3-36.uni:80"
],
"log_meta": "false",
"log_data": "false",
"bucket_index_max_shards": 0,
"read_only": "false"
}
],
"placement_targets": [
{
"name": "default-placement",
"tags": []
}
],
"default_placement": "default-placement",
"realm_id": "d0fcb311-2b8e-4858-ad3e-bae24bcf4618"
},
{
"id": "333fdf5f-5a34-457e-a988-608eba67659a",
"name": "default",
"api_name": "",
"is_master": "true",
"endpoints": [],
"hostnames": [],
"hostnames_s3website": [],
"master_zone": "2292245d-ab27-4a8c-b38d-b084e29fb5d5",
"zones": [
{
"id": "2292245d-ab27-4a8c-b38d-b084e29fb5d5",
"name": "default",
"endpoints": [],
"log_meta": "false",
"log_data": "false",
"bucket_index_max_shards": 0,
"read_only": "false"
}
],
"placement_targets": [
{
"name": "default-placement",
"tags": []
}
],
"default_placement": "default-placement",
"realm_id": "d0fcb311-2b8e-4858-ad3e-bae24bcf4618"
}
],
"short_zone_ids": [
{
"key": "2292245d-ab27-4a8c-b38d-b084e29fb5d5",
"val": 3641902815
},
{
"key": "93bbcecb-e6e3-4e49-ae20-a6fcd609e827",
"val": 3072741282
}
]
},
"master_zonegroup": "333fdf5f-5a34-457e-a988-608eba67659a",
"master_zone": "2292245d-ab27-4a8c-b38d-b084e29fb5d5",
"period_config": {
"bucket_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
}
},
"realm_id": "d0fcb311-2b8e-4858-ad3e-bae24bcf4618",
"realm_name": "rb",
"realm_epoch": 2
}
As you can see, the master zone group is set to a zone group called "default", I want to remove this default zone group and let tsz be the master.
I tried a lot of ways, like modify "default" zone group to --master=false
, remove "default" zone group from realm rb. But all these operations lead to one same result:
# radosgw-admin zonegroup remove --zonegroup-id=333fdf5f-5a34-457e-a988-608eba67659a --zone-id=2292245d-ab27-4a8c-b38d-b084e29fb5d5 --rgw-realm=rb
failed to init zonegroup: (2) No such file or directory
2016-12-06 13:17:07.208513 7f5bd1ad49c0 0 failed reading obj info from .rgw.root:zonegroup_info.333fdf5f-5a34-457e-a988-608eba67659a: (2) No such file or directory
# radosgw-admin zonegroup modify --zonegroup-id=333fdf5f-5a34-457e-a988-608eba67659a --rgw-realm=rb --master=false
failed to init zonegroup: (2) No such file or directory2016-12-06 13:17:13.968529 7f2a8e1779c0 0 failed reading obj info from .rgw.root:zonegroup_info.333fdf5f-5a34-457e-a988-608eba67659a: (2) No such file or directory
The zone group named "default" seems did not exists! It must has been deleted by me, I recheck this via zonegroup get command:
# radosgw-admin zonegroup get --rgw-realm=rb --zonegroup-id=333fdf5f-5a34-457e-a988-608eba67659a
failed to init zonegroup: (2) No such file or directory2016-12-06 13:19:59.344485 7fc77369e9c0 0 failed reading obj info from .rgw.root:zonegroup_info.333fdf5f-5a34-457e-a988-608eba67659a: (2) No such file or directory
How can I get rid of this ghost "default" zonegroup? Thanks.
PS: It's a little confusing and frustrated experience using radosgw-admin command, it's very hard to know what options are supported for sone sub-command, do you know is there any comprehensive reference of radosgw-admin?