Bug 800755

Summary: Input/output error on lookup of files from mountpoint
Product: [Community] GlusterFS Reporter: Shwetha Panduranga <shwetha.h.panduranga>
Component: replicateAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: mainlineCC: amarts, ashetty, gluster-bugs, netllama
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: BETA1
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:59:04 UTC Type: ---
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: 817967    
Attachments:
Description Flags
client2 log file none

Description Shwetha Panduranga 2012-03-07 07:23:45 UTC
Created attachment 568175 [details]
client2 log file

Description of problem:
Lookup of files from mount point reports Input/Output error. 

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

How reproducible:
often

Steps to Reproduce:
1.create a distribute-replicate volume 
2.start the volume
3.create a gluster,nfs mount from client1 and client2
4.start dd on gluster, nfs mount from client1
5. lookup of files from client2 mount points
  
Actual results:
Client1:-
---------
[03/07/12 - 17:56:09 root@APP-CLIENT1 gfsc1]# dd if=/dev/zero of=gfsf1 bs=1M count=102400

[03/07/12 - 17:56:19 root@APP-CLIENT1 nfsc1]# dd if=/dev/zero of=nfsf1 bs=1M count=102400

Client2:-
-----------
[03/07/12 - 12:52:49 root@Shwetha-Laptop gfsc1]# ls -lh
ls: cannot access nfsf1: Input/output error
ls: cannot access gfsf2: Input/output error
ls: cannot access nfsf2: Input/output error
ls: cannot access gfsf1: Input/output error
total 0
?????????? ? ? ? ?            ? gfsf1
?????????? ? ? ? ?            ? gfsf2
?????????? ? ? ? ?            ? nfsf1
?????????? ? ? ? ?            ? nfsf2



Expected results:
Should list the all the files without error. 

Additional info:

Comment 1 Shwetha Panduranga 2012-03-08 10:28:27 UTC
Lookup of files giving Invalid argument:

Setup:-
1. Distribute-Replicate Volume (2 x 2)
2. auth.allow set to client1
2. dd running on gluster mount and nfs mount from client1
3. lookup performed on nfs mount from client2

[03/08/12 - 15:21:24 root@Shwetha-Laptop nfsc1]# df -h .
Filesystem            Size  Used Avail Use% Mounted on
192.168.2.35:/dstore  100G   65M  100G   1% /mnt/nfsc1

[03/08/12 - 15:22:19 root@Shwetha-Laptop nfsc1]# ls -lh 
total 331M
-rw-r--r--. 1 root root 331M Mar  8  2012 gfsf1
-rw-r--r--. 1 root root    0 Mar  8  2012 nfsf1

[03/08/12 - 15:23:05 root@Shwetha-Laptop nfsc1]# ls -lh 
total 331M
-rw-r--r--. 1 root root 331M Mar  8  2012 gfsf1
-rw-r--r--. 1 root root    0 Mar  8  2012 nfsf1

[03/08/12 - 15:23:07 root@Shwetha-Laptop nfsc1]# ls -lh 
ls: cannot access gfsf1: Invalid argument
total 0
-?????????? ? ?    ?    ?            ? gfsf1
-rw-r--r--. 1 root root 0 Mar  8  2012 nfsf1

[03/08/12 - 15:23:08 root@Shwetha-Laptop nfsc1]# ls -lh 
ls: cannot access gfsf1: Invalid argument
total 80M
-?????????? ? ?    ?      ?            ? gfsf1
-rw-r--r--. 1 root root 80M Mar  8  2012 nfsf1

[03/08/12 - 15:23:18 root@Shwetha-Laptop nfsc1]# ls -lh 
ls: cannot access gfsf1: Invalid argument
total 189M
-?????????? ? ?    ?       ?            ? gfsf1
-rw-r--r--. 1 root root 248M Mar  8  2012 nfsf1

[03/08/12 - 15:23:28 root@Shwetha-Laptop nfsc1]# ls -lh 
ls: cannot access nfsf1: Invalid argument
ls: cannot access gfsf1: Invalid argument

Comment 2 Raghavendra G 2012-03-14 11:29:15 UTC
*** Bug 803209 has been marked as a duplicate of this bug. ***

Comment 3 Raghavendra G 2012-03-16 05:49:01 UTC
*** Bug 802018 has been marked as a duplicate of this bug. ***

Comment 4 Anand Avati 2012-03-18 07:30:26 UTC
CHANGE: http://review.gluster.com/2963 (cluster/afr: set_read_child when xactions in progress in fresh lookup) merged in master by Anand Avati (avati)

Comment 5 Shwetha Panduranga 2012-04-04 12:11:51 UTC
verified on 3.3.0qa33.