Bug 879490

Summary: gluster peer probe --xml outputs wrong xml format
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Bala.FA <barumuga>
Component: glusterfsAssignee: Avra Sengupta <asengupt>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0CC: asengupt, dpati, pprakash, rhs-bugs, shaines, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0qa8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 22:34:36 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:

Description Bala.FA 2012-11-23 07:01:40 UTC
Description of problem:
"gluster peer probe <hostname> --xml" outputs wrong xml in case of error

<?xml version="1.0"?>
<cliOutput>
  <opRet>-1</opRet>
  <opErrno>107</opErrno>
  <opErrstr>(null)</opErrstr>
  <cliOp>peerProbe</cliOp>
  <output>Probe unsuccessful
Probe returned with unknown errno 107</output>
</cliOutput>


Version-Release number of selected component (if applicable):
glusterfs 3.3.0rhsvirt1-8.el6rhs

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
<?xml version="1.0"?>
<cliOutput>
  <opRet>-1</opRet>
  <opErrno>107</opErrno>
  <opErrstr>Probe unsuccessful Probe returned with unknown errno 107</opErrstr></cliOutput>


Additional info:

Comment 2 Vijay Bellur 2012-12-19 03:15:27 UTC
CHANGE: http://review.gluster.org/4301 (cli: Fixing the xml output in failure cases for gluster peer probe) merged in master by Anand Avati (avati)

Comment 4 Vijay Bellur 2012-12-19 08:49:54 UTC
CHANGE: http://review.gluster.org/4335 (cli: Making the op-ret check for gluster peer probe --xml more robust.) merged in master by Vijay Bellur (vbellur)

Comment 5 Prasanth 2013-05-02 06:52:54 UTC
Verified as fixed in glusterfs-3.4.0qa8

----------
# gluster peer probe qa-vm06.lab.eng.blr.redhat.com  --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>-1</opRet>
  <opErrno>107</opErrno>
  <opErrstr>Probe returned with unknown errno 107</opErrstr>
</cliOutput>
----------

Comment 6 Scott Haines 2013-09-23 22:34:36 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