Sylvain CANOINE
2015-Dec-22 17:45 UTC
[CentOS] Network services start before network is up since migrating to 7.2
----- Mail original -----> De: "Gordon Messmer" <gordon.messmer at gmail.com> > ?: "centos" <centos at centos.org> > Envoy?: Vendredi 18 D?cembre 2015 12:06:26 > Objet: Re: [CentOS] Network services start before network is up since migrating to 7.2>>> The network service is not blocking the flow so it executes and systemd >>> carries on ... >>> >>> From the point of view of the system as soon as /etc/init.d/network start >>> has been called the service is running as a state... as you can see from >>> your logs lots of other services also start before the network interface >>> itself is up. >> I understand this, but why only on one of my servers ? Is the order the services >> start only a question of latencies ?I'm confused. I updated two more servers this afternoon, and... all is working well. The services start in correct order. Even after three reboots. So only one of the (now) five updated servers doesn't start properly. Then what is the difference ? All I see for now is the network.target unit seems not active on the failing server. (failing) # systemctl list-units|grep network network.service loaded active exited LSB: Bring up/down networking rhel-import-state.service loaded active exited Import network configuration from initramfs network-online.target loaded active active Network is Online (failing) # systemctl status network ? network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network) Active: active (exited) since lun. 2015-12-21 12:49:31 CET; 1 day 5h ago Docs: man:systemd-sysv-generator(8) d?c. 21 12:49:35 (failing) systemd[1]: Starting LSB: Bring up/down networking... d?c. 21 12:49:26 (failing) network[747]: Activation de l'interface loopback : [ OK ] d?c. 21 12:49:28 (failing) network[747]: Activation de l'interface ens160 : [ OK ] d?c. 21 12:49:31 (failing) network[747]: Activation de l'interface ens192 : [ OK ] d?c. 21 12:49:31 (failing) systemd[1]: Started LSB: Bring up/down networking. (correct) # systemctl list-units|grep network network.service loaded active exited LSB: Bring up/down networking rhel-import-state.service loaded active exited Import network configuration from initramfs network-online.target loaded active active Network is Online network.target loaded active active Network (correct) # systemctl status network ? network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network) Active: active (exited) since mar. 2015-12-22 17:42:15 CET; 33min ago Docs: man:systemd-sysv-generator(8) Process: 753 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS) d?c. 22 17:42:07 (correct) systemd[1]: Starting LSB: Bring up/down networking... d?c. 22 17:42:10 (correct) network[753]: Activation de l'interface loopback : [ OK ] d?c. 22 17:42:13 (correct) NET[935]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf d?c. 22 17:42:13 (correct) network[753]: Activation de l'interface ens160 : [ OK ] d?c. 22 17:42:15 (correct) network[753]: Activation de l'interface ens192 : [ OK ] d?c. 22 17:42:15 (correct) systemd[1]: Started LSB: Bring up/down networking. To be continued... Sylvain. Pensez ENVIRONNEMENT : n'imprimer que si ncessaire
Gordon Messmer
2015-Dec-23 09:11 UTC
[CentOS] Network services start before network is up since migrating to 7.2
On 12/22/2015 09:45 AM, Sylvain CANOINE wrote:> I'm confused. I updated two more servers this afternoon, and... all is working well. The services start in correct order. Even after three reboots. > So only one of the (now) five updated servers doesn't start properly. > > Then what is the difference ? All I see for now is the network.target unit seems not active on the failing server....> (failing) # systemctl status network > ? network.service - LSB: Bring up/down networking >I'm a little confused, too. But, it might be more informative to query the system for "network.target" than "network.service" since the former is the one missing. # rpm -V systemd # locate network.target /usr/lib/systemd/system/network.target # systemctl status network.target ? network.target - Network Loaded: loaded (/usr/lib/systemd/system/network.target; static; vendor preset: disabled) Active: active since Wed 2015-12-16 20:19:26 PST; 6 days ago Docs: man:systemd.special(7) http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget Dec 16 20:19:26 x systemd[1]: Reached target Network. Dec 16 20:19:26 x systemd[1]: Starting Network.
Sylvain CANOINE
2015-Dec-23 11:26 UTC
[CentOS] Network services start before network is up since migrating to 7.2
----- Mail original -----> De: "Gordon Messmer" <gordon.messmer at gmail.com> > ?: "centos" <centos at centos.org> > Envoy?: Mercredi 23 D?cembre 2015 10:11:05 > Objet: Re: [CentOS] Network services start before network is up since migrating to 7.2> I'm a little confused, too. But, it might be more informative to query > the system for "network.target" than "network.service" since the former > is the one missing.# rpm -V systemd S.5....T. c /etc/rc.d/rc.local Ok, normal... # ll /usr/lib/systemd/system/network.target -rw-r--r--. 1 root root 480 20 nov. 05:49 /usr/lib/systemd/system/network.target # cat /usr/lib/systemd/system/network.target # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. [Unit] Description=Network Documentation=man:systemd.special(7) Documentation=http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget After=network-pre.target RefuseManualStart=yes # systemctl status network.target ? network.target - Network Loaded: loaded (/usr/lib/systemd/system/network.target; static; vendor preset: disabled) Active: inactive (dead) Docs: man:systemd.special(7) http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget Dead ? Hmmm... Sylvain. Pensez ENVIRONNEMENT : n'imprimer que si ncessaire
Reasonably Related Threads
- Network services start before network is up since migrating to 7.2
- Network services start before network is up since migrating to 7.2
- Network services start before network is up since migrating to 7.2
- Network services start before network is up since migrating to 7.2
- Network services start before network is up since migrating to 7.2