Bug 191461 - DHCP client drops fudge line from /etc/ntp.conf
DHCP client drops fudge line from /etc/ntp.conf
Product: Fedora
Classification: Fedora
Component: dhcp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Cantrell
Depends On:
  Show dependency treegraph
Reported: 2006-05-12 04:03 EDT by Kazutoshi Morioka
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-22 11:57:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to fix /sbin/dhclient-script (1.03 KB, text/x-patch)
2006-05-12 04:03 EDT, Kazutoshi Morioka
no flags Details

  None (edit)
Description Kazutoshi Morioka 2006-05-12 04:03:21 EDT
Description of problem:
DHCP client sets NTP servers if DHCP server has NTP server infomations.
In this case, /sbin/dhclient-script remove server lines from /etc/ntp.conf,
and add NTP servers from DHCP server, and copy "server" line from
pre-DHCP /etc/ntp.conf.
But /sbin/dhclient-script dosen't copy "fudge" line.
Without fudge line, ntpd treat local system clock with greater stratum
than expected.
This may cause confusion, and get ntpd to take longer time to synchronization.

Version-Release number of selected component (if applicable):
all versions of Fedora ntp package.

How reproducible:

Steps to Reproduce:
1. setup DHCP server
2. add "option ntp-servers" line to /etc/dhcpd.conf
3. start dhcp server
4. boot DHCP client with default NTP configuration.
Actual results:
/etc/ntp.conf has these server lines
server ntp0.example.com
server ntp1.example.com

Expected results:
server ntp0.example.com
server ntp1.example.com
fudge stratum 10

or, without meaningless local system clock
server ntp0.example.com
server ntp1.example.com

Additional info:
Because ntpd runs before firstboot, choosing "no local time source" in
NTP configuration is not in effect.
Comment 1 Kazutoshi Morioka 2006-05-12 04:03:21 EDT
Created attachment 128929 [details]
patch to fix /sbin/dhclient-script
Comment 2 Jason Vas Dias 2006-06-08 18:00:26 EDT
Thanks - now fixed with dhcp-3.0.4-14 (FC-6) and dhcp-3.0.3-28 (FC5).

Note You need to log in before you can comment on or make changes to this bug.