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 } } -------
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.
Daniel, would you please open Redmine ticket(s) at tracker.ceph.com to have these backported to Jewel and Hammer?
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 —
The region map is displayed correctly in the verion: ceph version 0.94.8-1.el7cp Moving to Verified state.
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