Bug 1009851 - quota: exit code is set to "1" for list command
Summary: quota: exit code is set to "1" for list command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd
Version: 2.1
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Anuradha
QA Contact: Gowrishankar Rajaiyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-19 10:12 UTC by Saurabh
Modified: 2016-09-20 02:00 UTC (History)
7 users (show)

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.
Clone Of:
Environment:
Last Closed: 2013-11-27 15:38:37 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1769 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #1 2013-11-27 20:17:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.