rpc-svcgssd.service uses incorrrect variable SVCGSSDARGS

Bug #1616123 reported by Jochen on 2016-08-23
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
nfs-utils (Debian)
New
Unknown
nfs-utils (Ubuntu)
High
Andreas Hasenack
Xenial
Undecided
Andreas Hasenack
Bionic
Undecided
Andreas Hasenack
Cosmic
Undecided
Andreas Hasenack

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

Related branches

Jochen (jradmacher) wrote :
affects: xubuntu-meta (Ubuntu) → nfs-utils (Ubuntu)

The attachment "patch for rpc-svcgssd.service" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Jochen (jradmacher) on 2016-09-05
tags: added: nfs xenial
Launchpad Janitor (janitor) wrote :

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

Changed in nfs-utils (Ubuntu):
status: New → Confirmed
tags: added: server-next
Changed in nfs-utils (Ubuntu):
importance: Undecided → High
Changed in nfs-utils (Ubuntu Xenial):
assignee: nobody → Andreas Hasenack (ahasenack)
Changed in nfs-utils (Ubuntu Bionic):
assignee: nobody → Andreas Hasenack (ahasenack)
Changed in nfs-utils (Ubuntu Cosmic):
assignee: nobody → Andreas Hasenack (ahasenack)
Changed in nfs-utils (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
Changed in nfs-utils (Debian):
importance: Undecided → Unknown
status: New → Unknown
Changed in nfs-utils (Debian):
status: Unknown → New
Andreas Hasenack (ahasenack) wrote :

I still plan to work on this, just didn't get to it yet.

Andreas Hasenack (ahasenack) wrote :

Now that disco is in feature freeze, I hope to get to it as this is a bugfix.

Launchpad Janitor (janitor) wrote :

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

Changed in nfs-utils (Ubuntu Bionic):
status: New → Confirmed
Changed in nfs-utils (Ubuntu Cosmic):
status: New → Confirmed
Changed in nfs-utils (Ubuntu Xenial):
status: New → Confirmed
Andreas Hasenack (ahasenack) wrote :

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.

Andreas Hasenack (ahasenack) wrote :

Oh, wait, it's replacing the wrong variable. That's also fine :)

Changed in nfs-utils (Ubuntu):
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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