[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Network services started before NIC UP.



I have a problem that services are started on a server I manage before
link is UP. This leads to some services failing, or not bound to every
addresses :

here is an excerpt from the logs :

Dec 10 18:21:24 tee acpid: starting up with netlink and the input layer
Dec 10 18:21:24 tee acpid: 1 rule loaded
Dec 10 18:21:24 tee acpid: waiting for events: event logging is off
Dec 10 18:21:24 tee ntpd[2361]: ntpd 4.2.6p5@1.2349-o Mon May 20
14:24:35 UTC 2013 (1)
Dec 10 18:21:24 tee ntpd[2479]: proto: precision = 0.134 usec
Dec 10 18:21:24 tee ntpd[2479]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123
Dec 10 18:21:24 tee ntpd[2479]: Listen and drop on 1 v6wildcard :: UDP 123
Dec 10 18:21:24 tee ntpd[2479]: Listen normally on 2 lo 127.0.0.1 UDP 123
Dec 10 18:21:24 tee ntpd[2479]: Listen normally on 3 eth0 88.190.17.120
UDP 123
Dec 10 18:21:24 tee ntpd[2479]: Listen normally on 4 eth0:0
88.191.245.121 UDP 123
Dec 10 18:21:24 tee ntpd[2479]: Listen normally on 5 lo ::1 UDP 123
Dec 10 18:21:24 tee ntpd[2479]: peers refreshed
Dec 10 18:21:24 tee ntpd[2479]: Listening on routing socket on fd #22
for interface updates
Dec 10 18:21:24 tee ntpd[2479]: Deferring DNS for canon.inria.fr 1
Dec 10 18:21:24 tee ntpd[2479]: Deferring DNS for ntp.obspm.fr 1
Dec 10 18:21:24 tee ntpd[2479]: Deferring DNS for ntp.sceen.net 1
Dec 10 18:21:24 tee ntpd[2479]: Deferring DNS for clock.tix.ch 1
Dec 10 18:21:24 tee ntpd[2479]: Deferring DNS for ntp.proserve.nl 1
Dec 10 18:21:24 tee ntpd[2519]: signal_no_reset: signal 17 had flags 4000000
Dec 10 18:21:25 tee nsd[2521]: can't bind udp socket: Cannot assign
requested address
Dec 10 18:21:25 tee nsd[2521]: server initialization failed, nsd could
not be started
Dec 10 18:21:26 tee kernel: [   18.584193] bnx2 0000:02:00.0 eth0: NIC
Copper Link is Up, 1000 Mbps full duplex
Dec 10 18:21:26 tee kernel: [   18.584196] , receive & transmit flow
control ON
Dec 10 18:21:26 tee kernel: [   18.584281] IPv6:
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec 10 18:21:26 tee ntpd_intres[2519]: host name not found: canon.inria.fr
Dec 10 18:21:26 tee ntpd_intres[2519]: host name not found: ntp.obspm.fr
Dec 10 18:21:26 tee ntpd_intres[2519]: host name not found: ntp.sceen.net
Dec 10 18:21:26 tee ntpd_intres[2519]: host name not found: clock.tix.ch
Dec 10 18:21:26 tee ntpd_intres[2519]: host name not found: ntp.proserve.nl
Dec 10 18:21:27 tee kernel: [   19.684249] Netfilter messages via
NETLINK v0.30.
Dec 10 18:21:27 tee kernel: [   19.686807] ip_set: protocol 6
Dec 10 18:21:28 tee ntpdate[2592]: Can't find host canon.inria.fr: Name
or service not known (-2)
Dec 10 18:21:28 tee ntpdate[2592]: Can't find host ntp.obspm.fr: Name or
service not known (-2)
Dec 10 18:21:28 tee ntpdate[2592]: Can't find host ntp.sceen.net: Name
or service not known (-2)
Dec 10 18:21:28 tee ntpdate[2592]: Can't find host clock.tix.ch: Name or
service not known (-2)
Dec 10 18:21:28 tee ntpdate[2592]: Can't find host ntp.proserve.nl: Name
or service not known (-2)
Dec 10 18:21:28 tee ntpdate[2592]: no servers can be used, exiting
Dec 10 18:21:30 tee ntpd[2479]: Listen normally on 6 eth0
2001:bc8:30d3::1 UDP 123
Dec 10 18:21:30 tee ntpd[2479]: Listen normally on 7 eth0
fe80::be30:5bff:fecf:8bcb UDP 123
Dec 10 18:21:30 tee ntpd[2479]: peers refreshed

You can see that ntpdate is started before network is ready. What is
more annoying is that I get an IPv6 prefix through dhcpv6 prefix
delegation, and even though the logs do not appear here, it seems the
dhcpv6 request is sent (by dibbler-client) before NIc is UP, which leads
to my prefix not being routed to my server.

Against which package should I report a bug, and is there a workaround
for next reboot ?

Thank you.


Reply to: