Bug 768021

Summary: Changes to networking always clear the contents of resolv.conf
Product: Red Hat Enterprise Linux 5 Reporter: Chris Pelland <cpelland>
Component: ovirt-nodeAssignee: Mike Burns <mburns>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.7CC: adevolder, apevec, bingdan, bsarathy, cpelland, cshao, gouyang, jboggs, jwest, leiwang, mburns, moli, ovirt-maint, pcao, pm-eus, sgordon, ycui, yeylon
Target Milestone: rcKeywords: TestOnly, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 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-01-11 15:25:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 675325    
Bug Blocks:    

Description Chris Pelland 2011-12-15 14:38:38 UTC
This bug has been copied from bug #675325 and has been proposed
to be backported to 5.7 z-stream (EUS).

Comment 4 Mike Burns 2012-01-03 14:32:14 UTC
Test only, no code change

Comment 6 Guohua Ouyang 2012-01-04 08:40:12 UTC
Correct the verify steps as below, on build rhev-hypervisor-5.7-20120103.1:
1. on multi-nics machine, setup one nice and dns during install
2. after reboot, all other nics have "PEERDNS=no" in ifcfg-ethX.
3. add "BOOTPROTO=dhcp" in ifcfg-ethX and ifup them, /etc/resolv.conf is not changed.

the bug is verified.

Comment 7 Stephen Gordon 2012-01-10 13:59:16 UTC
    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.

Comment 8 Mike Burns 2012-01-10 14:45:46 UTC
    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.

Comment 9 errata-xmlrpc 2012-01-11 15:25:09 UTC
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-2012-0015.html