Bug 987418

Summary: quota: design flaw
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Saurabh <saujain>
Component: glusterdAssignee: krishnan parthasarathi <kparthas>
Status: CLOSED CURRENTRELEASE QA Contact: Saurabh <saujain>
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: grajaiya, kdhananj, mzywusko, nsathyan, rhs-bugs, vbellur, vshastry
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.33rhs-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-07 05:56:05 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:

Description Saurabh 2013-07-23 11:07:59 UTC
Description of problem:
quotad process runs only on one node of the cluster, this is a major issue.
as if the node having quotad running goes down or quotad gets killed
we will have no one to take care about quota policy.

Version-Release number of selected component (if applicable):
[root@nfs1 ~]# rpm -qa | grep glusterfs
glusterfs-3.4.0.12rhs.beta5-2.el6rhs.x86_64
glusterfs-fuse-3.4.0.12rhs.beta5-2.el6rhs.x86_64
glusterfs-server-3.4.0.12rhs.beta5-2.el6rhs.x86_64


How reproducible:
always

Steps to Reproduce:
setup 4 rhs nodes[1, 2, 3, 4], 1 client
1. create a volume, start it
2. enable quota on root of the volume on rhs-node1
3. set limit of 1GB 
4. mount over nfs from node3
5. start creating data. create 1MB file tille quota limit gets exceeded.
6. kill quotad on node1.

let I/O keep happening.

Actual results:
the quota limit is surpassed 

[root@rhsauto030 nfs-test]# du -h .
2.8G	.
[root@rhsauto030 nfs-test]# pwd 
/mnt/nfs-test
[root@rhsauto030 nfs-test]# mount | grep nfs-test
10.70.37.196:/quota-dist-rep on /mnt/nfs-test type nfs (rw,addr=10.70.37.196)
[root@rhsauto030 nfs-test]# 


[root@nfs1 ~]# ps -eaf | grep quotad
root      6709  2366  0 05:43 pts/0    00:00:00 grep quotad
[root@nfs1 ~]# 


Expected results:
we should have mechanism to make it highly available or distributed.

Additional info:

Comment 2 vpshastry 2013-09-12 09:57:49 UTC
As per the new design quotad runs on all the nodes. Can you please verify and move it to the appropriate state?