Bug 1488018 - [RFE] Gluster get state command should provide volume and cluster utilization related information
Summary: [RFE] Gluster get state command should provide volume and cluster utilization...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterd
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS 3.3.1
Assignee: Atin Mukherjee
QA Contact: Bala Konda Reddy M
URL:
Whiteboard:
Depends On: 1431192
Blocks: 1475686
TreeView+ depends on / blocked
 
Reported: 2017-09-04 06:37 UTC by Atin Mukherjee
Modified: 2017-11-29 03:30 UTC (History)
10 users (show)

Fixed In Version: glusterfs-3.8.4-45
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1431192
Environment:
Last Closed: 2017-11-29 03:30:36 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3276 0 normal SHIPPED_LIVE glusterfs bug fix update 2017-11-29 08:28:52 UTC

Description Atin Mukherjee 2017-09-04 06:37:55 UTC
+++ This bug was initially created as a clone of Bug #1431192 +++

Description of problem:
Currently "gluster get-state" command does not give any volume and cluster usage related information. It should give information about the usage of volume and cluster like what is the full size of a volume/cluster and how much of it is currently full. Also it should give the status of cluster just like gstatus(https://github.com/gluster/gstatus) tool provides

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
If its very costly to provide this information please enhance gluster get-state to take an option something like "--detail". When "--detail" is provided get-state must provide all the details including the ones which are costly to fetch. Without this option it should only give information which are not costly.

This is needed for tendrl project: https://redhat.invisionapp.com/share/589XIRJBW#/screens/213318639

--- Additional comment from Samikshan Bairagya on 2017-03-15 07:35:18 EDT ---

This is what the gstatus README says:

"Capacity information is derived from the brick information taken from a 'vol status detail' command. The accuracy of this number therefore depends on the nodes/bricks being all up - elements missing from the configuration will simply be missing from the calculation."

The get-state CLI doesn't intend to aggregate results from individual nodes to provide a cluster level result like gstatus does. What get-state can do is provide the per-node information needed to compute the required data like volume and cluster utilisation on another layer.

--- Additional comment from Worker Ant on 2017-04-10 09:18:12 EDT ---

REVIEW: https://review.gluster.org/17029 (glusterd: Add brick capacity details to get-state CLI output) posted (#1) for review on master by Samikshan Bairagya (samikshan)

--- Additional comment from Worker Ant on 2017-04-14 14:14:39 EDT ---

REVIEW: https://review.gluster.org/17029 (glusterd: Add brick capacity details to get-state CLI output) posted (#2) for review on master by Samikshan Bairagya (samikshan)

--- Additional comment from Worker Ant on 2017-04-14 21:40:51 EDT ---

COMMIT: https://review.gluster.org/17029 committed in master by Atin Mukherjee (amukherj) 
------
commit c09f5a28bfd14066f9b8cfca53c7a9d999f1613e
Author: Samikshan Bairagya <samikshan>
Date:   Mon Apr 10 18:46:42 2017 +0530

    glusterd: Add brick capacity details to get-state CLI output
    
    Change-Id: I53fe180e71d41d56b129254b93bb74014a2cdb43
    BUG: 1431192
    Signed-off-by: Samikshan Bairagya <samikshan>
    Reviewed-on: https://review.gluster.org/17029
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Atin Mukherjee <amukherj>

--- Additional comment from Shyamsundar on 2017-05-30 14:47:11 EDT ---

This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.11.0, please open a new bug report.

glusterfs-3.11.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/announce/2017-May/000073.html
[2] https://www.gluster.org/pipermail/gluster-users/

Comment 2 Atin Mukherjee 2017-09-04 06:42:02 UTC
upstream patch : https://review.gluster.org/17029

Comment 3 Atin Mukherjee 2017-09-04 08:36:01 UTC
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/117167

Comment 5 Bala Konda Reddy M 2017-10-11 12:01:02 UTC
BUILD: 3.8.4-48

Space free and total for the local bricks of the volume are shown respective to the node.

Hence marking at as verified.

Comment 6 Ju Lim 2017-10-12 14:08:51 UTC
Just adding a related RFE BZ about wanting capacity utilization information for volume -- see https://bugzilla.redhat.com/show_bug.cgi?id=1501398.

Comment 9 errata-xmlrpc 2017-11-29 03:30:36 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.

https://access.redhat.com/errata/RHBA-2017:3276


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