[systemd-devel] systemctl isolate disconnects network

Andrei Borzenkov arvidjaar at gmail.com
Fri Jan 29 23:01:48 PST 2016


30.01.2016 03:22, Justin Garrison пишет:
> When trying to isolate targets I run systemctl isolate multi-user.target
> but on the systems I've tested (rhel 7.0-7.2 and Fedora 21-23) will also
> restart networking. It also appears that the network restart does not wait
> for NetworkManager-wait-online or systemd-networkd-wait-online even if I
> manually specify them for units in the target.
> 
> The problem is it doesn't appear the network restart honors LINKDELAY set
> in ifcfg-ethX files. We often find that systems switch target level and
> network is UP but has no ip address. Once the interface is UP it doesn't
> try to get an IP address and the system is in a stuck state if we were
> connected remotely. The only way to get out of this state is to either
> force a restart, go to the local console of the system (if available), or
> open a local tty session via the hypervisor (if the system is a VM)
> 
> Is there a way to stop network interfaces from restarting when switching
> targets? I haven't found a unit that defines this behavior but I don't see
> why this would be the case when init 3/5 never caused this behavior.
> 


I do not see any network restart (using NetworkManager) on openSUSE TW
with systemd 224. Try enabling debug and check which jobs exactly are
queued:

/bin/kill -RTMIN+22 1
systemctl islolate ...
journalctl -b




More information about the systemd-devel mailing list