Bug 955611

Summary: missing status as string in volume status and rebalance/remove-brick status commands
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Bala.FA <barumuga>
Component: glusterfsAssignee: Kaushal <kaushal>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: low Docs Contact:
Priority: medium    
Version: unspecifiedCC: avishwan, dpati, grajaiya, kaushal, kparthas, psriniva, rhs-bugs, tjeyasin, vbellur, vraman
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.35.1u2rhs Doc Type: Bug Fix
Doc Text:
Previously, the status of the remove-brick and Rebalance operations was not present as a string in the XML output. The status could not be easily identified in the XML output. With this fix, a new element <statusStr> is added to the XML output containing a string that indicates the status of the task.
Story Points: ---
Clone Of:
: 1003521 (view as bug list) Environment:
Last Closed: 2014-02-25 07:28:31 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: 1003521    

Description Bala.FA 2013-04-23 12:02:03 UTC
'gluster volume status all --xml' outputs task status as number.  We would need the status as string like STARTED, RUNNING, STOPPED, COMPLETED etc

gluster version:
glusterfs-3.4.0.1rhs-1.el6rhs.x86_64

Comment 2 Aravinda VK 2013-08-30 09:34:01 UTC
Upstream patch sent for review.
http://review.gluster.org/#/c/5739

Comment 3 Aravinda VK 2013-09-20 06:56:20 UTC
Downstream patch sent to rhs-2.1 branch
https://code.engineering.redhat.com/gerrit/#/c/13114/

Comment 4 Kaushal 2013-10-22 10:32:05 UTC
The fix is available is glusterfs-3.4.0.35.1u2rhs.

Comment 5 SATHEESARAN 2013-12-20 05:23:00 UTC
Tested with glusterfs-3.4.0.51rhs.el6rhs

gluster volume status all --xml contains "status" with number ans "statusStr" under "tasks" xml tag

<task>
            <type>Remove brick</type>
            <id>6d526131-239b-4511-b77a-921e1d82e751</id>
            <status>3</status>
            <statusStr>completed</statusStr>
            <params>
              <brick>10.70.37.86:/rhs/brick1/d3</brick>
            </params>
</task>

<task>
            <type>Rebalance</type>
            <id>3b784847-db13-464a-bcc1-7512b5eac888</id>
            <status>3</status>
            <statusStr>completed</statusStr>
</task>

Marking this bug as VERIFIED.

Comment 6 Pavithra 2014-01-15 04:17:58 UTC
Hi Kaushal,

Can you please verify the technical accuracy of the doc text?

Comment 7 Kaushal 2014-01-15 05:39:32 UTC
The doc text looks good.

Comment 9 errata-xmlrpc 2014-02-25 07:28:31 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/RHEA-2014-0208.html