Bug 214932 - system-config-network erases the "127.0.0.1" line of "hosts" file
Summary: system-config-network erases the "127.0.0.1" line of "hosts" file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-network
Version: 6
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL: http://www.fedoraforum.org/forum/show...
Whiteboard: bzcl34nup
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-10 03:29 UTC by Luis Felipe Marzagao
Modified: 2008-04-04 19:55 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-04-04 19:55:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luis Felipe Marzagao 2006-11-10 03:29:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061107 Fedora/1.5.0.8-1.fc6 Firefox/1.5.0.8

Description of problem:
After a fresh install of FC6, if you edit your hostname using system-config-network, it will remove the "127.0.0.1 localhost..." line from the "hosts" file and, therefor, will cause programs such as mc and vmwareserver really slow to load. If you manually insert back that line to hosts file, everything works fine again.

Version-Release number of selected component (if applicable):
system-config-network-1.3.95-1

How reproducible:
Always


Steps to Reproduce:
1. Install FC6
2. Leave network settings as anaconda's default (ip by dhcp active, auto dns etc.)
3. network and everything else works ok
4. /etc/hosts file seems ok (additional information 1)
5. Open system-config-network and change the hostname under the tab "DNS"



Actual Results:
Programs like mc took minutes do load. You are leaded to think the program has crashed.

my /etc/hosts file no longer had the line "127.0.0.1 .." (additional information 2)

8. Manually edit hosts file and add "127.0.0.1	localhost.localdomain	localhost" plus your new hosname assigned when using system-config-network
9. Everything works fine again

Expected Results:
I'm not sure, but I think the line "127.0.0.1 ..." should've stayed in hosts file, including the new assigned hostname entered in system-config-network

Additional info:
1. Original hosts file (after a fresh install of FC6):

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost.localdomain localhost
::1		localhost.localdomain localhost

------------------------------------------------------
2. hots file after changing hostname in DNS tab using system-config-network tool:

# Do not remove the following line, or various programs
# that require network functionality will fail.
::1	localhost.localdomain	localhost

Comment 1 Harald Hoyer 2006-11-10 10:21:02 UTC
correct... b/c ananconda set this "::1 localhost" line..

Comment 2 Harald Hoyer 2006-11-10 10:24:25 UTC
will fix s-c-network

Comment 3 Andre Robatino 2006-11-10 11:05:47 UTC
  This issue was first noticed in bug #211800 (and noted there that when
anaconda is fixed to write out the two lines properly, as

127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6

then s-c-network does leave both lines alone).

Comment 4 Luis Felipe Marzagao 2006-11-10 12:55:26 UTC
(In reply to comment #2)
> will fix s-c-network

Great!
Thanks,
Cheers.

Comment 5 Luis Felipe Marzagao 2007-01-08 01:22:36 UTC
Hello, any news about this bug?

Comment 6 D. Hugh Redelmeier 2007-01-13 19:13:52 UTC
[I just added this to 211800]

My symptom is described in 216919.

This may well be an Anaconda bug but no update can fix an Anaconda bug (as I
understand it).  To get a fix in out there for FC6, s-c-n needs to have a
work-around for the Anaconda bug.



Comment 7 Per Thomas Jahr 2007-03-06 20:31:01 UTC
This bug is still present in FC7 test 2 (live cd). After saving from the
system-config-network, there is only this line left in /etc/hosts:
::1     localhost.localdomain   localhost

When removing the 127.0.0.1 line, the BankID login Java applet used in many
Norwegian banks fails when you try to log in - it took a couple of days to
figure out what was wrong. So it would be very nice if this could be fixed for FC7. 


Comment 8 Luis Felipe Marzagao 2007-03-06 23:03:43 UTC
It's stuff like this that frightens new users away from FC. The user installs,
everything seems normal, but for no reason, programs doens't load... The new
user won't even have the chance to test his recently installed FC. Only
advanced/experienced users would check into the hosts file to see if everything
is alright. Sure it would be very nice if it was fixed. Cheers, guys!

Comment 9 Bug Zapper 2008-04-04 04:34:31 UTC
Fedora apologizes that these issues have not been resolved yet. We're
sorry it's taken so long for your bug to be properly triaged and acted
on. We appreciate the time you took to report this issue and want to
make sure no important bugs slip through the cracks.

If you're currently running a version of Fedora Core between 1 and 6,
please note that Fedora no longer maintains these releases. We strongly
encourage you to upgrade to a current Fedora release. In order to
refocus our efforts as a project we are flagging all of the open bugs
for releases which are no longer maintained and closing them.
http://fedoraproject.org/wiki/LifeCycle/EOL

If this bug is still open against Fedora Core 1 through 6, thirty days
from now, it will be closed 'WONTFIX'. If you can reporduce this bug in
the latest Fedora version, please change to the respective version. If
you are unable to do this, please add a comment to this bug requesting
the change.

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we are following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

And if you'd like to join the bug triage team to help make things
better, check out http://fedoraproject.org/wiki/BugZappers

Comment 10 Per Thomas Jahr 2008-04-04 07:48:20 UTC
Cannot reproduce - WORKSFORME in F8.

Comment 11 John Poelstra 2008-04-04 19:55:55 UTC
based on comment #10 closing


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