Bug 1159302
Summary: | [USS]: Unable to go to .snaps directory from any directories other than root after enabling uss | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | senaik | |
Component: | snapshot | Assignee: | Vijaikumar Mallikarjuna <vmallika> | |
Status: | CLOSED DUPLICATE | QA Contact: | senaik | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.0 | CC: | asengupt, rabhat, rhinduja, rhs-bugs, rjoseph, smohan, storage-qa-internal, surs, vmallika | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | USS | |||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1163416 (view as bug list) | Environment: | ||
Last Closed: | 2015-03-31 11:04:22 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: | ||
Embargoed: | ||||
Bug Depends On: | 1159283, 1303595 | |||
Bug Blocks: | 1160678, 1163416, 1303865, 1316096 |
Description
senaik
2014-10-31 12:38:54 UTC
As per the discussion with designer, "For .snaps to be accessible from a directory, it has to be part of atleast one of the snapshots taken. If a directory is not part of any snapshot, then you cant enter the snapshot world" However this bug still holds true as even after creating a snapshot we can not enter to the snapshot world from NFS protocol. (In reply to Rahul Hinduja from comment #2) > As per the discussion with designer, "For .snaps to be accessible from a > directory, it has to be part of atleast one of the snapshots taken. If a > directory is not part of any snapshot, then you cant enter the snapshot > world" It would be great if the reason for this decision is also mentioned here. This creates different user experience while accessing different directories, i.e. root directory behave in one fashion and the sub-directory in another. > > However this bug still holds true as even after creating a snapshot we can > not enter to the snapshot world from NFS protocol. I think this should be a different bug and should not be clubbed with this. This behavior is as per the design itself. Say /mnt/glusterfs is the mount point and it contains some snapshots and a directory dir is created newly and it is not part of any of the snapshots. Now when cd .snaps is done, the following operations happen. 1) lookup comes on root of the filesystem first, which snapview-client redirects to the normal graph and succeeds. 2) Lookup comes on /dir which snapview-client sends to the normal graph (because, root is a real inode and dir is not the name of the entry point) and succeeds 3) Now lookup comes on /dir/.snaps (i.e. inode of dir and name set to .snaps). Snapview client identifies that the parent inode is a real inode and entry name is the name of entry point and redirects it to the snap daemon. 4) Now, in snap daemon, the protocol/server tries to resolve the component on which lookup has come (i.e. inode of /dir and name set to ".snaps") 5) Since /dir was not looked up by snapd before it tries to resolve the gfid of /dir by doing an explicit lookup on that gfid. 6) The snapd now, tries to find the gfid (i.e. /dir in this context) in the latest snapshot taken (because that is the best and the latest information it has). 7) Since /dir is not part of any of the snapshots, snapd will not be able do a successful lookup on /dir and thus the lookup fails. 8) Since parent directory itself was not resolved properly, the lookup of .snaps if also considered a failure and failure is returned back. This is an expected behavior as per the design. We can document that .snaps can be entered from a directory only if it is present in the snapshot world. And as per the NFS behavior, I have updated the reason in the bug 1159283. There are two problems mentioned in the description. Patch http://review.gluster.org/#/c/9106/ solves the second problem when cd to .snaps works on FUSE, but fails on NFS. Patch https://code.engineering.redhat.com/gerrit/#/c/37954/ fixes the problem *** This bug has been marked as a duplicate of bug 1160621 *** |