Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1103971 - quota: setting limit to 16384PB shows wrong stat with list commands
quota: setting limit to 16384PB shows wrong stat with list commands
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: quota (Show other bugs)
3.0
x86_64 Linux
low Severity medium
: ---
: RHGS 3.1.0
Assigned To: Vijaikumar Mallikarjuna
Anil Shah
:
Depends On: 1206432
Blocks: 1101270 1202842 1212791 1223636
  Show dependency treegraph
 
Reported: 2014-06-02 23:42 EDT by Saurabh
Modified: 2016-09-17 08:36 EDT (History)
10 users (show)

See Also:
Fixed In Version: gluster-3.7.0-2.el6rhs
Doc Type: Bug Fix
Doc Text:
Previously, when a quota limit of 16384PB was set, the “quota list” output for “Soft-limit exceeded” and “Hard-limit exceeded” values was wrongly reported as “Yes”. With this fix, the supported quota limit range is changed to (0 - 9223372036854775807) and the quota list provides the correct output.
Story Points: ---
Clone Of:
: 1206432 (view as bug list)
Environment:
Last Closed: 2015-07-29 00:32:16 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:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description Saurabh 2014-06-02 23:42:26 EDT
Description of problem:
The quota limit used to setting the quota on any directory.
This time I used it to set the limit of 16384PB and subsequently used the "quota list" command to collect stats related to quota.
Found it out that it said "Soft-limit exceeded and Hard-limit exceeded" is said to be "Yes" whereas it should be "No"

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

How reproducible:
always

Steps to Reproduce:
1. create a 6x2 volume, start it
2. enable quota
3. set quota limit of 16384PB
4. execute the quota list command

Actual results:
the quota list result,

[root@nfs1 ~]# gluster volume quota dist-rep1 limit-usage / 16384PB
volume quota : success
[root@nfs1 ~]# 
[root@nfs1 ~]# 
[root@nfs1 ~]# 
[root@nfs1 ~]# gluster volume quota dist-rep1 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         0Bytes       80%      0Bytes  0Bytes             Yes                  Yes


Expected results:
it should say Hard-limit set as 16384B and "No" "No" for Soft-limit exceeded?  and Hard-limit exceeded?

Additional info:
Comment 2 Vijaikumar Mallikarjuna 2015-03-27 00:53:06 EDT
Patch submitted upstream: http://review.gluster.org/#/c/10022/
Comment 4 Anil Shah 2015-05-27 12:25:27 EDT
[root@darkknight ~]# gluster v quota vol0 limit-usage / 16386PB
volume quota : success
[root@darkknight ~]# gluster v quota vol0 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                          2.0PB       80%      0Bytes   2.0PB              No                   No


[root@darkknight ~]# gluster v quota vol0 limit-usage / 9223372036854775807
volume quota : success
[root@darkknight ~]# gluster v quota vol0 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                        8192.0PB       80%      0Bytes 8192.0PB              No                   No


Bugs successfully verified on build glusterfs 3.7.0 .
Hence marking this bug as verified.
Comment 5 Bhavana 2015-07-15 06:31:03 EDT
Hi Vijai,

The doc text is updated. Please review the same and share your technical review comments. If it looks ok, then sign-off on the same.

Regards,
Bhavana
Comment 6 Vijaikumar Mallikarjuna 2015-07-15 06:44:48 EDT
Doc-Text looks good to me
Comment 8 errata-xmlrpc 2015-07-29 00:32:16 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-1495.html

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