rpc-svcgssd.service makes the system boot degraded

Bug #1452667 reported by Dimitri John Ledkov
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
Fix Released
High
Unassigned

Bug Description

$ sudo systemctl --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
● rpc-svcgssd.service loaded failed failed RPC security service for NFS server

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
djledkov@djledkov-mobl1:~/otc/packages$ systemctl status -l rpc-svcgssd.service
● rpc-svcgssd.service - RPC security service for NFS server
   Loaded: loaded (/lib/systemd/system/rpc-svcgssd.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2015-05-07 11:09:09 BST; 15min ago
  Process: 735 ExecStart=/usr/sbin/rpc.svcgssd $SVCGSSDARGS (code=exited, status=1/FAILURE)

May 07 11:09:09 djledkov-mobl1 systemd[1]: Starting RPC security service for NFS server...
May 07 11:09:09 djledkov-mobl1 rpc.svcgssd[742]: ERROR: GSS-API: error in gss_acquire_cred(): GSS_S_FAILURE (Unspecified GSS failure. Minor code may provide more information) - No key table entry found matching nfs/@
May 07 11:09:09 djledkov-mobl1 systemd[1]: rpc-svcgssd.service: control process exited, code=exited status=1
May 07 11:09:09 djledkov-mobl1 systemd[1]: Failed to start RPC security service for NFS server.
May 07 11:09:09 djledkov-mobl1 systemd[1]: Unit rpc-svcgssd.service entered failed state.
May 07 11:09:09 djledkov-mobl1 systemd[1]: rpc-svcgssd.service failed.

I expect my system to not be degraded, nor have any failed units.

I do not have any nfs configured.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: nfs-common 1:1.2.8-9ubuntu8.1
ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
Uname: Linux 3.19.0-16-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu May 7 11:25:06 2015
InstallationDate: Installed on 2014-08-15 (265 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to vivid on 2015-05-07 (0 days ago)
upstart.statd-mounting.override: manual
upstart.statd.override: manual

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in nfs-utils (Ubuntu):
status: New → Confirmed
Changed in nfs-utils (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at my system, where I also do not have any nfs configured the service is inactive but not failed.

bdmurray@blacklightning:~$ sudo systemctl --failed
[sudo] password for bdmurray:
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
bdmurray@blacklightning:~$ locate rpc-svcgssd.service
/lib/systemd/system/rpc-svcgssd.service
bdmurray@blacklightning:~$ dpkg -S /lib/systemd/system/rpc-svcgssd.service
nfs-common: /lib/systemd/system/rpc-svcgssd.service
bdmurray@blacklightning:~$ systemctl status -l rpc-svcgssd.service
● rpc-svcgssd.service - RPC security service for NFS server
   Loaded: loaded (/lib/systemd/system/rpc-svcgssd.service; static; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Tue 2015-06-23 21:09:12 PDT; 12h ago

Jun 23 21:09:12 blacklightning systemd[1]: Started RPC security service for NFS server.

So there must be something different between our systems.

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1452667] Re: rpc-svcgssd.service makes the system boot degraded

On Wed, Jun 24, 2015 at 04:49:17PM -0000, Brian Murray wrote:
> So there must be something different between our systems.

One of the conditions for starting rpc-svcgssd.service is:

ConditionPathExists=/etc/krb5.keytab

So Dimitri probably has Kerberos configured on his system, but not set up
for svcgssd?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

On 24 June 2015 at 19:51, Steve Langasek <email address hidden> wrote:
> On Wed, Jun 24, 2015 at 04:49:17PM -0000, Brian Murray wrote:
>> So there must be something different between our systems.
>
> One of the conditions for starting rpc-svcgssd.service is:
>
> ConditionPathExists=/etc/krb5.keytab
>
> So Dimitri probably has Kerberos configured on his system, but not set up
> for svcgssd?

Yes, I have. I manually invoke kinit, when I need / want kerberos ticket.

--
Regards,

Dimitri.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Should svcgssd even be started on the NFS client?

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

In comparing to Fedora I found the significance difference.
We don't have a gssproxy.service and the rpc-svcgssd.service we got from upstream definitely depends on that to function correctly.

Disabling "ConditionPathExists=|!/run/gssproxy.pid" because we have nothing creating that file makes rpc-svcgssd not start on bootup so it doesn't fail on the client. Seems we should either package gssproxy or strip it from the service files.

Related bugs: Warning from gssproxy not existing - https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1446851

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Removing it, I wasn't sure if I should also remove the -module part. Pastebining it because I haven't done enough testing to make sure it works in all situations.
http://pastebin.ubuntu.com/15126099/

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

I have test packages/debdiff here: http://people.canonical.com/~bryanquigley/nfs_bug/
Needs more testing on client, and no testing was done on server.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

My test fix failed badly in an actual kerberos environment.

tags: added: systemd-boot xenial
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Here is a better working fix, please test the ppa https://launchpad.net/~bryanquigley/+archive/ubuntu/lp1452667/

Been tested so far:
Kerberos/NFS Client
and a plain nfs client and server.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "nfs-utils_1.2.8-9ubuntu12.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

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

tags: added: patch
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Just tested with a kerberoized NFS server/client setup using freeipa server. Worked perfectly.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nfs-utils - 1:1.2.8-9ubuntu12

---------------
nfs-utils (1:1.2.8-9ubuntu12) xenial; urgency=medium

  * Drop gssproxy as it's not in Ubuntu (LP: #1446851)
  * Fix no nfs doesn't show failed units on client (LP: #1452667)

 -- Bryan Quigley <email address hidden> Wed, 02 Mar 2016 15:01:29 -0500

Changed in nfs-utils (Ubuntu):
status: Confirmed → Fix Released
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.