Bug 1009851

Summary: quota: exit code is set to "1" for list command
Product: Red Hat Gluster Storage Reporter: Saurabh <saujain>
Component: glusterdAssignee: Anuradha <atalur>
Status: CLOSED ERRATA QA Contact: Gowrishankar Rajaiyan <grajaiya>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1CC: atalur, grajaiya, kparthas, mzywusko, smohan, vagarwal, vbellur
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.36rhs-1 Doc Type: Bug Fix
Doc Text:
Previously, quota list command would return non-zero exit code when the command was successful. Now with this update, exit code would be zero when quota list command is successful.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-27 15:38:37 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-09-19 10:12:46 UTC
[root@nfs1 ~]# gluster volume quota newvol list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                          2.0GB       80%      34.3GB  0Bytes
[root@nfs1 ~]# echo $?
1

Comment 2 Anuradha 2013-10-07 07:18:21 UTC
Patch posted for review on branch rhs-2.1 :
https://code.engineering.redhat.com/gerrit/#/c/13524/

Patch posted for review on branch rhs-2.1-u1 : 
https://code.engineering.redhat.com/gerrit/#/c/13669/

Comment 3 Gowrishankar Rajaiyan 2013-10-08 06:32:49 UTC
[root@ninja ~]# gluster volume quota vmstore list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                         40.0GB       80%      20.2GB  19.8GB
[root@ninja ~]# echo $?
0
[root@ninja ~]# 


Verified.

Build: glusterfs-server-3.4.0.34rhs-1.el6rhs.x86_64

Comment 4 errata-xmlrpc 2013-11-27 15:38:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1769.html