Bug#843063: systemd: does not show failed nfs mount when nfs server not available on booting the client

Michael Biebl biebl at debian.org
Wed Dec 21 12:06:13 GMT 2016


Control: tags -1 + moreinfo unreproducible

On Thu, 03 Nov 2016 16:31:21 +0100 Martin Steigerwald <martin.steigerwald at teamix.de> wrote:
> root at webserver01:~# systemctl status srv-web.mount
> ● srv-web.mount - /srv/web
>    Loaded: loaded (/etc/fstab)
>    Active: active (mounted) (Result: timeout) since Do 2016-11-03 16:03:09 CET; 21min ago
>     Where: /srv/web
>      What: fileserver:web
>      Docs: man:fstab(5)
>            man:systemd-fstab-generator(8)
> 
> Nov 03 16:01:39 webserver01 systemd[1]: Mounting /srv/web...
> Nov 03 16:03:09 webserver01 systemd[1]: srv-web.mount mounting timed out. Stopping.
> Nov 03 16:03:09 webserver01 systemd[1]: Mounted /srv/web.
> 
> In my oppinion the third line in the log is crap. Systemd didn´t mount


It seems I can't reproduce the problem.
I've tried with a jessie VM with 215-17+deb8u5 and added to fstab

10.20.30.40:/srv/nfs /mnt nfs _netdev 0 0

(that IP doesn't exist).

on boot, systemd waits for the mount and eventually times out.
After that, the system is in degraded state and the output is

● mnt.mount - /mnt
   Loaded: loaded (/etc/fstab)
   Active: failed (Result: timeout) since Mi 2016-12-21 12:51:59 CET; 57s ago
    Where: /mnt
     What: 10.20.30.40:/srv/nfs
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 329 ExecMount=/bin/mount -n 10.20.30.40:/srv/nfs /mnt -t nfs -o _netdev (code=killed, signal=TERM)

Dez 21 12:51:56 debian systemd[1]: mnt.mount mounting timed out. Stopping.
Dez 21 12:51:56 debian systemd[1]: Mounted /mnt.
Dez 21 12:51:59 debian systemd[1]: Unit mnt.mount entered failed state.


I have no idea, why here it shows
 Active: failed (Result: timeout)
and for you (with afaics basically the same setup) it shows
 Active: active (mounted) (Result: timeout)


The upstream commit in [1] doesn't look like it's a trivial cherry-pick either,
and I'm worried it has regression potential changing core logic.


Michael

[1] https://github.com/systemd/systemd/issues/4275
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20161221/acef14cb/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list