Bug 1042821 - [SNAPSHOT]: Listing snapshot in detail ( -d ) option does not give all the details
Summary: [SNAPSHOT]: Listing snapshot in detail ( -d ) option does not give all the de...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: snapshot
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 3.0.0
Assignee: rjoseph
QA Contact: senaik
URL:
Whiteboard: SNAPSHOT
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-13 13:09 UTC by senaik
Modified: 2016-09-17 13:03 UTC (History)
6 users (show)

Fixed In Version: 3.4.1.5.snap.mar17.2014
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-22 19:30:22 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:1278 0 normal SHIPPED_LIVE Red Hat Storage Server 3.0 bug fix and enhancement update 2014-09-22 23:26:55 UTC

Description senaik 2013-12-13 13:09:54 UTC
Description of problem:
=======================
Listing snapshot in detail using "gluster snapshot list volume1 -d" command does not give the follwing details : 
-Space consumed by the snap 
-brick details 
-ro/rw mode 
-time taken to create the snap 


Version-Release number of selected component (if applicable):
=============================================================
glusterfs 3.4.0.snap.dec03.2013git


How reproducible:
=================
always


Steps to Reproduce:
====================
1.Create a distributed volume and start it 

2.Mount the volume and create some files 

3.Create multiple snaps of the volume 

4.List all the snapshots taken in detail :

gluster snapshot list volume1 -d

Volume Name : volume1
Number of snaps taken : 4
Number of snaps available : 252

	Snap Name : snap1
	Snap Time : 2013-12-10 07:07:56
	Snap ID : e1a2ef0b-c4e6-43fb-ab81-1749dd5b0923
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : snap2
	Snap Time : 2013-12-10 07:37:55
	Snap ID : 307c4b19-1bac-4073-9af7-6e740455f414
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : snap3
	Snap Time : 2013-12-10 09:20:02
	Snap ID : 67d036ea-e48d-425b-906c-c9696ce8a5e3
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : snap4
	Snap Time : 2013-12-10 09:26:41
	Snap ID : 9f72db9b-92a9-4b2f-958c-a0f8631e43a9
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : this is a snap of volume1
	Snap Status : In-use


Actual results:
==============
Listing snapshots in detail does not list 
-Space consumed by the snap 
-brick details 
-ro/rw mode 
-time taken to create the snap 


Expected results:
================
All the details of the snapshot must be listed 


Additional info:

Comment 3 rjoseph 2014-03-18 08:18:29 UTC
Due to change in cli, -d option is no more valid. We have the following new command to get the details.

gluster snapshot status [(<snap-name> | volume <vol-name>)]


In this phase we will not be providing following details
-ro/rw mode 
-time taken to create the snap 

Snap will always be in RO mode.

Comment 4 Rahul Hinduja 2014-03-18 08:54:00 UTC
Verified with build: glusterfs-3.4.1.5.snap.mar17.2014git-1.el6.x86_64

gluster volume status shows the brick information in detail as follows:

[root@snapshot-09 ~]# gluster snapshot status snap10

Snap Name : snap10
Snap UUID : 6a6da61a-de74-4bb7-be1e-0ef88de1694e

	Brick Path        :   10.70.42.220:/var/run/gluster/snaps/23ff0ef08b4d4951bb9fb955a541d7c3/dev-VolGroup0-23ff0ef08b4d4951bb9fb955a541d7c3-brick/b1
	Volume Group      :   VolGroup0
	Brick Running     :   Yes
	Brick PID         :   21284
	Data Percentage   :   0.13
	LV Size           :   7.90g


	Brick Path        :   10.70.43.20:/var/run/gluster/snaps/23ff0ef08b4d4951bb9fb955a541d7c3/dev-VolGroup0-23ff0ef08b4d4951bb9fb955a541d7c3-brick/b1
	Volume Group      :   VolGroup0
	Brick Running     :   Yes
	Brick PID         :   19467
	Data Percentage   :   0.13
	LV Size           :   7.90g


	Brick Path        :   10.70.43.186:/var/run/gluster/snaps/23ff0ef08b4d4951bb9fb955a541d7c3/dev-VolGroup0-23ff0ef08b4d4951bb9fb955a541d7c3-brick/b1
	Volume Group      :   VolGroup0
	Brick Running     :   Yes
	Brick PID         :   15952
	Data Percentage   :   0.13
	LV Size           :   7.90g


	Brick Path        :   10.70.43.70:/var/run/gluster/snaps/23ff0ef08b4d4951bb9fb955a541d7c3/dev-VolGroup0-23ff0ef08b4d4951bb9fb955a541d7c3-brick/b1
	Volume Group      :   VolGroup0
	Brick Running     :   Yes
	Brick PID         :   19994
	Data Percentage   :   0.13
	LV Size           :   7.90g


Moving the bug to verified state

Comment 5 Nagaprasad Sathyanarayana 2014-04-21 06:18:04 UTC
Marking snapshot BZs to RHS 3.0.

Comment 6 Nagaprasad Sathyanarayana 2014-05-19 10:56:39 UTC
Setting flags required to add BZs to RHS 3.0 Errata

Comment 9 errata-xmlrpc 2014-09-22 19:30:22 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-1278.html


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