[Bugs] [Bug 1210256] New: gluster volume info --xml gives back incorrect typrStr in xml

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 9 09:52:44 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1210256

            Bug ID: 1210256
           Summary: gluster volume info --xml gives back incorrect typrStr
                    in xml
           Product: GlusterFS
           Version: 3.7.0
         Component: cli
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: vbhat at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
gluster volume info shows correct volume type string (Distributed-replicate),
But xml output of the same command gives back wrong output. It gives
"Distibuted-Stripe"


Version-Release number of selected component (if applicable):
[root at spitfire ~]# gluster --xml --version
glusterfs 3.7dev built on Apr  2 2015 01:05:39


This was actually built from
http://download.gluster.org/pub/gluster/glusterfs/nightly/glusterfs/epel-6-x86_64/

How reproducible:
Always

Steps to Reproduce:
1. Create and start a volume.
2. Run gluster volume info --xml

Actual results:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opErrno>0</opErrno>
  <opErrstr/>
  <volInfo>
    <volumes>
      <volume>
        <name>master</name>
        <id>bdf97bbc-7796-4941-9b98-209b94c3f583</id>
        <status>2</status>
        <statusStr>Stopped</statusStr>
        <brickCount>4</brickCount>
        <distCount>2</distCount>
        <stripeCount>1</stripeCount>
        <replicaCount>2</replicaCount>
        <disperseCount>0</disperseCount>
        <redundancyCount>0</redundancyCount>
        <type>6</type>
        <typeStr>Distributed-Stripe</typeStr>
        <transport>0</transport>
        <xlators/>
        <bricks>
...
...
...


Expected results:
You can see the typeStr is "Distributed-Stripe" But it should have been
"Distributed-Replicate" as shown in volume info (human readable)

[root at spitfire ~]# gluster v i master

Volume Name: master
Type: Distributed-Replicate
Volume ID: bdf97bbc-7796-4941-9b98-209b94c3f583
Status: Stopped
Number of Bricks: 2 x 2 = 4
Transport-type: tcp



Additional info:
I have set the priority to high, because we parse this xml and volume info and
make decisions on the type. We expect the volume info to be correct.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list