Bug 1019288

Summary: quota: limit-set is not logged in any logs
Product: Red Hat Gluster Storage Reporter: Saurabh <saujain>
Component: quotaAssignee: Manikandan <mselvaga>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: high Docs Contact:
Priority: medium    
Version: 2.1CC: mselvaga, mzywusko, rhs-bugs, saujain, smohan, storage-qa-internal, vbellur
Target Milestone: ---Keywords: EasyFix
Target Release: ---Flags: mselvaga: needinfo? (saujain)
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-09 06:42:11 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:

Description Saurabh 2013-10-15 12:15:36 UTC
Description of problem:

I was trying to see, if we are logging somewhere about the successful operatoin about a quota limit setting on "/" or subdir, could not find it and hence putting up the bug

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.34rhs-1.el6rhs.x86_64

Comment 2 Manikandan 2015-07-08 07:18:50 UTC
(In reply to Saurabh from comment #0)
> Description of problem:
> 
> I was trying to see, if we are logging somewhere about the successful
> operatoin about a quota limit setting on "/" or subdir, could not find it
> and hence putting up the bug
> 
> Version-Release number of selected component (if applicable):
> glusterfs-3.4.0.34rhs-1.el6rhs.x86_64

Hi Saurabh,
In the cmd_history.log, we are logging about the successful operation of quota limit setting on a directory. 

 [2015-07-08 06:01:06.678153]  : v quota vol1 limit-usage /dir/test/ 4MB 80 : SUCCESS
 [2015-07-08 07:15:59.117990]  : v quota vol1 limit-usage /dir/test/ 5MB 70% : SUCCESS

Is it necessary to log it somewhere else too?

Comment 3 Manikandan 2015-07-09 06:00:33 UTC
The bug is already fixed in the latest version. Logs for the successful operation of setting quota limit in a directory can be found in cmd_history.log.

Comment 4 Manikandan 2015-07-09 06:42:11 UTC
Closing this bug since it is already fixed.

[2015-07-08 06:01:06.678153]  : v quota vol1 limit-usage /dir/test/ 4MB 80 : SUCCESS
 [2015-07-08 07:15:59.117990]  : v quota vol1 limit-usage /dir/test/ 5MB 70% : SUCCESS