Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1135116

Summary: geo-replication: --xml output broken and/or misleading
Product: [Community] GlusterFS Reporter: nathan r. hruby <nhruby>
Component: cliAssignee: Aravinda VK <avishwan>
Status: CLOSED EOL QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3.5.2CC: avishwan, bugs, mselvaga
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Ubuntu 12.04
Last Closed: 2016-06-17 16:23:25 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 nathan r. hruby 2014-08-28 20:33:30 UTC
Description of problem:
Adding the "--xml" flag to geo-replication commands does not yield useful info.  

This seems to be a bug and a doc error.  For example, this is maddening with "status detail" because the xml return is bogus, but for "start" it seems correctish but unclear.

Note that some fields are difficult to parse in plain sting format (status detail being the leader, and most in need of parsing/ingest into other systems)

Version-Release number of selected component (if applicable):
3.5.2

How reproducible:
Always

Steps to Reproduce:
1. setup geo-replication
2. gluster --xml volume geo-replication SVOL THOST::TVOL status detail

Actual results:
get back XML that may or may not reflect actual data, but unable to verify.

Expected results:
Get useful XML corresponding to the data out woudl get in non-xml mode.


Additional info:
# here's a sucessful start
root@sm-dev-floor:~ # gluster --xml volume geo-replication test-floor sm-dev-sky::test-floor-replica start
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opErrno>9</opErrno>
  <opErrstr/>
  <geoRep>
    <type>1</type>
    <master>test-floor</master>
    <slave>sm-dev-sky::test-floor-replica</slave>
  </geoRep>
</cliOutput>
root@sm-dev-floor:~ #

# here is "status detail" ; note that without the --xml flag, the output looks correct and has much more data.
root@sm-dev-sky:~ # gluster --xml volume geo-replication test-more-replica sm-dev-floor::test-more-replica status detail
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opErrno>0</opErrno>
  <opErrstr/>
  <geoRep>
    <type>4</type>
  </geoRep>
</cliOutput>
root@sm-dev-sky:~ #

Comment 1 Niels de Vos 2016-06-17 16:23:25 UTC
This bug is getting closed because the 3.5 is marked End-Of-Life. There will be no further updates to this version. Please open a new bug against a version that still receives bugfixes if you are still facing this issue in a more current release.

Comment 2 Aravinda VK 2018-01-24 07:19:08 UTC
Bug is closed, removing Needinfo