<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Found ordering cycle on local-fs.target/stop (Due to network mount)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70002">70002</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Found ordering cycle on local-fs.target/stop (Due to network mount)
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>umut@tezduyar.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>Adding a network mount point creates a cycling stop dependency that becomes
visible during shutdown with systemd 207.
I started seeing following message on my journal:
2013-09-30T23:19:23.726+00:00 [ WARNING ] systemd[1]: Found ordering cycle on
local-fs.target/stop
2013-09-30T23:19:23.726+00:00 [ INFO ] systemd[1]: Walked on cycle path to
var-spool-storage-NetworkShare.mount/stop
2013-09-30T23:19:23.727+00:00 [ INFO ] systemd[1]: Walked on cycle path to
network.target/stop
2013-09-30T23:19:23.728+00:00 [ INFO ] systemd[1]: Walked on cycle path to
<a href="mailto:net@eth0.service">net@eth0.service</a>/stop
2013-09-30T23:19:23.728+00:00 [ INFO ] systemd[1]: Walked on cycle path to
basic.target/stop
2013-09-30T23:19:23.736+00:00 [ INFO ] systemd[1]: Walked on cycle path to
sysinit.target/stop
2013-09-30T23:19:23.737+00:00 [ INFO ] systemd[1]: Walked on cycle path to
local-fs.target/stop
2013-09-30T23:19:23.740+00:00 [ WARNING ] systemd[1]: Breaking ordering cycle
by deleting job var-spool-storage-NetworkShare.mount/stop
Steps to reproduce
1) Mount network drive: mount -t cifs -o username=x,password=x //x.x.x.x/video
/var/spool/storage/NetworkShare
2) Powercycle with systemctl reboot
Cycle can be seen here:
[root@ /mnt/flash/root]1391# systemctl show -p Before
var-spool-storage-NetworkShare.mount
Before=local-fs.target umount.target
[root@ /mnt/flash/root]1391# systemctl show -p Before local-fs.target
Before=sysinit.target journal-flush.service
[root@ /mnt/flash/root]1391# systemctl show -p Before sysinit.target
Before=basic.target dbus.socket sshd.socket rescue.target rescue.service
[root@ /mnt/flash/root]1391# systemctl show -p Before basic.target
Before=rsyslog.service dbus.service sshdgenkeys.service multi-user.target
systemd-ask-password-wall.service <a href="mailto:net@eth0.service">net@eth0.service</a>
[root@ /mnt/flash/root]1391# systemctl show -p Before <a href="mailto:net@eth0.service">net@eth0.service</a>
Before=network.target shutdown.target
[root@ /mnt/flash/root]1391# systemctl show -p Before network.target
Before=multi-user.target var-spool-storage-NetworkShare.mount
I believe the problem is coming from:
src/core/mount.c (mount_add_one) > r = unit_add_dependency_by_name(u,
UNIT_BEFORE, SPECIAL_LOCAL_FS_TARGET, NULL, true);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>