| Summary: | Disable NTP setting when DHCP is selected | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Guohua Ouyang <gouyang> |
| Component: | ovirt-node | Assignee: | Joey Boggs <jboggs> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.2 | CC: | apevec, cshao, leiwang, moli, ovirt-maint, ycui |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-node-2.0.2-0.1.git5dce5f9.el6 | Doc Type: | Bug Fix |
| Doc Text: |
When DHCP is selected in RHEV Hypervisor Network configuration, NTP and DNS server information is retrieved from DHCP options and cannot be manually selected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-06 19:16:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Guohua Ouyang
2011-06-29 07:08:36 UTC
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 |