Bug 1129468

Summary: [RFE] Add a count of snapshots associated with a volume to the output of the vol info command
Product: Red Hat Gluster Storage Reporter: Paul Cuzner <pcuzner>
Component: snapshotAssignee: Avra Sengupta <asengupt>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: low Docs Contact:
Priority: low    
Version: rhgs-3.0CC: amukherj, asengupt, asrivast, rhinduja, rhs-bugs, rjoseph
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-19 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1360693 (view as bug list) Environment:
Last Closed: 2017-09-21 04:25:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 1360693, 1369326, 1369328, 1417138    

Description Paul Cuzner 2014-08-12 20:17:12 UTC
Description of problem:

Feature Request to add an indication of the snapshots available to a volume when querying a volume with the vol info command. At the moment an admin looking at a volume has to use two commands to even know whether the volume has snapshots. By introducing a "Snapshots Count"field to the output of the vol info command, the admin gets improved insight into the volume from a single command. 


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


How reproducible:
N/A

Steps to Reproduce:
1.
2.
3.

Actual results:
vol info currently provided no insight into a volumes snapshots at all

Expected results:
vol info should provide a high level indication of the presence of snapshots for a given volume.


Additional info:

Comment 2 Avra Sengupta 2016-10-20 09:32:49 UTC
Patch posted upstream master : http://review.gluster.org/15029

Comment 4 Atin Mukherjee 2017-03-06 08:52:08 UTC
This patch is already in rhg-3.2.0.

Comment 7 Anil Shah 2017-04-24 06:50:45 UTC
[root@rhs-arch-srv1 core]# gluster snapshot list vol0  | wc -l
256
[root@rhs-arch-srv1 core]# gluster v info vol0
 
Volume Name: vol0
Type: Distributed-Replicate
Volume ID: ad14ae5e-df3a-4e2b-ad3e-5ea263441484
Status: Started
Snapshot Count: 256
Number of Bricks: 4 x 3 = 12

Done basic sanity test for the RFE and looks ok.
Bug verified on build glusterfs-3.8.4-23.el7rhgs.x86_64

Comment 9 errata-xmlrpc 2017-09-21 04:25:52 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:2774

Comment 10 errata-xmlrpc 2017-09-21 04:53:56 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:2774