[Bug 1284210] Re: nfs-kernel-server mountd check only checks for nfsv3 via UDP, not TCP

Launchpad Bug Tracker 1284210 at bugs.launchpad.net
Tue Feb 25 17:50:55 UTC 2014


This bug was fixed in the package nfs-utils - 1:1.2.8-6ubuntu1

---------------
nfs-utils (1:1.2.8-6ubuntu1) trusty; urgency=medium

  * Merge from Debian unstable, remaining changes:
    - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
      debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
      debian/rules: drop nfs-common init script in favor of upstart jobs.
    - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
    - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
    - debian/nfs-common.default: always start idmapd automatically; drop
      the configuration option.
    - nfs-kernel-server.init: Unmount nfsd fs when init script stops
    - Allow issuing options to rpc.nfsd
    - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
      due to EKEYEXPIRED error from kernel on ticket expiry.

nfs-utils (1:1.2.8-6) unstable; urgency=medium

  * Fix the sec=krb5* handling in debian/nfs-common.init to properly match
    all cases.  Closes: #715478.
  * Move the rpc.svcgssd(8) symlink to nfs-common along with the rest of it,
    and add the Replaces: on old versions of nfs-kernel-server to support
    upgrades properly.  Closes: #731479.
  * Only start nfs-common in runlevel S; it doesn't need to be started
    more than once (and startpar won't actually run it more than once,
    anyway).  Closes: #510528.
  * Fix obsolete invocations of update-rc.d by switching nfs-common to use
    dh_installinit.  Closes: #736059.
  * Tweak nfs-common preinst to not remove nfs state files except on package
    removal (i.e., these should not be removed when the package is
    deconfigured temporarily).
  * debian/nfs-kernel-server.init: don't try to check for nfsv3 configuration
    in nfsd and pass --no-nfs-version 3 to mountd if absent; the check is
    buggy and impossible to make reliable, and there's no reason to single
    out NFSv3 here (and the original rationale for this behavior is lost).
    Closes LP: #897644, LP: #1284210.
  * Provide quoted entries by default in debian/nfs-kernel-server.default,
    consistent with other default files, so that users who edit the file to
    add multiple options don't accidentally cause shell syntax bugs.
 -- Steve Langasek <steve.langasek at ubuntu.com>   Tue, 25 Feb 2014 09:18:47 -0800

** Changed in: nfs-utils (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1284210

Title:
  nfs-kernel-server mountd check only checks for nfsv3 via UDP, not TCP

Status in “nfs-utils” package in Ubuntu:
  Fix Released

Bug description:
  I recently disabled UDP on our NFS server by setting --no-udp (or -U)
  and all of a sudden I could no longer get nfsv3 mounts to work. It
  turns out that this happens because of the check in /etc/init.d/nfs-
  kernel-server:

          rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                  RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

  That line only uses rpcinfo -u, so disabling UDP breaks the check. It
  should probably be something like:

         rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                  rpcinfo -t localhost nfs 3 >/dev/null 2>&1 ||
                  RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1284210/+subscriptions



More information about the foundations-bugs mailing list