Bug 1016993 - Provide state of async tasks of all volumes in a new sub-command of 'volume status'
Summary: Provide state of async tasks of all volumes in a new sub-command of 'volume s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterd
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: RHGS 2.1.2
Assignee: Krutika Dhananjay
QA Contact: Prasanth
URL:
Whiteboard:
Depends On: 1012346
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-09 06:24 UTC by Krutika Dhananjay
Modified: 2015-05-13 16:29 UTC (History)
11 users (show)

Fixed In Version: glusterfs-3.4.0.49rhs
Doc Type: Bug Fix
Doc Text:
Previously, there was no command to retrieve the status and the various parameters of async tasks for one more volumes. The 'volume status [all]' command was used for this purpose and it additionally displayed the status, PIDs, port number of the bricks, self heal daemon and the NFS server. With this update, the 'tasks' option is introduced to the 'volume status' command to retrieve status of async tasks for one or more volumes.
Clone Of: 1012346
Environment:
Last Closed: 2014-02-25 07:50:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC

Description Krutika Dhananjay 2013-10-09 06:24:13 UTC
+++ This bug was initially created as a clone of Bug #1012346 +++

Description of problem:

The RHSC component needs a way of monitoring tasks using an inexpensive operation that can be consumed every 10 seconds to monitor all async tasks on all volumes in the cluster.

Version-Release number of selected component (if applicable):
N/A

How reproducible:
N/A

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Anand Avati on 2013-09-26 07:00:48 EDT ---

REVIEW: http://review.gluster.org/6006 (cli,glusterd: Implement 'volume status tasks') posted (#1) for review on master by Krutika Dhananjay (kdhananj)

--- Additional comment from Anand Avati on 2013-09-27 03:15:48 EDT ---

REVIEW: http://review.gluster.org/6006 (cli,glusterd: Implement 'volume status tasks') posted (#2) for review on master by Krutika Dhananjay (kdhananj)

--- Additional comment from Anand Avati on 2013-09-27 03:16:20 EDT ---

REVIEW: http://review.gluster.org/6006 (cli,glusterd: Implement 'volume status tasks') posted (#3) for review on master by Krutika Dhananjay (kdhananj)

--- Additional comment from Anand Avati on 2013-10-03 01:42:27 EDT ---

REVIEW: http://review.gluster.org/6006 (cli,glusterd: Implement 'volume status tasks') posted (#4) for review on master by Krutika Dhananjay (kdhananj)

--- Additional comment from Anand Avati on 2013-10-07 02:28:46 EDT ---

REVIEW: http://review.gluster.org/6006 (cli,glusterd: Implement 'volume status tasks') posted (#5) for review on master by Krutika Dhananjay (kdhananj)

--- Additional comment from Anand Avati on 2013-10-09 02:13:22 EDT ---

COMMIT: http://review.gluster.org/6006 committed in master by Anand Avati (avati) 
------
commit e51ca3c1c991416895e1e8693f7c3e6332d57464
Author: Krutika Dhananjay <kdhananj>
Date:   Tue Sep 24 17:01:46 2013 +0530

    cli,glusterd: Implement 'volume status tasks'
    
    oVirt's Gluster Integration needs an inexpensive command that can be
    executed every 10 seconds to monitor async tasks and their parameters,
    for all volumes.
    
    The solution involves adding a 'tasks' sub-command to 'volume status'
    to fetch only the async task IDs, type and other relevant parameters.
    Only the originator glusterd participates in this command as all the
    information needed is available on all the nodes. This is to make the
    command suitable for being executed every 10 seconds.
    
    Change-Id: I1edc607baf29b001a5585079dec681d7c641b3d1
    BUG: 1012346
    Signed-off-by: Krutika Dhananjay <kdhananj>
    Reviewed-on: http://review.gluster.org/6006
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Kaushal M <kaushal>

Comment 3 Prasanth 2013-12-19 12:03:29 UTC
Verified in glusterfs-3.4.0.49rhs

--------------

# gluster volume help |grep tasks
volume status [all | <VOLNAME> [nfs|shd|<BRICK>|quotad]] [detail|clients|mem|inode|fd|callpool|tasks] - display status of all or specified volume(s)/brick


# gluster volume status disvol tasks
Task Status of Volume disvol
------------------------------------------------------------------------------
Task                 : Rebalance           
ID                   : a484b698-d414-4084-b876-b597f705b950
Status               : completed 

--------------

Comment 4 Pavithra 2014-01-07 07:17:18 UTC
Can you please verify the doc text for technical accuracy?

Comment 5 Krutika Dhananjay 2014-01-07 07:20:27 UTC
LGTM.

Comment 7 errata-xmlrpc 2014-02-25 07:50:42 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


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