Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1194547 - graphical.target should not wait for network-online.target
Summary: graphical.target should not wait for network-online.target
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2015-02-20 06:56 UTC by Konstantin Svist
Modified: 2017-01-18 18:57 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2017-01-18 18:57:35 UTC
Type: Bug

Attachments (Terms of Use)

Description Konstantin Svist 2015-02-20 06:56:34 UTC
Description of problem:
During bootup, a message is shown, "A start job is running
for NetworkManager wait online" and boot does not complete until this is done

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

How reproducible:
pretty often but not every time

Steps to Reproduce:

Actual results:
GUI login (graphical.target) is not reached until network connects (what if it never connects??)

Expected results:
graphical.target is reached regardless of network. Network can keep starting up in the background

Additional info:
# systemctl --reverse list-dependencies network-online.target 
● ├─network.service
● ├─ntpdate.service
● └─rpc-statd-notify.service

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-02-20 22:17:34 UTC
One of the services you list is pulling in network-online.target. Systemd is executes the dependency as specified by those units. Check which one is enabled (most likely ntpdate.service) and reassign to it. They might be able to fix it, or if they really need the dependency, they will close the bug.

Comment 2 Konstantin Svist 2015-02-20 22:46:13 UTC
I understand that ntpdate wants network-online -- but my argument is that graphical.target should not wait for either ntpdate or for network-online

As a user, I want to see GUI as soon as possible -- and if some services are still starting up, it's not a big deal

Comment 3 Zbigniew Jędrzejewski-Szmek 2015-02-20 23:42:18 UTC
Right, but please understand that systemd does not specify this dependency. ntpdate.service does. If you think it should do something different, take it up with ntpdate developers.

Comment 4 Lennart Poettering 2015-02-28 11:58:13 UTC
The ntpdate service waits for the network to be up. And it is configured to be started as part of bootup and finish before boot is completed. Either drop ntpdate from your system or convince the ntpdate maintainer that the service should have different deps (though I really don't think that would make much sense).

Anyway, reassigning, this is really between you and the ntpdate maintainer, it's not a systemd issue.

Comment 5 Konstantin Svist 2015-02-28 17:16:01 UTC
No, my argument is that ntpdate is not a prerequisite for graphical.target -- why is that so hard to understand??

Comment 6 Fedora End Of Life 2015-11-04 13:15:57 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Miroslav Lichvar 2016-11-22 12:14:59 UTC
As I understand it, this is not really an issue with the ntpdate service as it needs network in order to do something useful. I'm reassigning back to systemd. If this bug is no longer present in current Fedora, or you think it's not really a bug, please close.

My suggestion would be to disable the ntpdate service and enable an NTP daemon, like chronyd, ntpd, or systemd-timesyncd.

Comment 8 Zbigniew Jędrzejewski-Szmek 2017-01-18 18:57:35 UTC
Right, ntpdate.service wants to run after the network is up, and it also wants to run before multi-user.target, which is before graphical.target, hence it adds an ordering between network-online.target and graphical.target. Systemd then duly obeys specified constraints.

If you want to change this, either disable ntpdate, or modify it not to be before multi-user.target.

Note You need to log in before you can comment on or make changes to this bug.