Bug 771639 - [60862f5916dff99c91dd6d6319c958d02cb535d8]: when quota is disabled, all quota related commands should fail.
Summary: [60862f5916dff99c91dd6d6319c958d02cb535d8]: when quota is disabled, all quota...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: 3.3-beta
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Raghavendra Bhat
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-01-04 12:41 UTC by Rahul C S
Modified: 2013-07-24 17:33 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:33:38 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: 1f3a0dd4742a2fcd3215aee4a5e22125d7ea4f4d
Embargoed:


Attachments (Terms of Use)

Description Rahul C S 2012-01-04 12:41:30 UTC
Description of problem:
when quota is disabled, all quota related commands should fail or should show that quota is disabled.

root@Dagobah:~/newmount# gluster volume info vol
 
Volume Name: vol
Type: Distributed-Replicate
Status: Started
Number of Bricks: 3 x 2 = 6
Transport-type: tcp
Bricks:
Brick1: dagobah:/data/export1
Brick2: dagobah:/data/export2
Brick3: dagobah:/data/export3
Brick4: dagobah:/data/export4
Brick5: dagobah:/data/export5
Brick6: dagobah:/data/export6
Options Reconfigured:
performance.stat-prefetch: on
performance.flush-behind: on
performance.io-thread-count: 32
geo-replication.indexing: on
features.quota: off
cluster.self-heal-daemon: on
root@Dagobah:~/newmount# gluster volume quota vol limit-usage / 10GB
limit set on /
root@Dagobah:~/newmount# gluster volume quota vol list
root@Dagobah:~/newmount# echo $?
0

What I am unsure about is that whether limit-usage should be set or not if quota is disabled.
root@Dagobah:~/newmount# gluster volume info vol
 
Volume Name: vol
Type: Distributed-Replicate
Status: Started
Number of Bricks: 3 x 2 = 6
Transport-type: tcp
Bricks:
Brick1: dagobah:/data/export1
Brick2: dagobah:/data/export2
Brick3: dagobah:/data/export3
Brick4: dagobah:/data/export4
Brick5: dagobah:/data/export5
Brick6: dagobah:/data/export6
Options Reconfigured:
features.limit-usage: /:10GB
performance.stat-prefetch: on
performance.flush-behind: on
performance.io-thread-count: 32
geo-replication.indexing: on
features.quota: off
cluster.self-heal-daemon: on

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Anand Avati 2012-02-06 05:42:13 UTC
CHANGE: http://review.gluster.com/2609 (glusterd/quota: inform the user if some quota command is executed without enabling it) merged in master by Vijay Bellur (vijay)

Comment 2 Rahul C S 2012-04-05 06:36:12 UTC
When quota is disabled, gives proper output when issued quota related commands.

gluster volume quota vol limit-usage / 10GB
Quota is disabled, please enable quota


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