Bug 1411124

Summary: [GSS] [RFE]: Make --xml option functional for gluster volume heal subcommands
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Pan Ousley <pousley>
Component: replicateAssignee: Ravishankar N <ravishankar>
Status: CLOSED DEFERRED QA Contact: Nag Pavan Chilakam <nchilaka>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: amukherj, bkunal, pousley, rcyriac, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: FutureFeature, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-29 05:24:33 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: 1408949, 1468976, 1472361    

Description Pan Ousley 2017-01-08 14:59:07 UTC
1. Who is the customer behind the request?  

Account: Red Hat IT/IS
Acct. #: 5243891
Strategic: Yes  
  
2. What is the nature and description of the request?

The --xml option works as expected with # gluster --xml volume heal <volname> info, but not with # gluster --xml volume heal vol01 statistics heal-count (shown below). The request is to make --xml a functional option for these (and any other) heal subcommands.


Example (expected output format):

[root@rhs-c01-n01 ~]# gluster --xml volume heal vol01 info
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <healInfo>
    <bricks>
      <brick hostUuid="169880d5-0706-4674-9f28-22c055ec10e5">
        <name>rhs-c01-n01.qa.int.phx1.redhat.com:/rhgs/vol01/brick01/fs</name>
        <status>Connected</status>
        <numberOfEntries>0</numberOfEntries>
      </brick>


Example of non-functional --xml option:

[root@rhs-c01-n01 ~]# gluster --xml volume heal vol01 statistics heal-count
Gathering count of entries to be healed on volume vol01 has been successful 

Brick rhs-c01-n01.qa.int.phx1.redhat.com:/rhgs/vol01/brick01/fs
Number of entries: 0

Brick rhs-c01-n02.qa.int.phx1.redhat.com:/rhgs/vol01/brick01/fs
Number of entries: 0

Brick rhs-c01-n03.qa.int.phx1.redhat.com:/rhgs/vol01/brick01/fs
Number of entries: 0