nfs-common: rpc-svcgssd.service file uses SVCGSSDOPTS and not RPCSVCGSSDOPTS

Bug #1634159 reported by Soeren Grunewald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

The service file "rpc-svcgssd.service" passes the environment variable "SVCGSSDARGS" within the exec command. The environment is pulled from "/run/sysconfig/nfs-utils" file, which is generated by "/usr/lib/systemd/scripts/nfs-utils_env.sh" script, which is called by the "nfs-config.service", which is a dependency of "rpc-svcgssd.service".

The nfs-utils_env.sh script is used to collect the configuration settings from "/etc/default/nfs-common" and "/etc/default/nfs-kernel-server" to create the include file for the nfs service in /run.

Anyway $SVCGSSDOPTS is passed as argument for ExecStart, but it is never created. But "/etc/default/nfs-kernel-server" contains are predefined (and by default empty) variable RPCSVCGSSDOPTS with a comment '# Options for rpc.svcgssd'.

So could you please replace $SVCGSSDOPTS with $RPCSVCGSSDOPTS in /lib/systemd/system/rpc-svcgssd.service.

Some additional info:

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

$ apt-file search /lib/systemd/system/rpc-svcgssd.service
nfs-common: /lib/systemd/system/rpc-svcgssd.service

$ dpkg -l nfs-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================================-============================-============================-===================================================================================================
ii nfs-common 1:1.2.8-9ubuntu12 amd64 NFS support files common to client and server

$ cat /lib/systemd/system/rpc-svcgssd.service
[Unit]
Description=RPC security service for NFS server
DefaultDependencies=no
Requires=run-rpc_pipefs.mount
After=run-rpc_pipefs.mount local-fs.target
PartOf=nfs-server.service
PartOf=nfs-utils.service

ConditionPathExists=/etc/krb5.keytab

Wants=nfs-config.service
After=nfs-config.service

[Service]
EnvironmentFile=-/run/sysconfig/nfs-utils
Type=forking
ExecStart=/usr/sbin/rpc.svcgssd $SVCGSSDARGS

Revision history for this message
Soeren Grunewald (soeren-grunewald) wrote :

Actually it should be $RPCSVCGSSDARGS in service file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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