Bug 1102047

Summary: [RFE] Need gluster cli command to retrieve current op-version on the RHS Node
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: glusterdAssignee: Gaurav Kumar Garg <ggarg>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: high    
Version: rhgs-3.0CC: amukherj, bmohanra, ggarg, kparthas, mzywusko, nlevinki, smohan, vagarwal, vbellur
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: glusterd
Fixed In Version: glusterfs-3.7.0-2.el6rhs Doc Type: Enhancement
Doc Text:
The following new command is introduced to retrieve the current op-version of the Red Hat Gluster Storage node. # gluster volume get <volname> cluster.op-version
Story Points: ---
Clone Of:
: 1199451 (view as bug list) Environment:
Last Closed: 2015-07-29 04:32:11 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: 1199451, 1202842    

Description SATHEESARAN 2014-05-28 11:48:59 UTC
Description of problem:
-----------------------
op-version is set using the option 'cluster.op-version'.
There should be a way to get the current op-version on the RHS Node

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHS 3.0 ( glusterfs-3.6.0.8-1.el6rhs )

How reproducible:
-----------------
Not Applicable as its a enhancement

Steps to Reproduce:
------------------
Not Applicable

Actual results:
---------------
No way to get the op-version supported on the RHS Node, other than looking at glusterd.info file

Expected results:
-----------------
1. There should be a way to get the op-version on RHS Node

Additional info:

Comment 1 Atin Mukherjee 2015-04-02 06:14:18 UTC
Upstream patch http://review.gluster.org/9821 is merged now. This bug can be moved to Modified state once the branching takes place.

Comment 2 SATHEESARAN 2015-04-10 03:57:11 UTC
(In reply to Atin Mukherjee from comment #1)
> Upstream patch http://review.gluster.org/9821 is merged now. This bug can be
> moved to Modified state once the branching takes place.

Correction. This bug could be moved ON_QA, once we have the downstream build as mentioned in ERRATA build -  is available, along with the fixed-in-version field updated

Comment 3 SATHEESARAN 2015-04-10 04:01:30 UTC
(In reply to SATHEESARAN from comment #2)
> (In reply to Atin Mukherjee from comment #1)
> > Upstream patch http://review.gluster.org/9821 is merged now. This bug can be
> > moved to Modified state once the branching takes place.
> 
> Correction. This bug could be moved ON_QA, once we have the downstream build
> as mentioned in ERRATA build -  is available, along with the
> fixed-in-version field updated

Apologies, I read comment1 as 'moved ON_QA' and hence made a comment2.

Comment 6 SATHEESARAN 2015-05-27 15:12:37 UTC
cluster.op-version could be now obtained using 'gluster volume get <vol-name>' command.

The following console log shows the command to retrieve 'cluster.op-version'

[root@ ~]# gluster volume get rvol op-version
Option                                  Value                                   
------                                  -----                                   
cluster.op-version                      30700 

Marking this bug as VERIFIED

Comment 7 SATHEESARAN 2015-05-27 16:00:22 UTC
(In reply to SATHEESARAN from comment #6)
> cluster.op-version could be now obtained using 'gluster volume get
> <vol-name>' command.
> 
> The following console log shows the command to retrieve 'cluster.op-version'
> 
> [root@ ~]# gluster volume get rvol op-version
> Option                                  Value                               
> 
> ------                                  -----                               
> 
> cluster.op-version                      30700 
> 
> Marking this bug as VERIFIED

Verified with glusterfs-3.7.0-2.el6rhs

Comment 8 Bhavana 2015-07-15 06:02:21 UTC
Hi Gaurav,

The doc text is updated. Please review the same and share your technical review comments. If it looks ok, then sign-off on the same.

Regards,
Bhavana

Comment 10 errata-xmlrpc 2015-07-29 04:32:11 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-2015-1495.html