Bug#868650: network-online.target should not be reached before getaddrinfo() can succeed

Wouter Verhelst w at uter.be
Mon Jul 17 11:57:06 BST 2017


Hi,

On Mon, Jul 17, 2017 at 12:14:45PM +0200, Michael Biebl wrote:
> Control: tags -1 + moreinfo
> 
> Hi Wouter
> 
> Am 16.07.2017 um 12:05 schrieb Wouter Verhelst:
> > It would seem that systemd reaches network-online.target before the network is
> > fully functional
> network-online.target is just a concept not an implementation. It
> depends on the individual network config tool to hook properly into it.

Right, okay.

> What tools do you use to configure your network?

The test VM used ifupdown.

> systemd-networkd has systemd-network-wait-online.service which needs to
> be enabled and then hooks into network-online.target,
> 
> NetworkManager has NetworkManager-wait-online.service which needs to be
> enabled and then hooks into network-online-target,
> 
> ifupdown has no wait-online service. It simply runs ifup -a before
> network-online.target. This excludes allow-hotplug interfaces.

I suppose that "ifup -a" returns before everything's set up properly
then; that would explain it.

Thanks,

-- 
Could you people please use IRC like normal people?!?

  -- Amaya Rodrigo Sastre, trying to quiet down the buzz in the DebConf 2008
     Hacklab




More information about the Pkg-systemd-maintainers mailing list