[Bug 1616123] Re: rpc-svcgssd.service uses incorrrect variable SVCGSSDARGS

Andreas Hasenack andreas at canonical.com
Thu Mar 21 19:45:03 UTC 2019


Ok, this is the path the variable takes:

/etc/default/nfs-kernel-server:
RPCSVCGSSDOPTS

nfs-utils_env.sh: generates the config file sourced by rpc-svcgssd.service:
"export RPCSVCGSSDARGS=$RPCSVCGSSDOPTS" and others into /run/sysconfig/nfs-utils

(note the switch from ...OPTS to ...ARGS)

rpc-svcgssd.service:
sources /run/sysconfig/nfs-utils and runs /usr/sbin/rpc.svcgssd $SVCGSSDARGS

The .service file comes from the upstream tarball, whereas nfs-
utils_env.sh comes from debian.

In bug #1614261 a patch was suggested that exports an additional variable:
--- /usr/lib/systemd/scripts/nfs-utils_env.sh	2017-06-08 22:08:18+01	1.1
+++ /usr/lib/systemd/scripts/nfs-utils_env.sh	2017-06-08 22:12:08+01
@@ -12,7 +12,7 @@
 echo RPCNFSDARGS=\"$RPCNFSDOPTS ${RPCNFSDCOUNT:-8}\"
 echo RPCMOUNTDARGS=\"$RPCMOUNTDOPTS\"
 echo STATDARGS=\"$STATDOPTS\"
-echo RPCSVCGSSDARGS=\"$RPCSVCGSSDOPTS\"
+echo SVCGSSDARGS=\"$RPCSVCGSSDOPTS\"
 } > /run/sysconfig/nfs-utils
 
 # the following are supported by the systemd units, but not exposed in default files

I believe that is the last intrusive change, and we don't have to worry
about updating config files that users might have changed.

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

Title:
  rpc-svcgssd.service uses incorrrect variable SVCGSSDARGS

Status in nfs-utils package in Ubuntu:
  Confirmed
Status in nfs-utils source package in Xenial:
  Confirmed
Status in nfs-utils source package in Bionic:
  Confirmed
Status in nfs-utils source package in Cosmic:
  Confirmed
Status in nfs-utils package in Debian:
  New

Bug description:
  In /etc/default/nfs-kernel-server you can specify parameters for
  rpc.svcgssd:

  # Options for rpc.svcgssd.
  RPCSVCGSSDOPTS="-n"

  But the variable is named incorrectly in /lib/systemd/system/rpc-
  svcgssd.service:

  ExecStart=/usr/sbin/rpc.svcgssd $SVCGSSDARGS

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



More information about the foundations-bugs mailing list