[Bug 90267] ntp starts before the network is up in feisty

James boddingt at internode.on.net
Wed Mar 7 08:20:34 UTC 2007


Public bug reported:

Ntp gets started before the network is setup. I have this happen with 2
machines. Each gets their network information via dhcp. One machine was
installed from kubuntu herd4. The other was installed from kubuntu
herd5. Both machines are kept up to date. The following happens
consistently on both machines.

1. network manager starts
2. ntp is started but can only bind to lo because eth0 is not up yet
3. dhcp client brings up eth0
4. ntpdate is then run buts fails because ntp is already running

Mar  7 09:36:26 wilma NetworkManager: <information>^IWill activate wired connection 'eth0' because it now has a link. 
Mar  7 09:36:26 wilma NetworkManager: <information>^ISWITCH: no current connection, found better connection 'eth0'. 
Mar  7 09:36:26 wilma NetworkManager: <information>^IWill activate connection 'eth0'. 
Mar  7 09:36:26 wilma NetworkManager: <information>^IDevice eth0 activation scheduled... 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) started... 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 1 of 5 (Device Prepare) scheduled... 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 1 of 5 (Device Prepare) started... 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) scheduled... 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 1 of 5 (Device Prepare) complete. 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) starting... 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) successful. 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 3 of 5 (IP Configure Start) scheduled. 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) complete. 
Mar  7 09:36:26 wilma NetworkManager: <information>^IActivation (eth0) Stage 3 of 5 (IP Configure Start) started... 
Mar  7 09:36:27 wilma NetworkManager: <information>^IActivation (eth0) Beginning DHCP transaction. 
Mar  7 09:36:27 wilma NetworkManager: <information>^IActivation (eth0) Stage 3 of 5 (IP Configure Start) complete. 
Mar  7 09:36:27 wilma NetworkManager: <information>^IDHCP daemon state is now 12 (successfully started) for interface eth0 
Mar  7 09:36:27 wilma rpc.statd[4877]: Version 1.0.10 Starting
Mar  7 09:36:27 wilma ntpd[4896]: ntpd 4.2.2p4 at 1.1585-o Tue Nov 28 12:19:49 UTC 2006 (1)
Mar  7 09:36:27 wilma ntpd[4897]: precision = 1.000 usec
Mar  7 09:36:27 wilma ntpd[4897]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Mar  7 09:36:27 wilma ntpd[4897]: Listening on interface wildcard, ::#123 Disabled
Mar  7 09:36:27 wilma ntpd[4897]: Listening on interface lo, ::1#123 Enabled
Mar  7 09:36:27 wilma ntpd[4897]: Listening on interface lo, 127.0.0.1#123 Enabled
Mar  7 09:36:27 wilma ntpd[4897]: kernel time sync status 0040
Mar  7 09:36:27 wilma hcid[4914]: Bluetooth HCI daemon
Mar  7 09:36:27 wilma ntpd[4897]: frequency initialized -6.663 PPM from /var/lib/ntp/ntp.drift
Mar  7 09:36:28 wilma NetworkManager: <debug info>^I[1173224188.060423] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devic
es/platform_bluetooth'). 
Mar  7 09:36:28 wilma hcid[4914]: Starting SDP server
Mar  7 09:36:28 wilma NetworkManager: <information>^IDHCP daemon state is now 1 (starting) for interface eth0 
Mar  7 09:36:28 wilma dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mar  7 09:36:28 wilma dhclient: DHCPACK from 172.16.31.1
Mar  7 09:36:28 wilma avahi-daemon[4723]: Joining mDNS multicast group on interface eth0.IPv4 with address 172.16.31.3.
Mar  7 09:36:28 wilma avahi-daemon[4723]: New relevant interface eth0.IPv4 for mDNS.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Registering new address record for 172.16.31.3 on eth0.IPv4.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Withdrawing address record for 172.16.31.3 on eth0.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Leaving mDNS multicast group on interface eth0.IPv4 with address 172.16.31.3.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Interface eth0.IPv4 no longer relevant for mDNS.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Joining mDNS multicast group on interface eth0.IPv4 with address 172.16.31.3.
Mar  7 09:36:28 wilma avahi-daemon[4723]: New relevant interface eth0.IPv4 for mDNS.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Registering new address record for 172.16.31.3 on eth0.IPv4.
Mar  7 09:36:28 wilma NetworkManager: <information>^IDHCP daemon state is now 4 (reboot) for interface eth0 
Mar  7 09:36:28 wilma NetworkManager: <information>^IActivation (eth0) Stage 4 of 5 (IP Configure Get) scheduled... 
Mar  7 09:36:28 wilma NetworkManager: <information>^IActivation (eth0) Stage 4 of 5 (IP Configure Get) started... 
Mar  7 09:36:28 wilma NetworkManager: <information>^IRetrieved the following IP4 configuration from the DHCP daemon: 
Mar  7 09:36:28 wilma NetworkManager: <information>^I  address 172.16.31.3 
Mar  7 09:36:28 wilma NetworkManager: <information>^I  netmask 255.255.255.0 
Mar  7 09:36:28 wilma NetworkManager: <information>^I  broadcast 172.16.31.255 
Mar  7 09:36:28 wilma NetworkManager: <information>^I  gateway 172.16.31.254 
Mar  7 09:36:28 wilma NetworkManager: <information>^I  nameserver 172.16.31.1 
Mar  7 09:36:28 wilma NetworkManager: <information>^I  domain name 'bedrock' 
Mar  7 09:36:28 wilma NetworkManager: <information>^IActivation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled... 
Mar  7 09:36:28 wilma NetworkManager: <information>^IActivation (eth0) Stage 4 of 5 (IP Configure Get) complete. 
Mar  7 09:36:28 wilma NetworkManager: <information>^IActivation (eth0) Stage 5 of 5 (IP Configure Commit) started... 
Mar  7 09:36:28 wilma avahi-daemon[4723]: Withdrawing address record for 172.16.31.3 on eth0.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Leaving mDNS multicast group on interface eth0.IPv4 with address 172.16.31.3.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Interface eth0.IPv4 no longer relevant for mDNS.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Joining mDNS multicast group on interface eth0.IPv4 with address 172.16.31.3.
Mar  7 09:36:28 wilma avahi-daemon[4723]: New relevant interface eth0.IPv4 for mDNS.
Mar  7 09:36:28 wilma avahi-daemon[4723]: Registering new address record for 172.16.31.3 on eth0.IPv4.
Mar  7 09:36:28 wilma dhclient: bound to 172.16.31.3 -- renewal in 20870 seconds.
Mar  7 09:36:29 wilma NetworkManager: <information>^IClearing nscd hosts cache. 
Mar  7 09:36:29 wilma NetworkManager: <WARNING>^I nm_spawn_process (): nm_spawn_process('/usr/sbin/nscd -i hosts'): could not spawn process. (Failed to 
execute child process "/usr/sbin/nscd" (No such file or directory))  
Mar  7 09:36:29 wilma NetworkManager: <information>^IActivation (eth0) successful, device activated. 
Mar  7 09:36:29 wilma NetworkManager: <information>^IActivation (eth0) Finish handler scheduled. 
Mar  7 09:36:29 wilma NetworkManager: <information>^IActivation (eth0) Stage 5 of 5 (IP Configure Commit) complete. 
Mar  7 09:36:31 wilma avahi-daemon[4723]: Registering new address record for fe80::203:ceff:fe88:fb2e on eth0.*.
Mar  7 09:36:31 wilma ntpdate[5143]: the NTP socket is in use, exiting

** Affects: network-manager (Ubuntu)
     Importance: Undecided
     Assignee: Ubuntu Desktop Bugs
         Status: Confirmed
** Affects: ntp (Ubuntu)
     Importance: Medium
         Status: Unconfirmed
** Affects: upstart (Ubuntu)
     Importance: Medium
         Status: Unconfirmed

-- 
ntp starts before the network is up in feisty
https://launchpad.net/bugs/90267




More information about the desktop-bugs mailing list