FS#41139 - [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:43 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 08 July 2014, 22:51 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
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  Doug Newgard (Scimmia)
Tuesday, 08 July 2014, 22:51 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#41137 

Loading...