Bug 2043524

Summary: Annoying warning message ".device units cannot be delayed" when using _netdev on a mount point
Product: Red Hat Enterprise Linux 8 Reporter: Renaud Métrich <rmetrich>
Component: systemdAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: dtardon, jamacku, mark, orion, systemd-maint-list
Target Milestone: rcKeywords: Bugfix, Reproducer, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-239-70.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:07:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Renaud Métrich 2022-01-21 12:59:22 UTC
Description of problem:

When adding _netdev to a mount point, e.g. because the device is on iSCSI, the following warning messages are logged:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
dev-mapper-myvg\x2dmylv.device: Dependency Before=network-online.target ignored (.device units cannot be delayed)
dev-mapper-myvg\x2dmylv.device: Dependency Before=network.target ignored (.device units cannot be delayed)
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This message is very confusing.


Version-Release number of selected component (if applicable):

systemd-239-51


How reproducible:

Always


Steps to Reproduce:
1. Add "_netdev" to mount options for /boot
2. Reboot

Actual results:

Message at warning level:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Jan 21 13:54:45 vm-rhel8 systemd[1]: dev-disk-by\x2duuid-17c2c80a\x2dafad\x2d4b64\x2da31b\x2d55b21ced3740.device: Dependency Before=network-online.target ignored (.device units cannot be delayed)
Jan 21 13:54:45 vm-rhel8 systemd[1]: dev-disk-by\x2duuid-17c2c80a\x2dafad\x2d4b64\x2da31b\x2d55b21ced3740.device: Dependency Before=network.target ignored (.device units cannot be delayed)
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Expected results:

No message at all

Comment 2 Plumber Bot 2023-01-12 12:40:39 UTC
fix merged to github main branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/338

Comment 9 errata-xmlrpc 2023-05-16 09:07:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (systemd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2985