Bug 1349484 - radosgw-admin region-map set is not setting the bucket quota
Summary: radosgw-admin region-map set is not setting the bucket quota
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 1.3.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 1.3.3
Assignee: Yehuda Sadeh
QA Contact: Tejas
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks: 1348597 1372735
TreeView+ depends on / blocked
 
Reported: 2016-06-23 14:09 UTC by Vikhyat Umrao
Modified: 2022-07-09 08:15 UTC (History)
12 users (show)

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.
Clone Of:
Environment:
Last Closed: 2016-09-29 13:00:13 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 16815 0 None None None 2016-07-26 12:42:03 UTC
Red Hat Issue Tracker RHCEPH-4722 0 None None None 2022-07-09 08:15:53 UTC
Red Hat Knowledge Base (Solution) 2418561 0 None None None 2016-06-29 09:32:22 UTC
Red Hat Product Errata RHSA-2016:1972 0 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.3 security, bug fix, and enhancement update 2016-09-29 16:51:21 UTC

Description Vikhyat Umrao 2016-06-23 14:09:35 UTC
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 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.

Comment 2 Vikhyat Umrao 2016-06-23 14:17:47 UTC
(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 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 5 Federico 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 —

Comment 10 Tejas 2016-09-07 09:20:04 UTC
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 13:00:13 UTC
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.