Bug 1183920

Summary: cli crashes when listing quota limits with xml output
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaikumar Mallikarjuna <vmallika>
Component: quotaAssignee: Sachin Pandit <spandit>
Status: CLOSED ERRATA QA Contact: Saurabh <saujain>
Severity: unspecified Docs Contact:
Priority: high    
Version: rhgs-3.0CC: annair, bmohanra, mzywusko, nsathyan, rhs-bugs, saujain, smohan, storage-qa-internal, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.6.0.46-1 Doc Type: Bug Fix
Doc Text:
Previously, when listing quota limits with an xml output, the CLI crashed. With this fix, the issue is now resolved.
Story Points: ---
Clone Of:
: 1185259 (view as bug list) Environment:
Last Closed: 2015-03-26 06:35:31 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: 1182947, 1185259, 1200297, 1231641    

Description Vijaikumar Mallikarjuna 2015-01-20 08:36:49 UTC
oot@rh1:~ # gluster volume quota vol1  list --xml
gluster: cli-xml-output.c:2898: cli_xml_output_vol_quota_limit_list: Assertion `limit_list' failed.
Aborted (core dumped)

Comment 3 Saurabh 2015-02-23 10:04:49 UTC
test done to verfiy the bug is this.
1. create a volume of 6x2 type.
2. mount the volume on the nfs
3. enable quota
4. set limit
5. do a list with xml option.

gluster volume quota vol0 list --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opErrno>0</opErrno>
  <opErrstr/>
  <volQuota/>
</cliOutput>
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                        100.0GB       80%      72.1MB  99.9GB              No                   No


build used is this one,
glusterfs-3.6.0.45-1.el6rhs.x86_64

Comment 5 errata-xmlrpc 2015-03-26 06:35:31 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.

https://rhn.redhat.com/errata/RHBA-2015-0682.html