Bug 1294751
Summary: | Able to create files when quota limit is set to 0 | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Bhaskarakiran <byarlaga> | |
Component: | quota | Assignee: | Manikandan <mselvaga> | |
Status: | CLOSED ERRATA | QA Contact: | Anil Shah <ashah> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.1 | CC: | mselvaga, mzywusko, rcyriac, rhinduja, rhs-bugs, sankarshan, smohan, storage-qa-internal | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | RHGS 3.1.3 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.7.9-2 | Doc Type: | Bug Fix | |
Doc Text: |
When the quota limit is set to zero, quota enforcement is disabled, rather than enforcing a quota limit of 0 and preventing any writes. To prevent confusion when using this option, numbers smaller than or equal to zero are no longer valid values.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1302554 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-23 05:00:54 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1299184, 1302554, 1306136 |
Description
Bhaskarakiran
2015-12-30 06:04:55 UTC
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 |