[Bugs] [Bug 1344551] New: Automount fails because /sbin/ mount.glusterfs does not accept the -s option

bugzilla at redhat.com bugzilla at redhat.com
Fri Jun 10 02:39:23 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1344551

            Bug ID: 1344551
           Summary: Automount fails because /sbin/mount.glusterfs does not
                    accept the -s option
           Product: GlusterFS
           Version: 3.7.12
         Component: fuse
          Keywords: Triaged
          Assignee: ndevos at redhat.com
          Reporter: ndevos at redhat.com
                CC: bugs at gluster.org
        Depends On: 1340936



+++ This bug was initially created as a clone of Bug #1340936 +++

Description of problem:
automounting fails with the following error:

$ ls /lan/storage.lan.example.net/repos
ls: cannot open directory /lan/storage.lan.example.net/repos: Too many levels
of symbolic links


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

How reproducible:
100%

Steps to Reproduce:
0. install the autofs package
1. save the attached auto.lan as /etc/auto.lan and make executable
2. add a file /etc/auto.master.d/lan.autofs with the following contents
    /lan    /etc/auto.lan
3. enable the autofs service
4. access /lan/<storage-server>/<volume>/

Actual results:
Too many levels of symbolic links

Expected results:
access through /lan/... should just work

Additional info:
Enable debugging by putting OPTIONS="-d" in /etc/sysconfig/autofs and restart
autofs:

attempting to mount entry /lan/storage.lan.nixpanic.net/tftpboot
lookup_mount: lookup(program): /lan/storage.lan.nixpanic.net/tftpboot ->
-fstype=glusterfs,nodev,nosuid storage.lan.nixpanic.net:/tftpboot
parse_mount: parse(sun): expanded entry: -fstype=glusterfs,nodev,nosuid
storage.lan.nixpanic.net:/tftpboot
parse_mount: parse(sun): gathered options: fstype=glusterfs,nodev,nosuid
sun_mount: parse(sun): mounting root /lan/storage.lan.nixpanic.net/tftpboot,
mountpoint /lan/storage.lan.nixpanic.net/tftpboot, what
storage.lan.nixpanic.net:/tftpboot, fstype glusterfs, options nodev,nosuid
do_mount: storage.lan.nixpanic.net:/tftpboot
/lan/storage.lan.nixpanic.net/tftpboot type glusterfs options nodev,nosuid
using module generic
mount_mount: mount(generic): calling mkdir_path
/lan/storage.lan.nixpanic.net/tftpboot
mount_mount: mount(generic): calling mount -t glusterfs -s -o nodev,nosuid
storage.lan.nixpanic.net:/tftpboot /lan/storage.lan.nixpanic.net/tftpboot
spawn_mount: mtab link detected, passing -n to mount
>> /sbin/mount.glusterfs: illegal option -- s
>> Usage: /sbin/mount.glusterfs <volumeserver>:<volumeid/volumeport> -o<options> <mountpoint>
>> Options:
>> man 8 /sbin/mount.glusterfs
>> To display the version number of the mount helper: /sbin/mount.glusterfs -V
mount_mount: mount(generic): mounted storage.lan.nixpanic.net:/tftpboot type
glusterfs on /lan/storage.lan.nixpanic.net/tftpboot

--- Additional comment from Vijay Bellur on 2016-05-30 21:04:00 CEST ---

REVIEW: http://review.gluster.org/14559 (fuse: accept the -s option to allow
automounting) posted (#1) for review on master by Niels de Vos
(ndevos at redhat.com)

--- Additional comment from Vijay Bellur on 2016-05-31 11:01:44 CEST ---

COMMIT: http://review.gluster.org/14559 committed in master by Niels de Vos
(ndevos at redhat.com) 
------
commit c8da5669a15ed6944cceb9d003789ff333754bff
Author: Niels de Vos <ndevos at redhat.com>
Date:   Mon May 30 21:01:29 2016 +0200

    fuse: accept the -s option to allow automounting

    autofs passes the -s option when mounting. All /sbin/mount.<fs> helpers
    accept this, except mount.glusterfs. Because the helper fails when -s is
    passed accessing the mountpoint through autofs gives the following
    error:

      $ ls /lan/storage.lan.example.net/repos
      ls: cannot open directory /lan/storage.lan.example.net/repos: Too many
levels of symbolic links

    BUG: 1340936
    Change-Id: I84755cdac59e630618cb745c0eb3228cc1e93a1a
    Signed-off-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-on: http://review.gluster.org/14559
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Oleksandr Natalenko <oleksandr at natalenko.name>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1340936
[Bug 1340936] Automount fails because /sbin/mount.glusterfs does not accept
the -s option
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=nlm6TAdRCi&a=cc_unsubscribe


More information about the Bugs mailing list