Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1447344

Summary: Failure reading from fuse dev causing aux mount failure in NetBSD
Product: [Community] GlusterFS Reporter: Sanoj Unnikrishnan <sunnikri>
Component: fuseAssignee: bugs <bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: bugs, csaba, rkavunga, vbellur
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: NetBSD   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-20 04:23:19 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:

Description Sanoj Unnikrishnan 2017-05-02 13:15:11 UTC
Regression tests failing with short read on fuse dev
test cases : tests/basic/quota_aux_mount.t and other quota TC have been failing on netBSD:

glusterd log:

[2017-05-02 12:59:05.6N]:++++++++++ G_LOG:./tests/basic/quota_aux_mount.t: TEST: 38 10 quota_object_hard_limit /test_dir ++++++++++
[2017-05-02 12:59:05.367012] E [MSGID: 106176] [glusterd-quota.c:1947:glusterd_create_quota_auxiliary_mount] 0-management: Failed to mount glusterfs client. Please check the log file /build/
install/var/log/glusterfs/quota-mount-patchy.log for more details [File exists]
[2017-05-02 12:59:05.368422] E [MSGID: 106528] [glusterd-quota.c:2125:glusterd_op_stage_quota] 0-management: Failed to start aux mount


Now checking corresponding mount logs (/build/install/var/log/glusterfs/quota-mount-patchy.log)

[2017-05-02 12:59:04.6N]:++++++++++ G_LOG:./tests/basic/quota_aux_mount.t: TEST: 32 gluster --mode=script --wignore volume quota patchy limit-objects /test_dir 10 ++++++++++
[2017-05-02 12:59:04.587193] W [fuse-bridge.c:5060:fuse_thread_proc] 0-glusterfs-fuse: short read on /dev/fuse
[2017-05-02 12:59:04.587255] I [fuse-bridge.c:5153:fuse_thread_proc] 0-fuse: unmounting /build/install/var/run/gluster/patchy_quota_limit/
[2017-05-02 12:59:04.587821] W [glusterfsd.c:1329:cleanup_and_exit] (-->0x8050667 <glusterfs_sigwaiter+0xb7> at /build/install/sbin/glusterfs -->0x804ea67 <cleanup_and_exit+0x8d> at /build/i
nstall/sbin/glusterfs ) 0-: received signum (15), shutting down
[2017-05-02 12:59:04.587861] I [fuse-bridge.c:5867:fini] 0-fuse: Unmounting '/build/install/var/run/gluster/patchy_quota_limit/'.
[2017-05-02 12:59:04.598938] I [MSGID: 100030] [glusterfsd.c:2462:main] 0-/build/install/sbin/glusterfs: Started running /build/install/sbin/glusterfs version  (args: /build/install/sbin/glu
sterfs --volfile-server localhost --volfile-id patchy -l /build/install/var/log/glusterfs/quota-mount-patchy.log -p /build/install/var/run/gluster/patchy_quota_limit.pid --client-pid -5 /bui
ld/install/var/run/gluster/patchy_quota_limit/)
[2017-05-02 12:59:04.600212] E [fuse-bridge.c:5588:init] 0-fuse: mountpoint /build/install/var/run/gluster/patchy_quota_limit/ does not exist

>>> from code we have 
  fuse_thread_proc()
  ....
  res = sys_readv (priv->fd, iov_in, 2);
  if (res < sizeof (finh)) {
           gf_log ("glusterfs-fuse", GF_LOG_WARNING,
                   "short read on /dev/fuse");

  }
Will need to investigate further from  fuse +_NetBSD perspective

Comment 2 Vijay Bellur 2018-11-20 04:22:25 UTC
No active maintainers for NetBSD, hence closing this bug. Please feel free to re-open if you are interested in working on this bug. Thanks!