Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1064265 - quota: allowed to set soft-limit %age beyond 100%
quota: allowed to set soft-limit %age beyond 100%
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: quota (Show other bugs)
2.1
x86_64 Linux
low Severity medium
: ---
: RHGS 3.1.1
Assigned To: Manikandan
Anil Shah
: ZStream
: 1253222 1253224 (view as bug list)
Depends On:
Blocks: 1251815 1253222 1253224
  Show dependency treegraph
 
Reported: 2014-02-12 05:19 EST by Saurabh
Modified: 2016-09-20 00:29 EDT (History)
14 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-12
Doc Type: Bug Fix
Doc Text:
Previously, the gluster CLI allowed to set the soft-limit value of quota to greater than 100%. With this fix, soft-limit value is validated to allow only in the range of 1-100%.
Story Points: ---
Clone Of:
: 1240654 1253222 1253224 (view as bug list)
Environment:
Last Closed: 2015-10-05 03:07:14 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 Product Errata RHSA-2015:1845 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 07:06:22 EDT

  None (edit)
Description Saurabh 2014-02-12 05:19:00 EST
Description of problem:
allowed to set the soft-limit percentage more than 100%

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.59rhs-1.el6rhs.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a volume, start it
2. enable quota
3. mount over nf
4. create a directory inside the mount point
5. gluster volume quota limit-usage /dir-name <size> <soft-limit-percentage>
define soft-limit percentage as 100%

Actual results:

step5 result,

[root@quota6 ~]# gluster vol quota dist-rep2 limit-usage /dir8 5GB 650%
volume quota : success


Expected results:

should not cross 100%

Additional info:
Comment 2 Manikandan 2015-07-07 09:21:33 EDT
Patch posted upstream for review
http://review.gluster.org/#/c/11566/
Comment 3 Manikandan 2015-07-30 07:01:36 EDT
Patch merged upstream.
Comment 7 Manikandan 2015-08-13 05:18:48 EDT
*** Bug 1253224 has been marked as a duplicate of this bug. ***
Comment 10 Vijaikumar Mallikarjuna 2015-08-14 02:25:49 EDT
*** Bug 1253222 has been marked as a duplicate of this bug. ***
Comment 11 Anil Shah 2015-08-25 06:09:25 EDT
[root@darkknight ~]# gluster v quota testvol limit-usage /test 50GB 100%
volume quota : success
[root@darkknight ~]# gluster v quota testvol list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                        100.0GB       80%      0Bytes 100.0GB              No                   No
/test                                     50.0GB      100%      0Bytes  50.0GB              No                   No
[root@darkknight ~]# gluster v quota testvol limit-usage /test 50GB 101%
Please enter a correct value in the range of 0 to 100
Usage: volume quota <VOLNAME> {enable|disable|list [<path> ...]| list-objects [<path> ...] | remove <path>| remove-objects <path> | default-soft-limit <percent>} |
volume quota <VOLNAME> {limit-usage <path> <size> [<percent>]} |
volume quota <VOLNAME> {limit-objects <path> <number> [<percent>]} |
volume quota <VOLNAME> {alert-time|soft-timeout|hard-timeout} {<time>}

Bug verified on glusterfs-3.7.1-12.el7rhgs.x86_64
Comment 13 errata-xmlrpc 2015-10-05 03:07:14 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-2015-1845.html

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