Bug 1054151 - [SNAPSHOT]: Snapshot list shows epoch time on the nodes after glusterd restart
Summary: [SNAPSHOT]: Snapshot list shows epoch time on the nodes after glusterd restart
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: RHGS 3.0.0
Assignee: Sachin Pandit
QA Contact: senaik
URL:
Whiteboard: SNAPSHOT
Depends On: 1044476
Blocks: 1039956
TreeView+ depends on / blocked
 
Reported: 2014-01-16 10:46 UTC by senaik
Modified: 2016-09-17 12:54 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.4.2.snap.Mar11.2014
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-22 19:31:45 UTC
Embargoed:


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 2014-01-16 10:46:56 UTC
Description of problem:
=======================
Snapshot list shows epoch time on the nodes after glusterd restart 

Version-Release number of selected component (if applicable):
=============================================================
glusterfs 3.4.1.snap.jan15.2014git

How reproducible:


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

2.Take multiple snapshots on the volume 

3.List snapshots using gluster snapshot list <vol1>

 gluster snapshot list Vol1

Volume Name                  : Vol1
Number of snaps taken        : 5
Number of snaps available    : 251

	Snap Name         : Snap1
	Snap Time         : 2014-01-16 08:06:43
	Snap UUID         : 4f9330bb-1bca-4d3a-be1f-103785a76244

	Snap Name         : Snap2
	Snap Time         : 2014-01-16 08:07:13
	Snap UUID         : 71a7a2d7-79da-42dc-a6ca-7fadb9a11233

	Snap Name         : Snap3
	Snap Time         : 2014-01-16 08:08:21
	Snap UUID         : 204c4a02-a300-47dd-82e7-ca50c34c758c

	Snap Name         : Snap4
	Snap Time         : 2014-01-16 08:36:08
	Snap UUID         : 1025eb6b-ad2a-43af-9c47-e9190e4f6215

	Snap Name         : Snap5
	Snap Time         : 2014-01-16 08:39:18
	Snap UUID         : f3dbad2a-528b-45ea-9b6f-ae83f4247bed

4.Restart glusterd 

5. List snapshots again 

 gluster snapshot list Vol1

Volume Name                  : Vol1
Number of snaps taken        : 5
Number of snaps available    : 251

	Snap Name         : Snap1
	Snap Time         : 1970-01-01 05:30:00
	Snap UUID         : 4f9330bb-1bca-4d3a-be1f-103785a76244

	Snap Name         : Snap2
	Snap Time         : 1970-01-01 05:30:00
	Snap UUID         : 71a7a2d7-79da-42dc-a6ca-7fadb9a11233

	Snap Name         : Snap3
	Snap Time         : 1970-01-01 05:30:00
	Snap UUID         : 204c4a02-a300-47dd-82e7-ca50c34c758c

	Snap Name         : Snap4
	Snap Time         : 1970-01-01 05:30:00
	Snap UUID         : 1025eb6b-ad2a-43af-9c47-e9190e4f6215

	Snap Name         : Snap5
	Snap Time         : 1970-01-01 05:30:00
	Snap UUID         : f3dbad2a-528b-45ea-9b6f-ae83f4247bed

[root@snapshot-04 /]# date
Thu Jan 16 09:17:49 IST 2014


Actual results:
===============
Epoch time shown on the nodes after restarting glusterd 

Expected results:
================
Snap time should be shown as the system time before and after restarting glusterd 

Additional info:

Comment 2 Sachin Pandit 2014-02-06 08:48:36 UTC
This was happening because during glusterd snaptime was not getting read from the snap_list.info properly.
http://review.gluster.org/#/c/6720/

Comment 3 senaik 2014-02-07 09:02:20 UTC
Version : glusterfs 3.4.1.0.snap.feb05.2014git
=======

On restarting glusterd , snaps taken on the volume are not listed , which is tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1044476 (Re-opened) 

Verification of this bug depends on 1044476 .Moving the bug to Assigned

Comment 5 Sachin Pandit 2014-03-11 07:31:10 UTC
We were hitting this issue because snapshot time was not made persistent during the snapshot create. Fixed it.

Comment 6 Avra Sengupta 2014-03-24 11:41:16 UTC
Fixed with http://review.gluster.org/#/c/7123/21

Comment 7 senaik 2014-03-26 11:02:40 UTC
Version : glusterfs 3.4.1.6.snap.mar25.2014git
=======
With the new snap driven changes, snapshot info command will be used to get the snapshot details and snapshot list will only be listing the snapshots as below :

[root@snapshot-01 ~]# gluster snapshot list
snap_vol1_1
snap_vol1_2
snap_vol1_3
snap_vol1_4

Steps:
------
1) On a dist-replicate volume, created 10 snapshots 
2) Use snapshot info command to get the snapshot information 

gluster snapshot info volume vol1
Volume Name               : vol1
Snaps Taken               : 10
Snaps Available           : 246
	Snapshot                  : snap_vol1_1
	Snap UUID                 : d45ccab8-8b06-4472-87e6-f329fa2322de
	Created                   : 2014-03-26 09:07:23
	Status                    : Started
 
	Snapshot                  : snap_vol1_2
	Snap UUID                 : 14636ecb-238e-49bb-974a-4ddc817b0a89
	Created                   : 2014-03-26 09:07:29
	Status                    : Started
 
	Snapshot                  : snap_vol1_3
	Snap UUID                 : 9b1a7b09-f885-49b9-a3f8-39bd51a3694e
	Created                   : 2014-03-26 09:07:33
	Status                    : Started


 gluster snapshot info snap_vol1_2
Snapshot                  : snap_vol1_2
Snap UUID                 : 14636ecb-238e-49bb-974a-4ddc817b0a89
Created                   : 2014-03-26 09:07:29
Snap Volumes:

	Snap Volume Name          : f0c649d867da4f58840c5136da1c5d55
	Origin Volume name        : vol1
	Snaps taken for vol1      : 10
	Snaps available for vol1  : 246
	Status                    : Started

3) Restart glusterd

4) Use snapshot info command again and the check the snap created time. 

gluster snapshot info volume vol1
Volume Name               : vol1
Snaps Taken               : 10
Snaps Available           : 246
	Snapshot                  : snap_vol1_1
	Snap UUID                 : d45ccab8-8b06-4472-87e6-f329fa2322de
	Created                   : 2014-03-26 09:07:23
	Status                    : Started
 
	Snapshot                  : snap_vol1_2
	Snap UUID                 : 14636ecb-238e-49bb-974a-4ddc817b0a89
	Created                   : 2014-03-26 09:07:29
	Status                    : Started
 
	Snapshot                  : snap_vol1_3
	Snap UUID                 : 9b1a7b09-f885-49b9-a3f8-39bd51a3694e
	Created                   : 2014-03-26 09:07:33
	Status                    : Started


gluster snapshot info snap_vol1_2
Snapshot                  : snap_vol1_2
Snap UUID                 : 14636ecb-238e-49bb-974a-4ddc817b0a89
Created                   : 2014-03-26 09:07:29
Snap Volumes:

	Snap Volume Name          : f0c649d867da4f58840c5136da1c5d55
	Origin Volume name        : vol1
	Snaps taken for vol1      : 10
	Snaps available for vol1  : 246
	Status                    : Started


Snapshot created time is shown correctly after restarting glusterd 

Marking the bug as 'Verified'

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

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

Comment 12 errata-xmlrpc 2014-09-22 19:31:45 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.