Bug 1371811

Summary: Failing to create the directory in the fuse mount
Product: Red Hat Gluster Storage Reporter: Byreddy <bsrirama>
Component: fuseAssignee: Csaba Henk <csaba>
Status: CLOSED WONTFIX QA Contact: Rahul Hinduja <rhinduja>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: nbalacha, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-16 18:17:38 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:

Description Byreddy 2016-08-31 07:47:40 UTC
Description of problem:
=======================
When i tried to recreate the deleted directory, it's failing with the below error message using the reproducing steps mentioned 

[root@ mnt]# ls
[root@ mnt]# 
[root@ mnt]# mkdir abc
mkdir: cannot create directory ‘abc’: File exists
[root@dhcp41-229 mnt]# 


Version-Release number of selected component (if applicable):
=============================================================
glusterfs-3.7.9-12.el7rhgs.x86_64


How reproducible:
=================
Always


Steps to Reproduce:
===================
1. Have one or two nodes cluster and two fuse clients
2. Create two distribute volumes ( vol1 and vol2) and start it.
3. fuse mount the vol1  on client1 using "/mnt" moint point ( v1 -> /mnt ) 
4. Create a "abc" directory inside the fuse mount point (/mnt ) -> /mnt/abc
5. fuse mount the "vol2" on client1 using "/mnt/abc" mount point
6. Again fuse mount the "vol1" on client2 using "/mnt" mount point ( v1 -> /mnt )
5. Now on client2, delete the "abc" directory inside the /mnt 
6. Now on client1, try to recreate the "abc" directory inside /mnt  // it will fail

Actual results:
===============
Failing to create directory in the fuse mount


Expected results:
=================
-


Additional info:
================
deleted directory "abc" does not present in the "vol1" bricks"

Comment 3 Byreddy 2016-08-31 07:59:50 UTC
This scenario is  based on  - https://www.gluster.org/pipermail/gluster-users/2016-August/028196.html