Bug 904014 - doesn't ask for host name
Summary: doesn't ask for host name
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 09:31 UTC by Alexander van Loon
Modified: 2013-01-31 16:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-29 14:40:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot showing hostname cannot be changed from System Settings:Details on Live (585.72 KB, image/png)
2013-01-26 14:13 UTC, Steve Tyler
no flags Details

Description Alexander van Loon 2013-01-25 09:31:46 UTC
Description of problem:
Anaconda doesn't ask for the host name anymore if you're already connected to the Internet when Anaconda is started. Apparently it only is this way since F18, I remember Anaconda used to ask the question in F17. Anaconda chose a host name for my computer instead, which is linux.fritz.box based on the name of my router. Also see http://forums.fedoraforum.org/showthread.php?t=287539 for more information and a workaround.

Comment 1 Chris Lumens 2013-01-25 15:12:55 UTC
While the initial network spoke does not pop up, there should still be the network spoke accessible from the main hub and there should be a hostname entry on that screen.  Are you seeing that?

Comment 2 Steve Tyler 2013-01-25 22:56:36 UTC
There is no network spoke link on the Live image:
http://forums.fedoraforum.org/showpost.php?p=1626458&postcount=16

The host name can be configured post-install:

Click Activities, type "details" in the search box, click Details, and enter the "Device name".

Or follow the path:

Activities:Show Applications:System Tools:System Settings:Details:Overview:Device name

Comment 3 Alexander van Loon 2013-01-26 09:27:33 UTC
After verifying myself I conclude there are two possibilities:

First, don't have an Internet/network connection active while you start up and proceed through Anaconda. In this case Anaconda asks network related questions right after you pick your language in the first step. Here you can also change the hostname and the option is obvious (some people in the forum topic mentioned this too IIRC).

Second, do have an Internet/network connection active while you start up and proceed through Anaconda. In this case you will go to the main hub after picking the language (no network configuration as a second step) and there is no network spoke there as Steve mentions.

Steve, I already tried changing the hostname that way through "Details", but I can't. I guess that deserves a different bug report. In the end I had to change the hostname with a command in the terminal.

Comment 4 Steve Tyler 2013-01-26 14:13:55 UTC
Created attachment 688020 [details]
screenshot showing hostname cannot be changed from System Settings:Details on Live

Confirming that the hostname cannot be changed from the System Settings:Details dialog when running the Live image. Since the hostname can be changed with the hostnamectl command[1], this appears to be a Live bug, possibly with livecd-tools.

Alex: Can you set the hostname on the installed system from System Settings:Details?

[1] However, the installer fails to start after running the hostnamectl command:
Bug 893218, Comment 13.

Comment 5 Alexander van Loon 2013-01-26 14:36:22 UTC
No, in my installed system I see the same as in your screenshot: the input field for the hostname is grayed out and I can't change it.

Comment 6 Steve Tyler 2013-01-26 20:10:41 UTC
OK, thanks. I created a standard user account on an installed system and cannot change the hostname from System Settings:Details while logged in as a standard user. On Live, liveuser is a standard account. The bug here, IMO, is that there is no "Unlock" button in the Details dialog.

On your installed system, are you logged in as an administrative user or as a standard user?

Tested with:
$ qemu-kvm -m 2048 -hda f18-test-2.img -cdrom ~/xfr/fedora/F18/F18-Final/Final/Fedora-18-x86_64-Live-Desktop.iso -vga qxl -boot menu=on -usbdevice mouse

Comment 7 Nicholas Alonge 2013-01-27 04:04:08 UTC
I noticed the option to set up the network and choose a hostname was available in Anaconda only on the Install DVD and not the Live CD for me. 
I tried the Live CD in virtualbox, once with an internet connection and once without. Without a network connection Anaconda offered the network setup spoke, with it the option was not visible.

The install DVD presented the option in either scenario.

You can also change the hostname post-install using hostnamectl.

IMO, Anaconda should offer the network options on the Live CD regardless if it detects an internet connection or not.

Comment 8 Alexander van Loon 2013-01-27 10:00:37 UTC
(In reply to comment #6)
> On your installed system, are you logged in as an administrative user or as
> a standard user?

Standard user.

(In reply to comment #7)
> IMO, Anaconda should offer the network options on the Live CD regardless if
> it detects an internet connection or not.

Agreed.

Comment 9 Steve Tyler 2013-01-27 10:41:15 UTC
Here is a workaround for the installer crashing[1] after the hostname is changed on the Live CD:

Open a terminal.

$ liveinst # Quit from the Welcome dialog without installing.
$ hostnamectl set-hostname f18-test-2
$ liveinst

Complete the install.
Reboot into the installed system.

The hostname command returns "f18-test-2".

Tested with:
$ qemu-kvm -m 2048 -hda f18-test-2.img -cdrom ~/xfr/fedora/F18/F18-Final/Final/Fedora-18-x86_64-Live-Desktop.iso -vga qxl -boot menu=on -usbdevice mouse

[1] Bug 893218, Comment 13

Comment 10 Steve Tyler 2013-01-27 11:01:44 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > On your installed system, are you logged in as an administrative user or as
> > a standard user?
> 
> Standard user.

If you login as an administrative user, can you change the hostname from System Settings:Details?

> (In reply to comment #7)
> > IMO, Anaconda should offer the network options on the Live CD regardless if
> > it detects an internet connection or not.
> 
> Agreed.

Likewise agreed. Even if the Live CD hostname could be set from System Settings:Details, a user who has never used Fedora before should not be forced to understand how to configure Fedora before installing.

Comment 11 Chris Lumens 2013-01-29 14:40:25 UTC
On the live CD, we are trying to present as normal of an application as possible.  You are supposed to use the live environment's provided mechanism for setting up the hostname and other network information.  That's why anaconda does not provide this.  Our setup would just get in the way of, for instance, NM running during the live environment.

Comment 12 Alexander van Loon 2013-01-30 19:30:19 UTC
(In reply to comment #11)
> On the live CD, we are trying to present as normal of an application as
> possible.  You are supposed to use the live environment's provided mechanism
> for setting up the hostname and other network information.  That's why
> anaconda does not provide this.  Our setup would just get in the way of, for
> instance, NM running during the live environment.

I don't get it and I'm really confused now. So in fact you're saying the Anaconda developers will remove the functionality to enter a hostname if the Live DVD is used, or if the Live CD is used without an Internet connection? So the user *being asked* to enter the hostname is the bug instead of the other way around?

If Anaconda gets in the way of NetworkManager and that's why Anaconda can't ask for the hostname, then why *was* it possible for Anaconda in older versions of Fedora?

(In reply to comment #10)
> If you login as an administrative user, can you change the hostname from
> System Settings:Details?

Yes. I'll file a bug at GNOME's Buzgilla for this. It should have an unluck button indeed.

Comment 13 Alexander van Loon 2013-01-31 09:38:38 UTC
Filed bug at GNOME Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=692923

Comment 14 Steve Tyler 2013-01-31 16:17:39 UTC
(In reply to comment #13)
> Filed bug at GNOME Bugzilla:
> https://bugzilla.gnome.org/show_bug.cgi?id=692923

Thanks, Alex. I commented there.

Comment 15 Steve Tyler 2013-01-31 16:23:39 UTC
(In reply to comment #11)
> On the live CD, we are trying to present as normal of an application as
> possible.  You are supposed to use the live environment's provided mechanism
> for setting up the hostname and other network information.  That's why
> anaconda does not provide this.  Our setup would just get in the way of, for
> instance, NM running during the live environment.

"You are supposed to use the live environment's provided mechanism ..."

Where in the installer does it say this?


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