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:
This was happening because during glusterd snaptime was not getting read from the snap_list.info properly. http://review.gluster.org/#/c/6720/
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
We were hitting this issue because snapshot time was not made persistent during the snapshot create. Fixed it.
Fixed with http://review.gluster.org/#/c/7123/21
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'
Marking snapshot BZs to RHS 3.0.
Setting flags required to add BZs to RHS 3.0 Errata
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