Bug 638634

Summary: computer name does not stick on Live CD
Product: [Fedora] Fedora Reporter: Piscium <groknok>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: awilliam, dcantrell, dowdle, groknok, jonathan, nathan, sandro, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: AcceptedNTH
Fixed In Version: anaconda-14.21-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-19 22:24:42 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:    
Bug Blocks: 635218, 641108    
Attachments:
Description Flags
anaconda.log
none
anaconda.program.log none

Description Piscium 2010-09-29 14:39:39 UTC
Description of problem:

Computer name entered during installation is not kept properly. Once installation is complete it reverts to default (localhost).

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

F14 beta, KDE spin, 32 bits.

How reproducible:

I am not sure, I only tried to install this version once. In the Fedora forums another user reported also having this issue.

Steps to Reproduce:
1. During installation choose a computer name other than the default.
2. After installation is complete enter "uname -n"

Actual results:

The name reverts to "localhost".

Expected results:

The name should be what I set it to.

Comment 1 Chris Lumens 2010-09-29 14:45:20 UTC
The name you enter gets written out to a file on the installed system so when you reboot post-installation, it should be fine.  It's not meant to modify the hostname on the running live system.  If you reboot, do you see the proper hostname?

Comment 2 Piscium 2010-09-29 15:02:41 UTC
>        If you reboot, do you see the proper hostname?

No.

---
My bug description could be improved. My second attempt:

Steps to Reproduce:
1. During installation choose a computer name other than the default.
2. Reboot
3. Enter "uname -n" on a terminal
4. See what happens

Actually you don't need even uname. When I started a terminal after reboot the prompt was       
  my_name@localhost 
instead of 
  my_name@the_name_i_gave_to_my_computer_durint_install

Comment 3 Radek Vykydal 2010-09-30 16:51:03 UTC
I am not able to reproduce.
Could you post content of /etc/sysconfig/network, and attach /var/log/anaconda.syslog and /var/log/anaconda.log from installed ststem?

Comment 4 Piscium 2010-09-30 19:10:28 UTC
Today I created a brand new partition, reinstalled the same OS as before (I have it in a USB stick), and got exactly the same issue. So it is reproducible for me (or so it seems after two tests).

---------------

/etc/sysconfig/network:

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
NTPSERVERARGS=iburst

OK, so there is a little inconsistency in my bug description. If I do "uname -n" I get "localhost.localdomain" but the prompt still says for example "root@localhost" as I reported.

------------

/var/log/anaconda.syslog - there is no such file
/var/log/anaconda.log - attached, plus I attached another another log.

------------

I looked at anaconda.log (attached) and found the following line:

==
19:20:10,135 DEBUG anaconda: Exception caught trying to get host name of 192.168.1.3: [Errno 2] Host name lookup failure
==

This might be related to the issue at hand. I looked at the same file in my F13 install and there is no such error message. 192.168.1.3 is the IP address of the PC (the next available from the DNS server which happens to be my DSL router at home).

Comment 5 Piscium 2010-09-30 19:13:27 UTC
Created attachment 450842 [details]
anaconda.log

see comment #4

Comment 6 Piscium 2010-09-30 19:14:32 UTC
Created attachment 450844 [details]
anaconda.program.log

see comment #4

Comment 7 Piscium 2010-09-30 23:24:53 UTC
> This might be related to the issue at hand. I looked at the same file in my F13
> install and there is no such error message. 192.168.1.3 is the IP address of
> the PC (the next available from the DNS server which happens to be my DSL
> router at home).

Oops, I meant _DHCP_ server, obviously.

Comment 8 Radek Vykydal 2010-10-01 16:04:51 UTC
This is on Live CDs only, I sent a patch with fix to anaconda-devel-list.

Comment 9 Scott Dowdle 2010-10-04 15:31:44 UTC
I was seeing this too (hostname entered during install from Live media was ignored) and I'm glad to see both a bug report and a fix already available.

Comment 10 Radek Vykydal 2010-10-06 11:23:44 UTC
Fixed in master (anaconda-15.1-1). For F14, the bug would need to be approved as F14 Blocker.

Comment 11 Piscium 2010-10-06 18:20:36 UTC
I don't think this is a show stopper as it is easily corrected, however it might be worthwhile to mention it in the F14 release notes as a known issue, just so that people don't lose time on it. 

Alternatively it could be worthwhile to post a note about it on one of the mailing lists (devel or test) to see if sysadmins would consider this an important bug, because I think they would be most affected by it (I am not a sysadmin so I cannot judge that).

Comment 12 Adam Williamson 2010-10-07 02:49:35 UTC
"For F14, the bug would need to be approved as F14 Blocker."

No, it doesn't, you can put the fix in 14.18 or 14.19 if you think it's a good thing to have in F14, we are not yet at the point where we only accept blocker fixes.

Comment 13 Scott Dowdle 2010-10-07 03:29:10 UTC
Please backport the fix if at all possible because if the live media installer can't set a hostname it will reflect very poorly on Fedora and make it appear that it can't do even a simple, basic function properly.

Comment 14 Radek Vykydal 2010-10-07 09:03:20 UTC
(In reply to comment #12)
> "For F14, the bug would need to be approved as F14 Blocker."
> 
> No, it doesn't, you can put the fix in 14.18 or 14.19 if you think it's a good
> thing to have in F14, we are not yet at the point where we only accept blocker
> fixes.

Ok, I probably confused it with internal anaconda policy. Anyway I'll ask David Lehman the F14 anaconda gatekeeper if we can get it into the release.

Comment 15 Adam Williamson 2010-10-07 15:32:11 UTC
radek: sure, I know anaconda team has its own policies, let me know if you have one which would block taking this fix. we can propose the bug as a nice-to-have if necessary.

Comment 16 Radek Vykydal 2010-10-08 11:19:00 UTC
Proposing as F14 Blocker with hope for Nice To Have.

The patch in master:

http://git.fedorahosted.org/git/?p=anaconda.git;a=commit;h=5161a324ad2cf2be636a6cd330390e7f05971

Comment 17 Radek Vykydal 2010-10-08 12:45:06 UTC
Proposing as nice-to-have.

Comment 18 Adam Williamson 2010-10-08 15:41:41 UTC
+1 from me.

Comment 19 Adam Williamson 2010-10-08 18:25:08 UTC
Discussed at 2010-10-08 blocker/NTH review meeting, accepted as NTH. Please take the fix into the F14 anaconda branch.

Comment 20 Nathan Thomas 2010-10-09 15:38:35 UTC
I am also experiencing this bug, it's good to know a fix is in the works!

Is there any way to fix the problem on an already installed system? I tried using the hostname command to change the computer name, but on reboot this still reverted back to localhost.

Best wishes
Nathan

Comment 21 Adam Williamson 2010-10-09 17:01:42 UTC
system-config-network , DNS tab.

Comment 22 Piscium 2010-10-09 21:37:22 UTC
(In reply to comment #21)
> system-config-network , DNS tab.

Besides the above I would suggest taking a look at /etc/hosts, due to a bug in NetworkManager (I am not sure if it has been fixed yet).

Comment 23 Radek Vykydal 2010-10-11 12:24:42 UTC
This should be fixed in anaconda 14.19-1.

Comment 24 Piscium 2010-10-11 18:53:17 UTC
(In reply to comment #23)
> This should be fixed in anaconda 14.19-1.

Good that it was fixed. As the saying goes, one has only one chance to make a good first impression, and if something goes funny in anaconda that's not nice for first time users, even if it is just a minority that chooses a host name.

And thanks to Adam for taking the issue to the bug review meeting and taking care of it.

Comment 25 Fedora Update System 2010-10-11 21:46:49 UTC
anaconda-14.19-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/anaconda-14.19-1.fc14

Comment 26 Fedora Update System 2010-10-12 02:38:11 UTC
anaconda-14.19-1.fc14 has been pushed to the Fedora 14 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 anaconda'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/anaconda-14.19-1.fc14

Comment 27 Sandro Mathys 2010-10-14 20:26:14 UTC
I can confirm this is fixed in the F14 Final TC1.1 x86_64 KDE LiveCD. uname -n returns the hostname I set manually within anaconda.

Comment 28 Fedora Update System 2010-10-14 23:57:21 UTC
anaconda-14.20-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/anaconda-14.20-1.fc14

Comment 29 Fedora Update System 2010-10-15 04:09:06 UTC
anaconda-14.20-1.fc14 has been pushed to the Fedora 14 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 anaconda'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/anaconda-14.20-1.fc14

Comment 30 Adam Williamson 2010-10-19 01:04:23 UTC
The fix is confirmed, setting VERIFIED, can be closed when anaconda goes stable.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 31 Fedora Update System 2010-10-19 03:23:05 UTC
anaconda-14.21-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/anaconda-14.21-1.fc14

Comment 32 Fedora Update System 2010-10-19 09:07:22 UTC
anaconda-14.21-1.fc14 has been pushed to the Fedora 14 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 anaconda'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/anaconda-14.21-1.fc14

Comment 33 Fedora Update System 2010-10-19 22:23:57 UTC
anaconda-14.21-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 34 Scott Dowdle 2010-10-20 22:13:47 UTC
Just rebuilt my Fedora 14 (devel) remix with all of the updates and noticed that the bug is fixed... and works for me.  Also noticed a number other other bug fixes (default background in KDE is no longer solid black).  Good job.

Thanks for fixing this bug in time for release!