dependency cycle with $remote_fs rcS init scripts

Bug #1428487 reported by Martin Pitt on 2015-03-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
High
Martin Pitt
pollinate (Ubuntu)
High
Martin Pitt

Bug Description

rcS init scripts which depend on $remote_fs currently cause a dependency cycle as NFS starts too late. We fixed apparmor in bug 1312976, but console-setup is still left:

Found ordering cycle on basic.target/start
Found dependency on sysinit.target/start
Found dependency on console-setup.service/start
Found dependency on remote-fs.target/start
Found dependency on remote-fs-pre.target/start
Found dependency on nfs-client.target/start
Found dependency on rpc-statd-notify.service/start
Found dependency on nfs-server.service/start
Found dependency on rpc-svcgssd.service/start
Found dependency on basic.target/start
Breaking ordering cycle by deleting job console-setup.service/start
Job console-setup.service/start deleted to break ordering cycle starting with basic.target/start

Martin Pitt (pitti) wrote :

I posted a proposed fix to the upstream ML (patch 2/2) a few days ago: http://www.spinics.net/lists/linux-nfs/msg49934.html

Changed in nfs-utils (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
Martin Pitt (pitti) on 2015-03-05
Changed in nfs-utils (Ubuntu):
milestone: none → ubuntu-15.03
tags: added: systemd-boot
Martin Pitt (pitti) wrote :

This also affects pollinate:

Mar 05 11:58:14 autopkgtest systemd[1]: Found ordering cycle on basic.target/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on sysinit.target/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on console-setup.service/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on remote-fs.target/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on remote-fs-pre.target/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on nfs-server.service/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on nfs-mountd.service/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on network.target/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on pollinate.service/start
Mar 05 11:58:14 autopkgtest systemd[1]: Found dependency on basic.target/start
Mar 05 11:58:14 autopkgtest systemd[1]: Breaking ordering cycle by deleting job console-setup.service/start

Changed in pollinate (Ubuntu):
status: New → In Progress
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
Martin Pitt (pitti) on 2015-03-05
Changed in pollinate (Ubuntu):
status: In Progress → Fix Committed
Martin Pitt (pitti) on 2015-03-05
Changed in nfs-utils (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pollinate - 4.10-0ubuntu2

---------------
pollinate (4.10-0ubuntu2) vivid; urgency=medium

  * debian/pollinate.service: Avoid default dependencies as we make
    network.target depend on pollinate, and that needs to be able to run early
    for NFS. (LP: #1428487)
 -- Martin Pitt <email address hidden> Thu, 05 Mar 2015 11:06:15 +0100

Changed in pollinate (Ubuntu):
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

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

---------------
nfs-utils (1:1.2.8-9ubuntu4) vivid; urgency=medium

  * Add autopkgtest for installing server and client on localhost, setting up
    two exports, rebooting, and ensuring that the NFS mounts work.
  * Add 23-systemd-relax-dependencies.patch: Stop depending on basic.target in
    the daemons which still do; i. e. add DefaultDependencies=no. This makes
    it possible to run NFS during early boot, helps if you e. g. have /var
    on NFS, and avoids dependency cycles with rcS init.d scripts which depend
    on $remote_fs. (LP: #1428487)
  * Shift number prefixes of other systemd patches accordingly, and adjust
    them to the above patch.
 -- Martin Pitt <email address hidden> Thu, 05 Mar 2015 10:43:54 +0100

Changed in nfs-utils (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers