Project

General

Profile

Actions

Bug #24846

closed

rgw: check zone_id or zone_name not empty for zone get sub-command

Added by Zhi Zhang almost 6 years ago. Updated over 5 years ago.

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

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Currently radosgw-admin zone get command didn't check zone_id or zone_name is not empty or not, so this command always returned one zone info, which caused much confusing.

[ceph@c166 ~]$ radosgw-admin zone get
{
    "id": "ab26acf5-2eef-49c5-8eb2-2669e344004c",
    "name": "us-east-1",
    "domain_root": "us-east-1.rgw.meta:root",
    "control_pool": "us-east-1.rgw.control",
...
Actions #2

Updated by Casey Bodley almost 6 years ago

this is the intended behavior. for both radosgw and radosgw-admin, if you don't specify a --rgw-zone or --rgw-zonegroup, it uses the defaults. the defaults can be configured using 'radosgw-admin zone default --rgw-zone name', or by using the --default flag with the zone create/modify commands

Actions #3

Updated by Zhi Zhang over 5 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF