Bug 1103971 - quota: setting limit to 16384PB shows wrong stat with list commands
Summary: quota: setting limit to 16384PB shows wrong stat with list commands
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: quota
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
: RHGS 3.1.0
Assignee: Vijaikumar Mallikarjuna
QA Contact: Anil Shah
URL:
Whiteboard:
Depends On: 1206432
Blocks: 1101270 1202842 1212791 1223636
TreeView+ depends on / blocked
 
Reported: 2014-06-03 03:42 UTC by Saurabh
Modified: 2016-09-17 12:36 UTC (History)
10 users (show)

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.
Clone Of:
: 1206432 (view as bug list)
Environment:
Last Closed: 2015-07-29 04:32:16 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Saurabh 2014-06-03 03:42:26 UTC
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 04:53:06 UTC
Patch submitted upstream: http://review.gluster.org/#/c/10022/

Comment 4 Anil Shah 2015-05-27 16:25:27 UTC
[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 10:31:03 UTC
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 10:44:48 UTC
Doc-Text looks good to me

Comment 8 errata-xmlrpc 2015-07-29 04:32:16 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-2015-1495.html


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