Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1349484 - radosgw-admin region-map set is not setting the bucket quota
radosgw-admin region-map set is not setting the bucket quota
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RGW (Show other bugs)
1.3.2
All Linux
medium Severity medium
: rc
: 1.3.3
Assigned To: Yehuda Sadeh
Tejas
Bara Ancincova
:
Depends On:
Blocks: 1348597 1372735
  Show dependency treegraph
 
Reported: 2016-06-23 10:09 EDT by Vikhyat Umrao
Modified: 2017-07-30 11:43 EDT (History)
12 users (show)

See Also:
Fixed In Version: RHEL: ceph-0.94.7-5.el7cp Ubuntu: ceph_0.94.7-3redhat1trusty
Doc Type: Bug Fix
Doc Text:
."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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-29 09:00:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2418561 None None None 2016-06-29 05:32 EDT
Ceph Project Bug Tracker 16815 None None None 2016-07-26 08:42 EDT
Red Hat Product Errata RHSA-2016:1972 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.3 security, bug fix, and enhancement update 2016-09-29 12:51:21 EDT

  None (edit)
Description Vikhyat Umrao 2016-06-23 10:09:35 EDT
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
    }
}
-------
Comment 1 Daniel Gryniewicz 2016-06-23 10:11:57 EDT
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.
Comment 2 Vikhyat Umrao 2016-06-23 10:17:47 EDT
(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 3 Ken Dreyer (Red Hat) 2016-07-25 14:25:50 EDT
Daniel, would you please open Redmine ticket(s) at tracker.ceph.com to have these backported to Jewel and Hammer?
Comment 5 Federico Lucifredi 2016-07-25 14:27:33 EDT
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 —
Comment 10 Tejas 2016-09-07 05:20:04 EDT
The region map is displayed correctly in the verion:
ceph version 0.94.8-1.el7cp
Moving to Verified state.
Comment 13 errata-xmlrpc 2016-09-29 09:00:13 EDT
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

Note You need to log in before you can comment on or make changes to this bug.