Bug 627269

Summary: [enh] preserve 127.0.0.1 localhost/localhost6 line if possible
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dcbw, lvilla, mishu, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-0.8.1-9.git20100831.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-10 05:36:41 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 Bill Nottingham 2010-08-25 14:13:18 UTC
Description of problem:

My /etc/hosts:
10.11.231.177	nostromo.devel.redhat.com	nostromo	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost sign-bridge01 sign-bridge1
::1	nostromo.devel.redhat.com	nostromo	localhost6.localdomain6	localhost6

When NM acquires an address, it removes the sign-bridge* aliases from loopback. It should not do that.

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

NetworkManager-0.8.1-5.git20100818.fc14.x86_64

How reproducible:

100%

Comment 1 luca villa 2010-08-31 06:55:58 UTC
I'm experiencing the same problem in Fedora 13 as of package version 0.8.1-4.git20100817.fc13.x86_64.

Whenever NM acquire and address or configure it statically it resets the /etc/hosts loopback line to default.

Comment 2 Dan Williams 2010-09-01 02:26:02 UTC
If you put your additional entries on separate 127.0.0.1 lines, NM will not touch them.  At this time NM only touches 127.0.0.1 lines that contain "localhost" or "localhost6".

Comment 3 Bill Nottingham 2010-09-01 04:31:28 UTC
This is a change in behavior, though. Why should it care whether it's on a separate line or not?

(Also, NM is now resetting my hostname to localhost.localdomain, which is pretty annoying.)

Comment 4 Dan Williams 2010-10-07 23:12:34 UTC
Upstream commits:

ee9ce6027b3fc0cb4aa14442ef8b628b80b726eb (master)
052ca428d9c4862112a905cd07fd126bbe7192ee (0.8.x)

Comment 5 Dan Williams 2010-10-07 23:25:17 UTC
And also:

bbf3f12d7b2c79c49d87d41e6cf7b65ac7782071 (master)
f7fa7b166df4b88b12e29247ccb836a57713c477 (0.8.x)

Comment 6 Fedora Update System 2010-10-08 15:32:25 UTC
NetworkManager-0.8.1-8.git20100831.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/NetworkManager-0.8.1-8.git20100831.fc13

Comment 7 Fedora Update System 2010-10-08 15:35:25 UTC
NetworkManager-0.8.1-8.git20100831.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/NetworkManager-0.8.1-8.git20100831.fc14

Comment 8 Fedora Update System 2010-10-08 15:36:02 UTC
NetworkManager-0.8.1-8.git20100831.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/NetworkManager-0.8.1-8.git20100831.fc12

Comment 9 Fedora Update System 2010-10-08 20:34:07 UTC
NetworkManager-0.8.1-8.git20100831.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update NetworkManager'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/NetworkManager-0.8.1-8.git20100831.fc13

Comment 10 Fedora Update System 2010-10-10 05:36:32 UTC
NetworkManager-0.8.1-8.git20100831.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-10-18 17:04:07 UTC
NetworkManager-0.8.1-9.git20100831.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/NetworkManager-0.8.1-9.git20100831.fc12

Comment 12 Fedora Update System 2010-10-19 07:01:34 UTC
NetworkManager-0.8.1-8.git20100831.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2010-10-29 20:42:27 UTC
NetworkManager-0.8.1-9.git20100831.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.