Bug 1135116 - geo-replication: --xml output broken and/or misleading
Summary: geo-replication: --xml output broken and/or misleading
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: 3.5.2
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Aravinda VK
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-28 20:33 UTC by nathan r. hruby
Modified: 2018-01-24 07:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Ubuntu 12.04
Last Closed: 2016-06-17 16:23:25 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.