Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1161531 - [USS]: Unable to access .snaps after snapshot restore after directories were deleted and recreated
[USS]: Unable to access .snaps after snapshot restore after directories were ...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: snapshot (Show other bugs)
3.0
Unspecified Unspecified
unspecified Severity high
: ---
: RHGS 3.0.3
Assigned To: Vijaikumar Mallikarjuna
senaik
USS
: ZStream
Depends On:
Blocks: 1159263 1162498 1162694
  Show dependency treegraph
 
Reported: 2014-11-07 05:09 EST by senaik
Modified: 2016-09-17 08:54 EDT (History)
7 users (show)

See Also:
Fixed In Version: glusterfs-3.6.0.37-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1162498 (view as bug list)
Environment:
Last Closed: 2015-01-15 08:42:05 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0038 normal SHIPPED_LIVE Red Hat Storage 3.0 enhancement and bug fix update #3 2015-01-15 13:35:28 EST

  None (edit)
Description senaik 2014-11-07 05:09:16 EST
Description of problem:
======================
Unable to cd  to .snaps after restoring a volume to snapshot after directories were deleted and recreated 


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

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

Steps to Reproduce:
==================
1.Create a 2x2 dist-rep volume and start it

2.Fuse and NFS mount the volume 

3.Enable USS on the volume 

4.From fuse mount, create fuse_dir1 and files under them (fuse1..5)
  From NFS mount, create dir1 and files under them (nfs1..5)

5.Take a snapshot of the volume (snap1)

6.Create more files under fuse_dir1 (fuse6..10) and (nfs6..10) under dir1

7.Take another snapshot of the volume (snap2)

8. cd to .snaps from the directories and list the snaps 

9.Delete directories fuse_dir1 and dir1 and recreate them with same name and create some files under them (newfuse1..5 and newnfs1..5)

10.Take another snapshot of the volume (snap3)

11.Restore the volume to snap2 

12.Now cd to .snaps. It fails with error :

[root@dhcp-0-97 dir1]# cd .snaps
bash: cd: .snaps: No such file or directory


Actual results:
===============
Restoring a volume to snap which had the deleted directories and trying to access .snaps fails 


Expected results:
================
After restoring volume to a snap which had the deleted directories, user should be able to cd .snaps 

Additional info:
Comment 4 Vijaikumar Mallikarjuna 2014-11-10 07:29:55 EST
There are two scenarios here:

Scenario-A)
1. Create a directory 'xyz'
2. Create a snapshot 'snap1'
3. Delete directory 'xyz'
4. Create a new directory with the same name 'xyz'
5. Now cd to '/mnt/xyz/.snaps' will fail, because xyz is not part of any snapshot
   Even though the directory with the same name xyz exists in snapshot snap1, from the file-system point of view both are different.
This is a valid Scenario and can be documented.


Scenario-B)
1. Create a directory 'xyz'
2. Create snapshots 'snap1' and 'snap2'
3. Delete directory 'xyz'
4. Create another snapshot 'snap3'
5. Now restore the volume to 'snap2'
6. cd to '/mnt/xyz/.snaps' will fail.
   directory xyz exists in older snapshot snap1, but still it fails. Because uss checks is the directory exists in the latest snapshot, which is not found in snap3 and it fails.
   This is a bug. This needs to be fixed.
Comment 5 Vijaikumar Mallikarjuna 2014-12-05 04:50:50 EST
Patch submitted upstream: https://code.engineering.redhat.com/gerrit/37954
Comment 6 senaik 2014-12-15 05:01:31 EST
Version :glusterfs 3.6.0.38
========

Retried the steps as mentioned in 'Description' unable to reproduce the issue. 

Marking the bug as 'Verified'
Comment 8 errata-xmlrpc 2015-01-15 08:42:05 EST
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://rhn.redhat.com/errata/RHBA-2015-0038.html

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