Description of problem: ======================= When the quota limit is set to 0, writes still go through. quota list shows the limits are exceeded. [root@transformers ~]# gluster v quota disperse_vol2 list Path Hard-limit Soft-limit Used Available Soft-limit exceeded? Hard-limit exceeded? ------------------------------------------------------------------------------------------------------------------------------- / 0Bytes 80%(0Bytes) 18.1GB 0Bytes Yes Yes [root@transformers ~]# [root@rhs-client17 fuse]# df -h . Filesystem Size Used Avail Use% Mounted on transformers:/disperse_vol2 4.2T 1.2T 3.0T 28% /mnt/fuse [root@rhs-client17 fuse]# Version-Release number of selected component (if applicable): ============================================================== 3.7.5-13 [root@transformers ~]# gluster --version glusterfs 3.7.5 built on Dec 22 2015 19:44:25 Repository revision: git://git.gluster.com/glusterfs.git Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com> GlusterFS comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GlusterFS under the terms of the GNU General Public License. [root@transformers ~]# How reproducible: ================ 100% Steps to Reproduce: 1. Create a disperse / distribute volume and set the quota limit on / to 0 2. Try creating files from client 3. Check the quota list Actual results: =============== No disk quota exceeded message and write still go through Expected results: ================ Disk quota exceeded Additional info:
Quota enforcer assumes that if hard-limit is 0, then there is no limit set. Solution: 1) don't allow user to set limit to 0 or 2) quota enforcer should treat hard-limit 0 is a valid limit set
Patch submitted upstream: http://review.gluster.org/#/c/13309/
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Fix "http://review.gluster.org/#/c/13309/" is available in 3.1.3 as part of rebase
[root@dhcp46-4 ~]# glusterfind list SESSION VOLUME SESSION TIME --------------------------------------------------------------------------- sess_abc testvol 2016-04-25 18:05:02 [root@dhcp46-4 ~]# glusterfind pre sess_abc testvol /tmp/output.txt --regenerate-outfile --no-encodeGenerated output file /tmp/output.txt [root@dhcp46-4 ~]# cat /tmp/output.txt NEW контрольная DELETE контрольная~ NEW Здравствуйте NEW Здравствуйте/Здравствуйте NEW азбука NEW промышленность NEW промышленность/круто DELETE Мир~ NEW Мир Bug verified on build glusterfs-3.7.9-2.el7rhgs.x86_64
Updated wrong bug, moving this bug to ON_QA again.
Not able to set linit usage 0. [root@dhcp46-4 ~]# gluster v quota dist-vol limit-usage / 0GB Please enter an integer value in the range of (1 - 9223372036854775807) 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 build glusterfs-3.7.9-2.el7rhgs.x86_64.
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://access.redhat.com/errata/RHBA-2016:1240