| Summary: | [SNAPSHOT] : For the same snap, Snap ID listed is different on different nodes | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | senaik |
| Component: | snapshot | Assignee: | Sachin Pandit <spandit> |
| Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | rhgs-3.0 | CC: | asengupt, nsathyan, rhinduja, rhs-bugs, rjoseph, sdharane, spandit, ssamanta, storage-qa-internal |
| Target Milestone: | --- | ||
| Target Release: | RHGS 3.0.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | SNAPSHOT | ||
| Fixed In Version: | 3.4.1.snap.jan15.2014 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-22 19:30: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: | |
| Bug Depends On: | 1044476, 1054151 | ||
| Bug Blocks: | |||
|
Description
senaik
2013-12-10 12:20:58 UTC
Snap UUID was different when listed from different node, The reason for that behaviour was, we used to generate a new UUID for snaps in each node and copy that to snap_uuid. Now we are copying the snap volume id of the snap to snap uuid, so that we can make the snap UUID same across nodes. Version : glusterfs 3.4.0.snap.dec30.2013git ======= On a distribute volume and distribute replicate volume, Snap ID is same across all the nodes for the same snap. But after restarting glusterd , the number of snaps listed is shown as 'zero' . This issue is tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1044476 Marking this bug as a dependent of BZ#1044476, since while verifying this bug QE would like to test if the SNAP ID remains the same after restarting glusterd as well . Node 1: ======= gluster snapshot list volume2 -d Volume Name : volume2 Number of snaps taken : 3 Number of snaps available : 253 Snap Name : SNAP1 Snap Time : 2013-12-30 11:25:18 Snap ID : 73df9768-1c69-48a5-803e-e8a0b4a6957f 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-30 11:25:28 Snap ID : 7ddb5e77-6ad5-48bd-b3d7-6afb3fafbc5f 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-30 11:25:37 Snap ID : 4c92b6e0-eb8d-4c32-9b53-0a543c3afbc4 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-03 brick7]# service glusterd restart Starting glusterd: [ OK ] [root@snapshot-03 brick7]# gluster snapshot list volume2 -d Volume Name : volume2 Number of snaps taken : 0 Number of snaps available : 256 NODE 2 : ======= gluster snapshot list volume2 -d Volume Name : volume2 Number of snaps taken : 3 Number of snaps available : 253 Snap Name : SNAP1 Snap Time : 2013-12-30 11:25:17 Snap ID : 73df9768-1c69-48a5-803e-e8a0b4a6957f 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-30 11:25:28 Snap ID : 7ddb5e77-6ad5-48bd-b3d7-6afb3fafbc5f 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-30 11:25:36 Snap ID : 4c92b6e0-eb8d-4c32-9b53-0a543c3afbc4 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-01 volume2]# service glusterd restart Starting glusterd: [ OK ] [root@snapshot-01 volume2]# gluster snapshot list volume2 -d Volume Name : volume2 Number of snaps taken : 0 Number of snaps available : 256 with build: 3.4.1.snap.jan15.2014 Node1: ====== [root@snapshot-01 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 2014-01-17 11:10:10 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 2014-01-17 11:10:17 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-01 ~]# [root@snapshot-01 ~]# [root@snapshot-01 ~]# [root@snapshot-01 ~]# service glusterd restart Starting glusterd: [ OK ] [root@snapshot-01 ~]# [root@snapshot-01 ~]# [root@snapshot-01 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 1970-01-01 05:30:00 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 1970-01-01 05:30:00 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-01 ~]# Node2: ====== [root@snapshot-02 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 2014-01-17 11:10:11 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 2014-01-17 11:10:18 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-02 ~]# [root@snapshot-02 ~]# [root@snapshot-02 ~]# [root@snapshot-02 ~]# service glusterd restart Starting glusterd: [ OK ] [root@snapshot-02 ~]# [root@snapshot-02 ~]# [root@snapshot-02 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 1970-01-01 05:30:00 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 1970-01-01 05:30:00 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-02 ~]# Node3: ====== [root@snapshot-03 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 2014-01-17 11:10:12 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 2014-01-17 11:10:18 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-03 ~]# [root@snapshot-03 ~]# [root@snapshot-03 ~]# [root@snapshot-03 ~]# service glusterd restart Starting glusterd: [ OK ] [root@snapshot-03 ~]# [root@snapshot-03 ~]# [root@snapshot-03 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 1970-01-01 05:30:00 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 1970-01-01 05:30:00 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-03 ~]# Node4: ====== [root@snapshot-04 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 2014-01-17 11:10:12 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 2014-01-17 11:10:18 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-04 ~]# [root@snapshot-04 ~]# [root@snapshot-04 ~]# [root@snapshot-04 ~]# service glusterd restart Starting glusterd: [ OK ] [root@snapshot-04 ~]# [root@snapshot-04 ~]# [root@snapshot-04 ~]# gluster snap list vol3 -d Volume Name : vol3 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : n1 Snap Time : 1970-01-01 05:30:00 Snap UUID : b57cb17d-3a30-4e86-93c2-4f6d2e73b15f CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use Snap Name : n2 Snap Time : 1970-01-01 05:30:00 Snap UUID : 4ed50af7-f6a3-4254-b9f5-ee4b85657331 CG Name : Does not exist CG ID : Does not exist Snap Description : Description not present Snap Status : In-use [root@snapshot-04 ~]# UUID across the nodes even after restarting ofglusterd, remain same. But the Snap Time changes to epoch time which is tracked in bz 1054151. Hence keeping it open and marking dependent on 1054151 Fixed with http://review.gluster.org/#/c/7123/21 Version : glusterfs 3.4.1.6.snap.mar25.2014 ======= With the new snap driven changes, snapshot list will only list snapshots & snapshot info will give details about the snapshot.Hence the Snap UUID will now be shown with 'gluster snapshot info' command On all the nodes for the same snap, SNAP UUID remains the same (after restarting glusterd also) gluster snapshot info snap_vol1_1 Snapshot : snap_vol1_1 Snap UUID : d45ccab8-8b06-4472-87e6-f329fa2322de Created : 2014-03-26 09:07:23 Snap Volumes: Snap Volume Name : 4811847d69e64eab98a78a7d39841390 Origin Volume name : vol1 Snaps taken for vol1 : 10 Snaps available for vol1 : 246 Status : Started 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 After restarting glusterd, check 'gluster snapshot info' again from all the nodes gluster snapshot info snap_vol1_1 Snapshot : snap_vol1_1 Snap UUID : d45ccab8-8b06-4472-87e6-f329fa2322de Created : 2014-03-26 09:07:23 Snap Volumes: Snap Volume Name : 4811847d69e64eab98a78a7d39841390 Origin Volume name : vol1 Snaps taken for vol1 : 10 Snaps available for vol1 : 246 Status : Started 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 For the same snap, SNAP UUID remains same across all the nodes. 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 |