Bug 1005104

Summary: quota: alert does not occur for a subdir
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Saurabh <saujain>
Component: glusterdAssignee: Amar Tumballi <amarts>
Status: CLOSED NOTABUG QA Contact: Sudhir D <sdharane>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: mzywusko, rhs-bugs, vbellur, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-06 10:36:55 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:
Attachments:
Description Flags
sosreport-from-node1 none

Description Saurabh 2013-09-06 08:45:48 UTC
Description of problem:
I have volume with alert-time option set to 1 seconds.
still for the subdirectory I was not able to get the alert message in the logs for that subdirectory

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.31rhs-1.el6rhs.x86_64
glusterfs-rdma-3.4.0.31rhs-1.el6rhs.x86_64
samba-glusterfs-3.6.9-160.3.el6rhs.x86_64
glusterfs-libs-3.4.0.31rhs-1.el6rhs.x86_64
glusterfs-geo-replication-3.4.0.31rhs-1.el6rhs.x86_64
glusterfs-server-3.4.0.31rhs-1.el6rhs.x86_64
glusterfs-api-3.4.0.31rhs-1.el6rhs.x86_64
glusterfs-fuse-3.4.0.31rhs-1.el6rhs.x86_64


How reproducible:
always

Steps to Reproduce:
1. create a volume, start it
2. enable quota
3. mount over nfs
4. create dirs on nfs mountpoint
   mkdir -p /dir1/dir2
5. set quota on /dir1/dir2 to 1GB
6. start creating data inside the dir2.

Actual results:
[root@rhsauto032 ~]# gluster volume quota dr1 list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                         10.0GB       50%       4.0GB   6.0GB
/dir3                                      1.0GB       50%       1.0GB  0Bytes
/dir1/dir2                                 1.0GB       80%    1016.8MB   7.2MB


after 80% of limit is crossed the bricks dont't display any log messages for "Alert"

Expected results:
The alert should be there for subdirs also.
Whereas the soft-limit related message works fine for "root of the volume" or "first level directory"

Additional info:

Comment 1 Saurabh 2013-09-06 08:53:09 UTC
Created attachment 794621 [details]
sosreport-from-node1