Bug 863114

Summary: DHT :- for distributed gluster volume, mounted on multiple path (on same client) lookup(stat, ls) shows different result for few dir. One mount point shows dir attribute while other shows '?' in dir attributes
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rachana Patel <racpatel>
Component: glusterfsAssignee: shishir gowda <sgowda>
Status: CLOSED DUPLICATE QA Contact: amainkar
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0CC: nsathyan, rhs-bugs, vbellur, vshankar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-17 08:57:45 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:
Attachments:
Description Flags
mnt log
none
mnt log none

Description Rachana Patel 2012-10-04 13:11:30 UTC
Description of problem:
DHT :-  for distributed gluster volume,  mounted on multiple path (on same client) lookup(stat, ls) shows different result for few dir. One mount point shows dir attribute while other shows '?' in dir attributes 
(log file says -Transport endpoint is not connected.)


Version-Release number of selected component (if applicable):
3.3.0.3rhs-32.el6rhs.x86_64

How reproducible:
always

Steps to Reproduce:
server :-
[root@Rhs3 t1]# gluster p s
Number of Peers: 2

Hostname: 10.70.35.85
Uuid: bb035a88-8a41-4fea-9e93-caca9a096d0a
State: Peer in Cluster (Connected)

Hostname: 10.70.35.81
Uuid: 74702ea2-e56e-4663-b755-d60b8b1fa988
State: Peer in Cluster (Connected)
[root@Rhs3 t1]# gluster volume status test
Status of volume: test
Gluster process						Port	Online	Pid
------------------------------------------------------------------------------
Brick 10.70.35.81:/home/t1				24009	Y	14722
Brick 10.70.35.85:/home/t1				24211	Y	12015
Brick 10.70.35.86:/home/t1				24212	Y	4072
NFS Server on localhost					38467	Y	4426
NFS Server on 10.70.35.81				38467	Y	15059
NFS Server on 10.70.35.85				38467	Y	12343


Client:-
[root@client test]# mount | grep test
10.70.35.86:/test on /mnt/test type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)
10.70.35.86:/test on /mnt/rahul-temp type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)

[root@client test]# ls -l /mnt/rahul-temp/
total 68
drwxr-xr-x.   2 u1   t1      18 Oct  4 12:10 d1
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d12
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d120
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d122
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d123
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d124
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d125
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d127
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d129
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d13
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d130
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d133
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d134
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d135
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d136
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d137
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d138
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d139
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d14
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d15
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d16
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d17
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d18
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d19
dr--r--r--.   2 root root    18 Oct  4 12:10 d2
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d20
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d22
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d24
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d26
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d27
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d28
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d29
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d3
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d30
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d31
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d32
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d34
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d35
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d37
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d38
drwxr-xr-x.   2 root root    18 Oct  4 16:22 d39
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d4
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d5
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d6
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d7
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d8
drwxr-xr-x.   2 root root    18 Oct  4 12:10 d9
drwxr-xr-x. 101 root root 12288 Oct  4 16:24 etc
[root@client test]# ls -l /mnt/test
ls: cannot access /mnt/test/d7: Invalid argument
ls: cannot access /mnt/test/d13: Invalid argument
ls: cannot access /mnt/test/d14: Invalid argument
ls: cannot access /mnt/test/d15: Invalid argument
ls: cannot access /mnt/test/d16: Invalid argument
total 50
drwxrwxrwx.   2 u1   t1     12 Oct  4 12:10 d1
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d12
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d120
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d122
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d123
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d124
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d125
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d127
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d129
???????????   ? ?    ?       ?            ? d13
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d130
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d133
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d134
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d135
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d136
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d137
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d138
drwxr-xr-x.   2 root root   12 Oct  4 16:08 d139
???????????   ? ?    ?       ?            ? d14
???????????   ? ?    ?       ?            ? d15
???????????   ? ?    ?       ?            ? d16
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d17
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d18
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d19
dr--r--r--.   2 root root   12 Oct  4 12:10 d2
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d20
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d22
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d24
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d26
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d27
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d28
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d29
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d3
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d30
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d31
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d32
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d34
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d35
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d37
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d38
drwxr-xr-x.   2 root root   12 Oct  4 16:06 d39
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d4
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d5
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d6
???????????   ? ?    ?       ?            ? d7
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d8
drwxr-xr-x.   2 root root   12 Oct  4 12:10 d9
drwxr-xr-x. 101 root root 8192 Oct  4 16:24 etc

  
Actual results:
for the same volume for few directory, it shows ?? in place of attributes

Expected results:
for the same volume, result should not be different from different mountpoint

Additional info:

Comment 2 Rachana Patel 2012-10-04 13:20:23 UTC
Created attachment 621639 [details]
mnt log

Comment 3 Rachana Patel 2012-10-04 13:20:47 UTC
Created attachment 621640 [details]
mnt log

Comment 4 Venky Shankar 2012-10-17 08:57:45 UTC

*** This bug has been marked as a duplicate of bug 856459 ***