Bug 1241498

Summary: USS: Unable to copy files from snapshot to the mount point
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Anil Shah <ashah>
Component: snapshotAssignee: rjoseph
Status: CLOSED CURRENTRELEASE QA Contact: storage-qa-internal <storage-qa-internal>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: asengupt, rhs-bugs, smohan
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-21 06:57:42 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: 1223636    

Description Anil Shah 2015-07-09 10:43:51 UTC
Description of problem:

When files are deleted from cifs mount,  copying  deleted files from snapshot through Windows GUI, copy of files failed with error "You don't have permission to copy"

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

[root@darkknightrises ~]# rpm -qa | grep glusterfs
glusterfs-libs-3.7.1-8.el6rhs.x86_64
glusterfs-fuse-3.7.1-8.el6rhs.x86_64
glusterfs-debuginfo-3.7.1-8.el6rhs.x86_64
glusterfs-api-3.7.1-8.el6rhs.x86_64
glusterfs-geo-replication-3.7.1-8.el6rhs.x86_64
glusterfs-3.7.1-8.el6rhs.x86_64
glusterfs-server-3.7.1-8.el6rhs.x86_64
samba-vfs-glusterfs-4.1.17-12.el6rhs.x86_64
glusterfs-client-xlators-3.7.1-8.el6rhs.x86_64
glusterfs-cli-3.7.1-8.el6rhs.x86_64


How reproducible:

100%

Steps to Reproduce:
1. Create 2*2 distribute replicate volume
2. Enable USS 
3. Mount volume as cifs mount and mount volume through windows too
4. Create some file from the cifs mount
5. Take snapshot 
6. Delete created files from cifs mount.
7. Try copying files from snapshot using Widows GUI

Actual results:

Copy fails with error "You don't have permission to copy"

Expected results:

Files should get copied to the mount point


Additional info:

Volume Name: vol0
Type: Distributed-Replicate
Volume ID: 23b4a0c0-39f3-4a2a-b48b-cf945f8b03b6
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.33.214:/rhs/brick1/b001
Brick2: 10.70.33.219:/rhs/brick1/b002
Brick3: 10.70.33.225:/rhs/brick1/b003
Brick4: 10.70.44.13:/rhs/brick1/b004
Options Reconfigured:
diagnostics.client-log-level: DEBUG
features.barrier: disable
features.show-snapshot-directory: enable
performance.readdir-ahead: on
server.allow-insecure: on
performance.stat-prefetch: off
storage.batch-fsync-delay-usec: 0
features.uss: enable
features.quota: on
features.inode-quota: on
features.quota-deem-statfs: on
features.bitrot: on
features.scrub: Active
snap-activate-on-create: enable

Comment 3 rjoseph 2017-02-21 06:57:42 UTC
This issue seems to be fixed and is tested multiple times. Therefore I am closing this bug. Please feel free to reopen the issue if hit again.