Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #74053 > unrolled thread
| Started by | Harald Dunkel <harri@afaics.de> |
|---|---|
| First post | 2021-12-29 15:00 +0100 |
| Last post | 2022-02-01 14:20 +0100 |
| Articles | 5 — 4 participants |
Back to article view | Back to linux.debian.kernel
Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" Harald Dunkel <harri@afaics.de> - 2021-12-29 15:00 +0100
Processed: Re: Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-12-29 17:50 +0100
Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" Salvatore Bonaccorso <carnil@debian.org> - 2021-12-29 17:50 +0100
Re: Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" Harald Dunkel <harri@afaics.de> - 2022-01-16 20:00 +0100
Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" Harald Dunkel <harald.dunkel@aixigo.com> - 2022-02-01 14:20 +0100
| From | Harald Dunkel <harri@afaics.de> |
|---|---|
| Date | 2021-12-29 15:00 +0100 |
| Subject | Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" |
| Message-ID | <DzHEK-9u-5@gated-at.bofh.it> |
Package: nfs-common
Version: 1:1.3.4-6
systemd moans about krb5.keytab at boot time
```
# 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.
# systemctl status rpc-svcgssd
* rpc-svcgssd.service - RPC security service for NFS server
Loaded: loaded (/etc/systemd/system/rpc-svcgssd.service; static)
Active: failed (Result: exit-code) since Wed 2021-12-29 14:00:51 CET; 8min ago
Process: 301 ExecStart=/usr/sbin/rpc.svcgssd $SVCGSSDARGS (code=exited, status=1/FAILURE)
CPU: 6ms
Dec 29 14:00:50 nfs00.example.com systemd[1]: Starting RPC security service for NFS server...
Dec 29 14:00:50 nfs00.example.com rpc.svcgssd[302]: 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/@
Dec 29 14:00:50 nfs00.example.com rpc.svcgssd[302]: unable to obtain root (machine) credentials
Dec 29 14:00:50 nfs00.example.com rpc.svcgssd[302]: do you have a keytab entry for nfs/<your.host>@<YOUR.REALM> in /etc/krb5.keytab?
Dec 29 14:00:51 nfs00.example.com systemd[1]: rpc-svcgssd.service: Control process exited, code=exited, status=1/FAILURE
Dec 29 14:00:51 nfs00.example.com systemd[1]: rpc-svcgssd.service: Failed with result 'exit-code'.
Dec 29 14:00:51 nfs00.example.com systemd[1]: Failed to start RPC security service for NFS server.
```
Shouldn't svcgssd either exit silently with 0 or become optional? Looking at
nfs(5) Kerberos authentication for NFS appears to be optional, regardless if
there is a keytab file with or without NFS credentials.
Regards
Harri
[toc] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2021-12-29 17:50 +0100 |
| Subject | Processed: Re: Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" |
| Message-ID | <DzKjf-1ML-3@gated-at.bofh.it> |
| In reply to | #74053 |
Processing control commands: > tags -1 + moreinfo Bug #1002826 [nfs-common] rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" Added tag(s) moreinfo. -- 1002826: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002826 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [next] | [standalone]
| From | Salvatore Bonaccorso <carnil@debian.org> |
|---|---|
| Date | 2021-12-29 17:50 +0100 |
| Message-ID | <DzKjf-1ML-5@gated-at.bofh.it> |
| In reply to | #74053 |
Control: tags -1 + moreinfo
Hi
On Wed, Dec 29, 2021 at 02:36:14PM +0100, Harald Dunkel wrote:
> Package: nfs-common
> Version: 1:1.3.4-6
>
> systemd moans about krb5.keytab at boot time
>
> ```
> # 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.
>
> # systemctl status rpc-svcgssd
> * rpc-svcgssd.service - RPC security service for NFS server
> Loaded: loaded (/etc/systemd/system/rpc-svcgssd.service; static)
> Active: failed (Result: exit-code) since Wed 2021-12-29 14:00:51 CET; 8min ago
> Process: 301 ExecStart=/usr/sbin/rpc.svcgssd $SVCGSSDARGS (code=exited, status=1/FAILURE)
> CPU: 6ms
>
> Dec 29 14:00:50 nfs00.example.com systemd[1]: Starting RPC security service for NFS server...
> Dec 29 14:00:50 nfs00.example.com rpc.svcgssd[302]: 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/@
> Dec 29 14:00:50 nfs00.example.com rpc.svcgssd[302]: unable to obtain root (machine) credentials
> Dec 29 14:00:50 nfs00.example.com rpc.svcgssd[302]: do you have a keytab entry for nfs/<your.host>@<YOUR.REALM> in /etc/krb5.keytab?
> Dec 29 14:00:51 nfs00.example.com systemd[1]: rpc-svcgssd.service: Control process exited, code=exited, status=1/FAILURE
> Dec 29 14:00:51 nfs00.example.com systemd[1]: rpc-svcgssd.service: Failed with result 'exit-code'.
> Dec 29 14:00:51 nfs00.example.com systemd[1]: Failed to start RPC security service for NFS server.
> ```
>
> Shouldn't svcgssd either exit silently with 0 or become optional? Looking at
> nfs(5) Kerberos authentication for NFS appears to be optional, regardless if
> there is a keytab file with or without NFS credentials.
The rpc-svcgssd.service already has some conditionals:
ConditionPathExists=|!/run/gssproxy.pid
ConditionPathExists=|!/proc/net/rpc/use-gss-proxy
ConditionPathExists=/etc/krb5.keytab
If no /etc/krb5.keytab exists in fact the status will be
○ rpc-svcgssd.service - RPC security service for NFS server
Loaded: loaded (/usr/lib/systemd/system/rpc-svcgssd.service; static)
Active: inactive (dead)
Condition: start condition failed at Tue 2021-12-21 10:28:53 CET; 1 week 1 day ago
If you have a /etc/krb5.keytab then the condition is met to try to start
rpc-svcgssd.
Regards,
Salvatore
[toc] | [prev] | [next] | [standalone]
| From | Harald Dunkel <harri@afaics.de> |
|---|---|
| Date | 2022-01-16 20:00 +0100 |
| Subject | Re: Bug#1002826: rpc-svcgssd.service fails with "unable to obtain root (machine) credentials" |
| Message-ID | <DGiUV-66Y-7@gated-at.bofh.it> |
| In reply to | #74058 |
Hi Salvatore, would it be possible to check if there are some NFS credentials in the krb5.keytab file before issuing an error? Regards Harri
[toc] | [prev] | [next] | [standalone]
| From | Harald Dunkel <harald.dunkel@aixigo.com> |
|---|---|
| Date | 2022-02-01 14:20 +0100 |
| Message-ID | <DM1eG-19r-21@gated-at.bofh.it> |
| In reply to | #74058 |
Sure, but why does systemctl complain about rpc-svcgssd.service, if there are no NFS credentials inside? Its perfectly fine to run NFS without cryptographic security, even though /etc/krb5.keytab does exist. I have the impression that the conditionals you mentioned are not complete.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web