Bug 1165663
| Summary: | [USS]: Inconsistent behaviour when a snapshot is default deactivated and when it is activated and than deactivated | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Rahul Hinduja <rhinduja> |
| Component: | snapshot | Assignee: | Vijaikumar Mallikarjuna <vmallika> |
| Status: | CLOSED ERRATA | QA Contact: | senaik |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | annair, asengupt, rhs-bugs, rjoseph, rkavunga, senaik, smohan, storage-qa-internal, vagarwal, vmallika |
| Target Milestone: | --- | ||
| Target Release: | RHGS 3.1.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | USS | ||
| Fixed In Version: | glusterfs-3.7.0-3.el6rhs | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-29 04:36:50 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: | |||
| Bug Blocks: | 1202842, 1223636 | ||
|
Description
Rahul Hinduja
2014-11-19 13:04:24 UTC
When you cd to <dir>/.snap for the first time when no snapshot is available which contains this directory will fail. This is because gfid of <dir> is not yet resolved in the protocol server at this time. When snapshot is activated and when you cd <dir>/.snaps. gfid of <dir> get resolved and stored in inode-table. Now when snapshot gets deactivated and cd to <dir>/.snaps/ gfid-resolve will not be done again for the <dir>. Fixed in upstream, now accessing .snaps will be successful once uss is activated. Version : glusterfs-3.7.1-4.el6rhs.x86_64 1) Create volume enable USS 2) On client create directory a from fuse mount and b from NFS mount 3) Create a snapshot S1 . This snapshot is default deactivated. cd to .snaps from client. Fuse mount : =========== cd to .snaps [root@dhcp35-63 vol0_fuse]# cd a/ [root@dhcp35-63 a]# cd .snaps [root@dhcp35-63 .snaps]# ll total 0 NFS mount : ========== [root@dhcp35-63 vol0_nfs]# cd b [root@dhcp35-63 b]# cd .snaps [root@dhcp35-63 .snaps]# ll total 0 4) Activate the snapshot and list under .snaps - successful 5) Deactivate the snapshot and list under .snaps Fuse mount: ========== [root@dhcp35-63 a]# cd .snaps [root@dhcp35-63 .snaps]# ll total 0 NFS mount : ========= [root@dhcp35-63 b]# cd .snaps [root@dhcp35-63 .snaps]# ll total 0 Behaviour is consistent as mentioned in Description in Scenario 1 and 2. Marking the bug 'Verified' 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/RHSA-2015-1495.html |