Bug 1002295 - ypbind should not depend on NetworkManager-wait-online
Summary: ypbind should not depend on NetworkManager-wait-online
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: ypbind
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Honza Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-28 20:19 UTC by Elliott Forney
Modified: 2013-08-30 10:34 UTC (History)
2 users (show)

Fixed In Version: ypbind-1.37.1-7.fc20
Clone Of:
Environment:
Last Closed: 2013-08-30 10:34:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Elliott Forney 2013-08-28 20:19:22 UTC
Description of problem:

ypbind currently depends on NetworkManager-wait-online.  This causes a dependency failed warning from systemd during boot when using the plain network service instead of NetworkManager.

ypbind should only depend on network.target in F20.  I am told that network.target will now wait for NetworkManager-wait-online if NetworkManager is enabled.

See bug 921774

Comment 1 Honza Horak 2013-08-29 10:14:39 UTC
Thanks for reporting, I will fix it.

Comment 2 Honza Horak 2013-08-29 10:34:10 UTC
Actually it turned to be not so clear what caused the problem. See my comment in https://bugzilla.redhat.com/show_bug.cgi?id=921774#c3

Not that I'd have problem with removing After=NetworkManager-wait-online.service from the unit file, since it shouldn't be needed, but I'd rather find out the real cause of the problem first.

Comment 3 Dan Winship 2013-08-29 12:07:40 UTC
copying from the other bug:

I got it wrong before; you should replace NetworkManager-wait-online.service with network-online.target. That's the new abstracted target (in systemd >= 200), which is equivalent to NetworkManager-wait-online target when NM is active, but might make use of some other service in spins/distros that don't use NM.

(In reply to Honza Horak from comment #2)
> Not that I'd have problem with removing
> After=NetworkManager-wait-online.service from the unit file, since it
> shouldn't be needed, but I'd rather find out the real cause of the problem
> first.

Yeah, I don't know the details of systemd dependencies and error messages. It's possible you shouldn't *need* to remove it, but you definitely can remove it.

Comment 4 Honza Horak 2013-08-29 13:42:22 UTC
Thanks for making it clear. From what I understand from systemd.special(7) network-online.target is part of systemd and *don't have to be enabled* at all (if not required by other services).

On the other hand, NetworkManager-wait-online.service is part of NetworkManager and can be enabled even if network-online.target is not. Because of this reason I'd like to include both in After=, which should ensure proper ordering in case any of them is enabled.


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