Bug 1353427

Summary: [RFE] CLI to get local state representation for a cluster
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Atin Mukherjee <amukherj>
Component: glusterdAssignee: Samikshan Bairagya <sbairagy>
Status: CLOSED ERRATA QA Contact: Byreddy <bsrirama>
Severity: unspecified Docs Contact:
Priority: high    
Version: rhgs-3.1CC: bugs, rcyriac, rhinduja, rhs-bugs, sbairagy, storage-qa-internal, vbellur
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: USM-Gluster integration
Fixed In Version: glusterfs-3.8.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1353156 Environment:
Last Closed: 2017-03-23 05:39:16 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: 1353156, 1385839, 1387502    
Bug Blocks: 1351503    

Description Atin Mukherjee 2016-07-07 04:30:49 UTC
+++ This bug was initially created as a clone of Bug #1353156 +++

Description of problem:

There is no existing CLI that can be used to get the current local state representation of the cluster as maintained in glusterd in a readable as well as parseable format. The existing "statedump" infrastructure dumps stats related to memory allocation for a daemon by passing SIGUSR1 to it. This while useful for debugging purposes, does not reflect the local state representation of the cluster.

Expected results:

# gluster get-state [DAEMON] odir <path/to/output/dir>

This would dump data points that reflect the local state representation of the cluster as maintained in glusterd (by default if no daemon name is specified) to a file (say glusterd-state) inside the specified output directory. The option for specifying the daemon name would leave room to add support for other daemons as well. This data if required can then be parsed by external applications to represent the cluster state as obtained from glusterd in any other model.

Comment 2 Atin Mukherjee 2016-07-19 05:40:41 UTC
http://review.gluster.org/14873 posted for review.

Comment 9 Byreddy 2016-10-17 06:05:22 UTC
Verified below things using the build glusterfs-3.8.4-2.

1. CLI and it's options // gluster get-state [DAEMON] odir <path/to/output/dir>
2. Tested for all volume types.
3. Tested all the entries mentioned in the file.


Issues found & Change Requests are tracking in the bug - https://bugzilla.redhat.com/show_bug.cgi?id=1382277



This bug will be moved to VERIFIED STATE once issues and change requests are address.

Comment 10 Byreddy 2016-10-25 11:21:43 UTC
Issues found with the build glusterfs-3.8.4-2 are address in glusterfs-3.8.4-3 build with bz-https://bugzilla.redhat.com/show_bug.cgi?id=1382277.

Moving to verified state.

Comment 12 errata-xmlrpc 2017-03-23 05:39:16 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://rhn.redhat.com/errata/RHSA-2017-0486.html