[CentOS] Network services start before network is up since migrating to 7.2

Tue Dec 22 17:45:53 UTC 2015
Sylvain CANOINE <sylvain.canoine at tv5monde.org>

----- 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