."radosgw-admin region-map set" output includes the bucket quota
Previously, the output of the `radosgw-admin region-map set` command did not include the bucket quota, which led to confusion if the quota was properly set. With this update, the `radosgw-admin region-map set` output includes the bucket quota as expected.
Comment 1Daniel Gryniewicz
2016-06-23 14:11:57 UTC
I spent 15 minutes looking for the PR that fixed this in master/jewel, but I can't find it. The history for multisite is quite complicated. The actual commits that fixed this are:
e18b72f7e97a65af681e368d3706a465603df89d
9dfbae6d65bf6f8ab7cdf8597d556505b81cedd9
The issue is cosmetic: the code that prints out the bucket quota is missing; the quota itself is set correctly.
(In reply to Daniel Gryniewicz from comment #1)
> I spent 15 minutes looking for the PR that fixed this in master/jewel, but I
> can't find it. The history for multisite is quite complicated. The actual
> commits that fixed this are:
>
> e18b72f7e97a65af681e368d3706a465603df89d
> 9dfbae6d65bf6f8ab7cdf8597d556505b81cedd9
>
> The issue is cosmetic: the code that prints out the bucket quota is missing;
> the quota itself is set correctly.
Thanks you Daniel for your help in this issue.
Comment 3Ken Dreyer (Red Hat)
2016-07-25 18:25:50 UTC
Daniel, would you please open Redmine ticket(s) at tracker.ceph.com to have these backported to Jewel and Hammer?
Comment 5Federico Lucifredi
2016-07-25 18:27:33 UTC
Since this is just a logging/output issue (the quota is set correctly), this may be pushed to 1.3.4 if there is no time for 1.3.3 —
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHSA-2016-1972.html
Description of problem: radosgw-admin region-map set is not setting the bucket quota Version-Release number of selected component (if applicable): Red Hat Ceph Storage 1.3.2 ceph-radosgw-0.94.5-12.el7cp.x86_64 --- - Below is my modified region-map : { "regions": [ { "key": "default", "val": { "name": "default", "api_name": "", "is_master": "true", "endpoints": [], "hostnames": [], "master_zone": "", "zones": [ { "name": "default", "endpoints": [], "log_meta": "false", "log_data": "false", "bucket_index_max_shards": 0 } ], "placement_targets": [ { "name": "default-placement", "tags": [] } ], "default_placement": "default-placement" } } ], "master_region": "default", "bucket_quota": { "enabled": true, "max_size_kb": 1000, <------------------------------ "max_objects": 1000 <------------------------------- }, "user_quota": { "enabled": true, "max_size_kb": 1000, "max_objects": 1000 } } # radosgw-admin region-map set < region.conf.json { "regions": [ { "key": "default", "val": { "name": "default", "api_name": "", "is_master": "true", "endpoints": [], "hostnames": [], "master_zone": "", "zones": [ { "name": "default", "endpoints": [], "log_meta": "false", "log_data": "false", "bucket_index_max_shards": 0 } ], "placement_targets": [ { "name": "default-placement", "tags": [] } ], "default_placement": "default-placement" } } ], "master_region": "default", "bucket_quota": { "enabled": false, "max_size_kb": -1, <--------------------------- "max_objects": -1 <---------------------------- }, "user_quota": { "enabled": true, "max_size_kb": 1000, "max_objects": 1000 } } -------