FS#41137 - [nfs-utils] nfs-server.service fails when nfs-client.target is also enabled

Attached to Project: Arch Linux
Opened by Ed Branch (branch) - Tuesday, 08 July 2014, 22:27 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 03 February 2015, 14:48 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 13
Private No

Details

Description:
nfs-server.service fails due to an ordering cycle on rpc-statd-notify if nfs-client.target is also enabled.

Additional info:
* package version 1.3.0-3

* Exert from boot log:
Jul 07 10:13:45 fortuna systemd[1]: Found ordering cycle on rpc-statd-notify.service/start
Jul 07 10:13:45 fortuna systemd[1]: Found dependency on nfs-server.service/start
Jul 07 10:13:45 fortuna systemd[1]: Found dependency on rpc-gssd.service/start
Jul 07 10:13:45 fortuna systemd[1]: Found dependency on nfs-client.target/start
Jul 07 10:13:45 fortuna systemd[1]: Found dependency on rpc-statd-notify.service/start
Jul 07 10:13:45 fortuna systemd[1]: Breaking ordering cycle by deleting job nfs-server.service/start

* Suggested fix:
Add the following line to the [Unit] section of /usr/lib/systemd/system/nfs-client.target
DefaultDependencies=False

This will prevent systemd from inferring an "After=" from the "Wants=" in this target file.

Steps to reproduce:
1) systemctl enable nfs-server.service nfs-client.target
2) reboot

Can also reproduce just by trying to start both on same command:
systemctl start nfs-server.service nfs-client.target

This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 03 February 2015, 14:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.3.2-2
Comment by Ed Branch (branch) - Tuesday, 08 July 2014, 22:45 GMT
Forgot to put package name in summary. Superceded by  FS#41139 , requesting closure of this report.
Comment by Doug Newgard (Scimmia) - Tuesday, 08 July 2014, 22:55 GMT
Do not submit duplicate reports, we can fix the titles.
Comment by Artem A Klevtsov (unikum) - Saturday, 06 September 2014, 22:00 GMT
2 months have passed since opened without any results.
Comment by Daan van Rossum (drrossum) - Wednesday, 15 October 2014, 17:27 GMT
The issue is discussed in this thread:
https://bbs.archlinux.org/viewtopic.php?id=183999
Comment by Mitch Humpherys (mitch_feaster) - Wednesday, 12 November 2014, 20:44 GMT
Also discussed here:

https://bbs.archlinux.org/viewtopic.php?id=184588
https://bbs.archlinux.org/viewtopic.php?id=189548

In all cases the suggested fix seems to do the trick.

Loading...