Bug 998797 - quota: even after disabling quota the list still shows some information
Summary: quota: even after disabling quota the list still shows some information
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterd
Version: 2.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Krutika Dhananjay
QA Contact: Saurabh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-20 05:53 UTC by Saurabh
Modified: 2016-01-19 06:12 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.4.0.34rhs
Doc Type: Bug Fix
Doc Text:
Previously, quota list command displayed quota configuration when quota was disabled on a volume, as the quota configuration file wasn't deleted on disabling quota. Now with this update, the quota list command doesn't display any quota information, when quota is disabled on the volume.usterd to fail 'quota list' command if quota is not enabled on the volume.
Clone Of:
Environment:
Last Closed: 2013-11-27 15:31:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1769 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #1 2013-11-27 20:17:39 UTC

Description Saurabh 2013-08-20 05:53:08 UTC
Description of problem:


Version-Release number of selected component (if applicable):
glusterfs-server-3.4.0.20rhsquota1-1.el6.x86_64
glusterfs-fuse-3.4.0.20rhsquota1-1.el6.x86_64
glusterfs-3.4.0.20rhsquota1-1.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. set limit on volume having quota enabled on the root of the volume
2. volume quota list <path>
3. disable quota
4. volume quota list <path>

Actual results:
[root@rhsauto032 ~]# gluster volume quota dist-rep2 list /
quota command failed : Cannot list limits, quota is disabled
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                        100.0GB 1791949473264555994      0Bytes 100.0GB


Expected results:
list command is not suppose to work after quota is disabled

Additional info:
BZ 998786, was about list not showing any info, that is still valid.
as list started showing result after quite considerable amount of time.

Comment 3 Krutika Dhananjay 2013-08-29 15:35:51 UTC
Patch merged in downstream. Hence moving the state of the bug to MODIFIED.

Comment 5 Gowrishankar Rajaiyan 2013-10-08 10:14:13 UTC
[root@ninja ~]# gluster volume quota vmstore list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                         40.0GB 99.999999%      20.2GB  19.8GB


[root@ninja ~]# gluster volume quota vmstore disable
Disabling quota will delete all the quota configuration. Do you want to continue? (y/n) y
volume quota : success


[root@ninja ~]# gluster volume quota vmstore list
quota command failed : Quota is not enabled on volume vmstore
quota: No quota configured on volume vmstore
[root@ninja ~]#


Verified. Build: glusterfs-server-3.4.0.34rhs-1.el6rhs.x86_64

Comment 6 errata-xmlrpc 2013-11-27 15:31:34 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.

http://rhn.redhat.com/errata/RHBA-2013-1769.html


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