Bug 1029443

Summary: quota: for pre-existing data, the alerts(soft-limit) are not found in logs
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Saurabh <saujain>
Component: quotaAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: mzywusko, rhs-bugs, smohan, storage-qa-internal, vbellur, vmallika
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1202289 (view as bug list) Environment:
Last Closed: 2015-11-17 08:52:50 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: 1202289, 1265532    

Description Saurabh 2013-11-12 12:02:14 UTC
Description of problem:
Could not see the alert messages in the intended logs.
This issue is seen with pre-existing data and then setting quota limit on that directory.

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.43rhs-1

How reproducible:
always

Steps to Reproduce:
1. create a volume, start the volume, enable quota
2. mount over nfs or glusterfs
3. mkdir dir
4. create data inside the dir, say upto 100GB
5. set quota limit on dir, say 100GB its

Actual results:
alert message about soft-limit is not seen in the logs.


Expected results:
alerts should be generated if limit crosses the soft-limit %age

Additional info:
Though after limit is reached and trying to create more data, sends disk quota exceeded

Comment 2 Vijaikumar Mallikarjuna 2015-03-16 10:05:40 UTC
Testcase ./tests/bugs/quota/bug-1087198.t is failing because sometimes 'Usage crossed soft limit' alert message is not generated in the log.

Comment 3 Vijaikumar Mallikarjuna 2015-08-06 10:07:31 UTC
This is an expected behavior, as alert logs are generated only when there is an IO happening.
For a existing data, when quota is enabled, alert logs will not be generated if the existing data already crossed quota limit.

Comment 4 Vijaikumar Mallikarjuna 2015-11-17 08:52:50 UTC
This is an expected behavior, so closing bug.