Hide Forgot
Description of problem: NTP server info cannot save to /etc/ntp.conf if configure IP with dhcp. Version-Release number of selected component (if applicable): rhev-hypervisor-5.7-20110622 How reproducible: Always. Steps to Reproduce: 1. Configure network. 2. Configure networking device eth0 with dhcp. 3. Configure ntp server (10.66.72.203). 4. apply, can see below info on screen: testing ntp configuration verified ntp server: 10.66.72.203 ntpd: synchronizing with time server starting ntpd 5. return to shell and cat /etc/ntp.conf Actual results: The configured ntp server isn't in /etc/ntp.conf. Expected results: NTP server is saved to file /etc/ntp.conf. In additional info: 1. If configure ip with static way, the ntp server can save to file correctly. 2. dns have no such problem
on RHEL, add ntp server to /etc/ntp.conf and restart network service, the ntp server obtained by dhcp is appended to the one added by manual. on RHEV-H node, the ntp server obtained by dhcp just replaced the one added by manual.
That's by design, when dhcp is selected, NTP info should come from dhcp option 42. In 6.x new UI we could make this visible by disabling NTP when DHCP is selected.
(In reply to comment #2) > That's by design, when dhcp is selected, NTP info should come from dhcp option > 42. manual add dns entry can saved, why not ntp? > In 6.x new UI we could make this visible by disabling NTP when DHCP is > selected. This is nice to disable NTP when DHCP is selected.
(In reply to comment #3) > manual add dns entry can saved, why not ntp? DNS info is stored as DNS1/DNS2 in ifcfg-* and seems that dhclient-script prefers them. NTP goes directly to ntp.conf and AFAICT dhclient-script removes all server entries before adding what it received from DHCP server. > on RHEL, add ntp server to /etc/ntp.conf and restart network service, the ntp > server obtained by dhcp is appended to the one added by manual. Was that RHEL 5.7 ? Looking at dhclient-script, I can't see how can that happen.
(In reply to comment #4) > (In reply to comment #3) > > manual add dns entry can saved, why not ntp? > > DNS info is stored as DNS1/DNS2 in ifcfg-* and seems that dhclient-script > prefers them. > > NTP goes directly to ntp.conf and AFAICT dhclient-script removes all server > entries before adding what it received from DHCP server. > > > on RHEL, add ntp server to /etc/ntp.conf and restart network service, the ntp > > server obtained by dhcp is appended to the one added by manual. > > Was that RHEL 5.7 ? Looking at dhclient-script, I can't see how can that > happen. It's RHEL6.0 (I didn't have RHEL5.7 at hand yesterday), dhclient-script just append new ntp entry to ntp.conf. Tested it on RHEL5.7 today, dhclient-script simply overwrite existed entries. Since RHEL5.7 do the same, so it's by design. so modify the title and I will test this in 6.2.
Verified on 6.2-0.14: 1. when dhcp is selected, ntp server is disabled. 2. when static is selected, ntp server is enabled.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: When DHCP is selected in RHEV Hypervisor Network configuration, NTP and DNS server information is retrieved from DHCP options and cannot be manually selected.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1783.html