Bug 849298

Summary: gluster volume rebalance status --xml ouputs wrong xml structure
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vidya Sakar <vinaraya>
Component: glusterfsAssignee: Kaushal <kaushal>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: high Docs Contact:
Priority: high    
Version: 2.0CC: barumuga, dtsang, gluster-bugs, mmahoney, pprakash, rfortier, ssampat, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0qa5-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 845561
: 858465 (view as bug list) Environment:
Last Closed: 2013-09-23 22:33:07 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: 845561    
Bug Blocks: 858465    

Description Vidya Sakar 2012-08-18 02:11:25 UTC
+++ This bug was initially created as a clone of Bug #845561 +++

current output is
                                    Node Rebalanced-files          size       scanned      failures         status run time in secs
                               ---------      -----------   -----------   -----------   -----------   ------------    -----------
                               localhost                0            0            0            0      completed           1.00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput><opRet>0</opRet><opErrno>3</opErrno><opErrstr></opErrstr><cliOp>volRebalance</cliOp><output></output></cliOutput>


expected output is
<cliOutput>
  <opRet>0</opRet>
  <opErrno>3</opErrno>
  <opErrstr></opErrstr>
  <REBALANCE OUTPUT IN PROPER XML HERE>
</cliOutput>

Comment 2 Kaushal 2012-10-10 07:22:44 UTC
Patch for upstream/master under review at http://review.gluster.org/3869

Comment 3 Kaushal 2012-10-12 03:51:17 UTC
Fixed by commit f1f3d1c (cli: Changes and enhancements to XML output) for bug https://bugzilla.redhat.com/show_bug.cgi?id=828131 . Reviewed at http://review.gluster.org/3869 .

Comment 7 Prasanth 2013-01-10 11:02:49 UTC
Verified in glusterfs-3.4.0qa5-1

# gluster volume rebalance fromclirep status --xml 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput><opRet>0</opRet><opErrno>115</opErrno><opErrstr></opErrstr><volRebalance><op>3</op><nodeCount>2</nodeCount><node><nodeName>localhost</nodeName><files>49</files><size>0</size><lookups>149</lookups><failures>0</failures><status>3</status></node><node><nodeName>10.70.36.55</nodeName><files>0</files><size>0</size><lookups>0</lookups><failures>0</failures><status>3</status></node><aggregate><files>49</files><size>0</size><lookups>149</lookups><failures>0</failures></aggregate></volRebalance></cliOutput>

Comment 9 Scott Haines 2013-09-23 22:33:07 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-1262.html