Bug 768021 - Changes to networking always clear the contents of resolv.conf
Summary: Changes to networking always clear the contents of resolv.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ovirt-node
Version: 5.7
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Mike Burns
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 675325
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-15 14:38 UTC by Chris Pelland
Modified: 2016-04-26 14:19 UTC (History)
18 users (show)

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.
Clone Of:
Environment:
Last Closed: 2012-01-11 15:25:09 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0015 0 normal SHIPPED_LIVE rhev-hypervisor bugfix update 2012-01-11 20:23:42 UTC

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


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