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 almost 6 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

Also available in: Atom PDF