Bug 668830

Summary: NetworkManager adds hostname to /etc/hosts pointing to localhost
Product: Red Hat Enterprise Linux 6 Reporter: Colin.Simpson
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: desktop-bugs <desktop-bugs>
Severity: high Docs Contact:
Priority: low    
Version: 6.0CC: csieh, jklimes, jkoten, mhusnain, tomek
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-0.8.1-7.el6 Doc Type: Bug Fix
Doc Text:
NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager does not modify /etc/hosts, leaving it for the administrator to set up.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14: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:

Description Colin.Simpson 2011-01-11 18:14:04 UTC
Description of problem:

IPA does not completely support IPv6, and if using NetworkManager the FQDN is
added to /etc/hosts for both IPv4 & 6, pointing to localhost.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. service NetworkManager start
2.
3.
  
Actual results:

In /etc/hosts
127.0.0.1  rh6client.example.com  f13client  localhost.localdomain  localhost
::1  rh6client.example.com  f13client  localhost6.localdomain  localhost6

Expected results:
127.0.0.1  localhost.localdomain  localhost
::1  localhost6.localdomain  localhost6

Additional info:

Copied from F14 bug as this same bug occurs in RHEL 6.

https://bugzilla.redhat.com/show_bug.cgi?id=648725

also

https://bugzilla.redhat.com/show_bug.cgi?id=635440


This breaks Kerberos/GSSAPI apps.


Expected results:


Additional info:

Comment 8 Misha H. Ali 2011-04-20 08:25:29 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:
NetworkManager would insert warning messages in the location /var/log/messages due to the hostname operation. This is now fixed to ensure no unnecessary warnings display during the hostname operation.

Comment 9 Jirka Klimes 2011-04-20 08:41:43 UTC
This note is not exact. I suggest a correction.

Comment 10 Jirka Klimes 2011-04-20 08:43:16 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 @@
-NetworkManager would insert warning messages in the location /var/log/messages due to the hostname operation. This is now fixed to ensure no unnecessary warnings display during the hostname operation.+NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager doesn't touch /etc/hosts, leaving it for the administrator to set it up properly.

Comment 11 Misha H. Ali 2011-04-20 08:54:30 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 @@
-NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager doesn't touch /etc/hosts, leaving it for the administrator to set it up properly.+NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager does not modify /etc/hosts, leaving it for the administrator to set up.

Comment 12 Misha H. Ali 2011-04-20 08:55:21 UTC
Thanks for technical corrections, Jirka. I've made some minor changes to your edits.

Comment 13 errata-xmlrpc 2011-05-19 14:25:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0769.html