glusterfs-client is build without /usr/bin/fusermount-glusterfs

Bug #1382989 reported by Radoslav Georgiev
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glusterfs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Release: Ubuntu 14.04 Trusty Tarh
glusterfs-client:
  Installed: 3.4.2-1ubuntu1
  Candidate: 3.4.2-1ubuntu1
  Version table:
 *** 3.4.2-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

When attempted to mount glusterfs volume in the client with custom options (e.g. umask, gid) via fstab or directly via command line (glusterfs --acl --fuse-mountopts=umask=007,gid=46 --volfile-id=/file-storage --volfile-server=gluster.numa.valsr.home --fuse-mountopts=umask=007,gid=46 /gluster/file-storage) fails with the following error:
[2014-10-19 05:23:13.387795] I [mount.c:290:gf_fuse_mount] 0-glusterfs-fuse: direct mount failed (Invalid argument), retry to mount via fusermount
[2014-10-19 05:23:13.388256] E [mount.c:162:fuse_mount_fusermount] 0-glusterfs-fuse: failed to exec fusermount: No such file or directory
[2014-10-19 05:23:13.388598] E [mount.c:298:gf_fuse_mount] 0-glusterfs-fuse: mount of gluster.numa.valsr.home:/file-storage to /gluster/file-storage (umask=007,gid=46,allow_other,max_read=131072) failed.

Expected: Mount will work.
What happened: Mount does not work, gives aforemention error.

Upon further investigation (via gdb) I am finding that the application is using /usr/bin/fusermount-glusterfs for fuse mounting (mount.c:162). The file /usr/bin/fusermount-glusterfs is not found in the ubuntu package (it is found in the debian package).

Here is the gdb session log:
romulus glusterfs # gdb --args glusterfs --acl --fuse-mountopts=umask=007,gid=46 --volfile-id=/file-storage --volfile-server=gluster.numa.valsr.home --fuse-mountopts=umask=007,gid=46 /gluster/file-storage
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from glusterfs...Reading symbols from /usr/lib/debug/.build-id/cd/2fb0834d0b7dfc9e284d682c4eae9af4af88ed.debug...done.
done.
(gdb) b mount.c:162
No source file named mount.c.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (mount.c:162) pending.
(gdb) set follow-fork-mode child
(gdb) r
Starting program: /usr/sbin/glusterfs --acl --fuse-mountopts=umask=007,gid=46 --volfile-id=/file-storage --volfile-server=gluster.numa.valsr.home --fuse-mountopts=umask=007,gid=46 /gluster/file-storage
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New process 14416]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New process 14421]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Switching to Thread 0x7ffff7fd0740 (LWP 14421)]

Breakpoint 1, fuse_mount_fusermount (mountpoint=mountpoint@entry=0x555555784310 "/gluster/file-storage", fsname=fsname@entry=0x555555783e40 "gluster.numa.valsr.home:/file-storage", mountflags=mountflags@entry=0,
    mnt_param=mnt_param@entry=0x555555784180 "umask=007,gid=46,allow_other,max_read=131072", fd=fd@entry=7) at ../../../../contrib/fuse-lib/mount.c:163
163 ../../../../contrib/fuse-lib/mount.c: No such file or directory.
(gdb) p argv
$1 = {0x7ffff55d39be "/usr/bin/fusermount-glusterfs", 0x7ffff55d39dc "-o", 0x55555578df00 "umask=007,gid=46,allow_other,max_read=131072,fsname=gluster.numa.valsr.home:/file-storage,nonempty,subtype=glusterfs", 0x7ffff55d39df "--",
  0x555555784310 "/gluster/file-storage", 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7ffff72cc5d9 <_libc_intl_domainname> "libc", 0x13c5fb330a702300 <error: Cannot access memory at address 0x13c5fb330a702300>, 0x7fffffffcd20 "\200AxUUU",
  0x7ffff7259f72 <__asprintf_chk+130> "H\201\304", <incomplete sequence \330>, 0x0, 0x3000000030 <error: Cannot access memory at address 0x3000000030>, 0x7fffffffced0 "0AxUUU", 0x7ffff72ccbfd "Invalid argument", 0x0,
  0x16 <error: Cannot access memory at address 0x16>, 0x0, 0x6 <error: Cannot access memory at address 0x6>, 0x555555784180 "umask=007,gid=46,allow_other,max_read=131072", 0x555555784310 "/gluster/file-storage", 0x0,
  0x7ffff71d840e <__GI___strerror_r+78> "H\203\304([]A\\A]A^A_\303H\215\065\357V\017", 0x7fff00000000 <error: Cannot access memory at address 0x7fff00000000>, 0x7ffff7210bc7 <__libc_fork+471> "I\213\004$M\213d$\b\307@(\001",
  0x7ffff7511e88 <fork_handler_pool+8> "", 0x7fffffffce70 "\377\377\377\377"}
(gdb) quit

Full glusterlog:
[2014-10-19 05:23:09.678761] I [glusterfsd.c:1910:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.4.2 (/usr/sbin/glusterfs --acl --fuse-mountopts=umask=007,gid=46 --volfile-id=/file-storage --volfile-server=gluster.numa.valsr.home --fuse-mountopts=umask=007,gid=46 /gluster/file-storage)
[2014-10-19 05:23:13.387795] I [mount.c:290:gf_fuse_mount] 0-glusterfs-fuse: direct mount failed (Invalid argument), retry to mount via fusermount
[2014-10-19 05:23:13.388256] E [mount.c:162:fuse_mount_fusermount] 0-glusterfs-fuse: failed to exec fusermount: No such file or directory
[2014-10-19 05:23:13.388598] E [mount.c:298:gf_fuse_mount] 0-glusterfs-fuse: mount of gluster.numa.valsr.home:/file-storage to /gluster/file-storage (umask=007,gid=46,allow_other,max_read=131072) failed
[2014-10-19 05:23:14.205228] E [glusterfsd.c:1744:daemonize] 0-daemonize: mount failed
[2014-10-19 05:23:14.206097] I [socket.c:3480:socket_init] 0-glusterfs: SSL support is NOT enabled
[2014-10-19 05:23:14.206140] I [socket.c:3495:socket_init] 0-glusterfs: using system polling thread
[2014-10-19 05:23:14.212271] I [graph.c:239:gf_add_cmdline_options] 0-file-storage-md-cache: adding option 'cache-posix-acl' for volume 'file-storage-md-cache' with value 'true'
[2014-10-19 05:23:14.213979] I [socket.c:3480:socket_init] 0-file-storage-client-0: SSL support is NOT enabled
[2014-10-19 05:23:14.214003] I [socket.c:3495:socket_init] 0-file-storage-client-0: using system polling thread
[2014-10-19 05:23:14.214028] I [client.c:2154:notify] 0-file-storage-client-0: parent translators are ready, attempting connect on transport
Given volfile:
+------------------------------------------------------------------------------+
  1: volume file-storage-client-0
  2: type protocol/client
  3: option transport-type tcp
  4: option remote-subvolume /data/file-storage/brick
  5: option remote-host gluster.numa.valsr.home
  6: end-volume
  7:
  8: volume file-storage-dht
  9: type cluster/distribute
 10: subvolumes file-storage-client-0
 11: end-volume
 12:
 13: volume file-storage-write-behind
 14: type performance/write-behind
 15: subvolumes file-storage-dht
 16: end-volume
 17:
 18: volume file-storage-read-ahead
 19: type performance/read-ahead
 20: subvolumes file-storage-write-behind
 21: end-volume
 22:
 23: volume file-storage-io-cache
 24: type performance/io-cache
 25: subvolumes file-storage-read-ahead
 26: end-volume
 27:
 28: volume file-storage-quick-read
 29: type performance/quick-read
 30: subvolumes file-storage-io-cache
 31: end-volume
 32:
 33: volume file-storage-open-behind
 34: type performance/open-behind
 35: subvolumes file-storage-quick-read
 36: end-volume
 37:
 38: volume file-storage-md-cache
 39: type performance/md-cache
 40: subvolumes file-storage-open-behind
 41: end-volume
 42:
 43: volume file-storage
 44: type debug/io-stats
 45: option count-fop-hits off
 46: option latency-measurement off
 47: subvolumes file-storage-md-cache
 48: end-volume

+------------------------------------------------------------------------------+
[2014-10-19 05:23:14.217433] I [rpc-clnt.c:1676:rpc_clnt_reconfig] 0-file-storage-client-0: changing port to 49152 (from 0)
[2014-10-19 05:23:14.217499] W [socket.c:514:__socket_rwv] 0-file-storage-client-0: readv failed (No data available)
[2014-10-19 05:23:14.220001] I [client-handshake.c:1659:select_server_supported_programs] 0-file-storage-client-0: Using Program GlusterFS 3.3, Num (1298437), Version (330)
[2014-10-19 05:23:14.221148] I [client-handshake.c:1456:client_setvolume_cbk] 0-file-storage-client-0: Connected to 192.168.0.71:49152, attached to remote volume '/data/file-storage/brick'.
[2014-10-19 05:23:14.221170] I [client-handshake.c:1468:client_setvolume_cbk] 0-file-storage-client-0: Server and Client lk-version numbers are not same, reopening the fds
[2014-10-19 05:23:14.227131] I [fuse-bridge.c:4769:fuse_graph_setup] 0-fuse: switched to graph 0
[2014-10-19 05:23:14.227231] I [client-handshake.c:450:client_set_lk_version_cbk] 0-file-storage-client-0: Server lk version = 1
[2014-10-19 05:23:14.227312] I [fuse-bridge.c:4628:fuse_thread_proc] 0-fuse: unmounting /gluster/file-storage

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glusterfs (Ubuntu):
status: New → Confirmed
Revision history for this message
James Page (james-page) wrote :

glusterfs-client package in artful now ships this file:

# dpkg -S /usr/bin/fusermount-glusterfs
glusterfs-client: /usr/bin/fusermount-glusterfs

Changed in glusterfs (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.