Date not updated by ntp when network interfaces started

Bug #567701 reported by Andrei Kopats
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server papercuts
Fix Released
Medium
Dave Walker
ntp (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: ntp

/etc/network/if-up.d/ntpdate contains script, which should update time, when network interface started.
But, time doesn't updated for me "from the box", because there are no valid ntp server in the default settings:

a@a-laptop:/etc$ cat default/ntpdate.orig
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.

# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=yes

# List of NTP servers to use (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="ntp.ubuntu.com"

# Additional options to pass to ntpdate
NTPOPTIONS=""
a@a-laptop:/etc$ cat ntp.conf
a@a-laptop:/etc$

/etc/default/ntpdate says to use /etc/ntp.conf, but, /etc/ntp.conf is empty
I don't know what is original idea of authors, but I fixed /etc/default/ntpdate for use ubuntu NTP server.

ProblemType: Bug
Architecture: i386
Date: Wed Apr 21 07:15:51 2010
DistroRelease: Ubuntu 9.10
Package: ntpdate 1:4.2.4p6+dfsg-1ubuntu5.1
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=ru_RU.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: ntp
Uname: Linux 2.6.31-20-generic i686

Revision history for this message
Andrei Kopats (hlamer) wrote :
Revision history for this message
Thierry Carrez (ttx) wrote :

Yes, that's not working out of the box.

Changed in ntp (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Nigel Jones (dev-nigelj) wrote :

Just to note, this appears to be working out of the box with current Maverick packages for me, there appears to be quite a few changes to NTP packaging as well.

Thierry Carrez (ttx)
Changed in server-papercuts:
importance: Undecided → Medium
milestone: none → maverick-alpha-2
status: New → Triaged
Dave Walker (davewalker)
Changed in server-papercuts:
assignee: nobody → Dave Walker (davewalker)
Revision history for this message
Dave Walker (davewalker) wrote :

I can confirm this is working in maverick. Manually skewing the date, restarting and checking the date reports the current date/time. It's been fixed somewhere in the cycle, so marking Fix Released.

Changed in ntp (Ubuntu):
status: Confirmed → Fix Released
Changed in server-papercuts:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.