[Bug 951925] [NEW] nfs-kernel-server init script calls non-existent /usr/bin/rpcinfo, failure disables NFSv3

Neil Bertram 951925 at bugs.launchpad.net
Sun Mar 11 00:57:36 UTC 2012


Public bug reported:

The /etc/init.d/nfs-kernel-server script in Precise has a reference at
line 115 to $PREFIX/bin/rpcinfo:


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

Where $PREFIX is /usr, making the path /usr/bin/rpcinfo

Since this command doesn't exist, RPCMOUNTDOPTS always includes --no-
nfs-version 3, meaning you can never run with NFSv3 support.

In Precice, the rpcbind package provides the rpcinfo binary, but it's in
/usr/sbin/rpcinfo, not /usr/bin/rpcinfo. In Oneiric both rpcbind and
libc-bin provided rpcinfo binaries, with the latter being
/usr/bin/rpcinfo. It appears libc-bin no longer includes rpcinfo in
Precise.

Elsewhere in the same init script (eg. line 88) reference is made to
/usr/sbin/rpcinfo as well, so looks like it was just a patchy job
updating this init script at some point.

Symlinking /usr/sbin/rpcinfo into /usr/bin/rpcinfo fixed the problem for
me, but obviously the init script needs updating.

This is on a complete fresh install of Precise server beta1 with latest
packages from the repos.

Environment:

Description:	Ubuntu precise (development branch)
Release:	12.04

nfs-kernel-server:
  Installed: 1:1.2.5-3ubuntu1
  Candidate: 1:1.2.5-3ubuntu1
  Version table:
 *** 1:1.2.5-3ubuntu1 0
        500 http://nz.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
libc-bin:
  Installed: 2.15-0ubuntu5
  Candidate: 2.15-0ubuntu5
  Version table:
 *** 2.15-0ubuntu5 0
        500 http://nz.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
rpcbind:
  Installed: 0.2.0-7ubuntu1
  Candidate: 0.2.0-7ubuntu1
  Version table:
 *** 0.2.0-7ubuntu1 0
        500 http://nz.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: nfs nfs-kernel-server precise rpcinfo

-- 
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/951925

Title:
  nfs-kernel-server init script calls non-existent /usr/bin/rpcinfo,
  failure disables NFSv3

Status in “nfs-utils” package in Ubuntu:
  New

Bug description:
  The /etc/init.d/nfs-kernel-server script in Precise has a reference at
  line 115 to $PREFIX/bin/rpcinfo:

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

  Where $PREFIX is /usr, making the path /usr/bin/rpcinfo

  Since this command doesn't exist, RPCMOUNTDOPTS always includes --no-
  nfs-version 3, meaning you can never run with NFSv3 support.

  In Precice, the rpcbind package provides the rpcinfo binary, but it's
  in /usr/sbin/rpcinfo, not /usr/bin/rpcinfo. In Oneiric both rpcbind
  and libc-bin provided rpcinfo binaries, with the latter being
  /usr/bin/rpcinfo. It appears libc-bin no longer includes rpcinfo in
  Precise.

  Elsewhere in the same init script (eg. line 88) reference is made to
  /usr/sbin/rpcinfo as well, so looks like it was just a patchy job
  updating this init script at some point.

  Symlinking /usr/sbin/rpcinfo into /usr/bin/rpcinfo fixed the problem
  for me, but obviously the init script needs updating.

  This is on a complete fresh install of Precise server beta1 with
  latest packages from the repos.

  Environment:

  Description:	Ubuntu precise (development branch)
  Release:	12.04

  nfs-kernel-server:
    Installed: 1:1.2.5-3ubuntu1
    Candidate: 1:1.2.5-3ubuntu1
    Version table:
   *** 1:1.2.5-3ubuntu1 0
          500 http://nz.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  libc-bin:
    Installed: 2.15-0ubuntu5
    Candidate: 2.15-0ubuntu5
    Version table:
   *** 2.15-0ubuntu5 0
          500 http://nz.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  rpcbind:
    Installed: 0.2.0-7ubuntu1
    Candidate: 0.2.0-7ubuntu1
    Version table:
   *** 0.2.0-7ubuntu1 0
          500 http://nz.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status

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




More information about the foundations-bugs mailing list