Project

General

Profile

Bug #40475

rgw: zone configure: tier_type value can't start with number

Added by hao wang almost 5 years ago. Updated almost 5 years ago.

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

0%

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

Description

if value of one tier_type configuration is configured started with number, eg: radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=default --tier-type=cloud --tier-config=connection.access_key=123abc

Then the connection.access_key will only be stored as 123. By following the coding of JSONFormattable.set(), i found although i wanna set to as string, but JSONParser.parse() set it as int_type.
For some situations, such as, sync to s3 cloud, the access_key or secrete_key may starts with number, this bug will make synchronization not work well.

History

#1 Updated by hao wang almost 5 years ago

my fault
Actually, you can set to to 123abc, use example:
radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=default --tier-type=cloud --tier-config=connection.access_key=\"123abc\"

please close this issue

Also available in: Atom PDF