| Summary: | Changes to networking always clear the contents of resolv.conf | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Allie DeVolder <adevolder> | ||||
| Component: | ovirt-node | Assignee: | Joey Boggs <jboggs> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 5.7 | CC: | apevec, bingdan, cpelland, cshao, gouyang, jwest, leiwang, mburns, moli, ovirt-maint, pcao, sgordon, ycui, yeylon | ||||
| Target Milestone: | rc | Keywords: | TestOnly, ZStream | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | ovirt-node-1.0-80.el5 | Doc Type: | Bug Fix | ||||
| Doc Text: |
The /etc/resolv.conf file was being overwritten every time a change was made to networking. The statement PEERDNS="no" is now added to all interface configuration (ifcfg*) files created by the hypervisor. This prevents the incorrect overwriting of the resolv.conf file.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-02-21 05:03:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 768021 | ||||||
| Attachments: |
|
||||||
|
Description
Allie DeVolder
2011-02-04 21:51:08 UTC
*** Bug 679876 has been marked as a duplicate of this bug. *** Created attachment 498115 [details]
Patch
Adds PEERDNS to all ifcfg-eth* scripts.
Tested on rhev-hypervisor-5.7-20110622.0.el5, change networking still clear resolv.conf, steps as below: 1. configure the nic eth0 and add dns entry (192.168.20.55) during install, other nics were not configured. reboot and check /etc/resolv.conf, dns entry (192.168.20.55) is there. 2. Check ifcfg-eth*, "PEERDNS=no" is added to unconfigured nics but not the configured nic eth0. 3. Enter "setup" and configure eth1, configured dns (192.168.20.3) at this time too. after network configuring finish, check /etc/resolv.conf, dns entry (192.168.20.3) is there. If choose not configured dns, after network configuring finish, /etc/resolv.conf is empty. 4. Check ifcfg-eth1, "PEERDNS=no" is removed, but added to ifcfg-eth0. It should be "PEERDNS=no" is removed while configured the new nic. Original case is solved and reconfiguring can be moved to 5.8/5.7.z
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 the hypervisor was installed on a machine with multiple Network Interface Cards (NICs), and only one NIC wass configured at install time, the resolv.conf file would be overwritten each time a change was made to networking. The statement PEERDNS="no" is now added to all interface configuration (ifcfg*) files created by the hypervisor. This prevents the incorrect overwriting of the resolv.conf file.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1 +1 @@
-When the hypervisor was installed on a machine with multiple Network Interface Cards (NICs), and only one NIC wass configured at install time, the resolv.conf file would be overwritten each time a change was made to networking. The statement PEERDNS="no" is now added to all interface configuration (ifcfg*) files created by the hypervisor. This prevents the incorrect overwriting of the resolv.conf file.+The /etc/resolv.conf file was being overwritten every time a change was made to networking. The statement PEERDNS="no" is now added to all interface configuration (ifcfg*) files created by the hypervisor. This prevents the incorrect overwriting of the resolv.conf file.
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/RHSA-2012-0168.html |