Bug 856456 - Anaconda no longer has option to set hostname in UI
Summary: Anaconda no longer has option to set hostname in UI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radek Vykydal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedNTH
: 870921 889740 (view as bug list)
Depends On:
Blocks: F18-accepted, F18FinalFreezeExcept 884701
TreeView+ depends on / blocked
 
Reported: 2012-09-12 05:00 UTC by Daniel Belton
Modified: 2013-08-02 21:50 UTC (History)
17 users (show)

Fixed In Version: anaconda-18.37.5-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-04 01:12:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Belton 2012-09-12 05:00:42 UTC
Description of problem:

No way to set hostname in anaconda

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

Fedora 18 Alpha RC2

How reproducible:

Install Fedora 18 from DVD image.

Steps to Reproduce:
1. Install Fedora 18 from DVD image
2. No option to set hostname
3.
  
Actual results:

No option to set hostname

Expected results:

Option as in previous versions to set hostname to something besides localhost.localdomain

Additional info:

Comment 1 Daniel Belton 2012-09-12 05:04:47 UTC
It is possible that this option is in the configuration for the network adapter, but when I tried to click on the configure button, nothing happened. 

While it did set up my network adapter, I just had to accept how anaconda decided to set it up, and couldn't go into the configuration to change it. 

Also, it didn't create the /etc/sysconfig/network file.

Comment 2 Radek Vykydal 2012-09-12 08:01:55 UTC
Setting hostname is not designed/implemented anywhere in UI yet, it should work using kickstart network --hostname option, though not in Alpha (RC2), patches are only in master.

> 
> While it did set up my network adapter, I just had to accept how anaconda
> decided to set it up, and couldn't go into the configuration to change it. 
> 
> Also, it didn't create the /etc/sysconfig/network file.

This is fixed in master with patches mentioned above.

Comment 3 Daniel Belton 2012-10-08 22:14:25 UTC
F18 TC2 still has no option to set the hostname

Comment 4 Reartes Guillermo 2012-10-27 19:44:06 UTC
In forums.fedoraforum.org (F18 Development), someone mentioned this:

http://lists.fedoraproject.org/pipermail/test/2012-October/111230.html

Deprecated files:
/etc/sysconfig/clock
/etc/sysconfig/i18n
/etc/sysconfig/keyboard
/etc/sysconfig/network (Hostname only) <<<< RELEVANT TO THIS BUGREPORT

SystemD v +195 for F18 now has:

# hostnamectl status
   Static hostname: superservercowball
   Pretty hostname: superserver.cowball
         Icon name: n/a
        Machine ID: 5d91ca5f9debf4df91890550bb335d84
           Boot ID: aec5010be8b945149e041ad03324e3b1
    Virtualization: kvm
  Operating System: Fedora 18 (Spherical Cow)
       CPE OS Name: cpe:/o:fedoraproject:fedora:18
            Kernel: Linux 3.6.3-3.fc18.x86_64
      Architecture: x86_64

# hostnamectl set-hostname hyperserver.cowball
      
Installing and updating from F18b TC6 bring such systemd version, so future
test composes will most likely have such systemd version.

The hostname could be set by anaconda or during firstboot. 

If it is decided that the hostname will be set by firstboot, then firstboot 
can simply add a text dialog or similar to enter the hostname and execute a 'hostnamectl set-hostname'. It looks simple for firstboot to be implemented, exept for package groups that do not have xorg.

I would prefer for the hostname to be set by anaconda, so one can boot with the desired hostname. (the setting could be added below 'set root password' during install.

Comment 5 Radek Vykydal 2012-12-04 13:58:34 UTC
To Reartes:

We need to set hostname before storage configuration as it is used for default LVM and RAID names.

FYI, the /etc/sysconfig/network -> /etc/hostname patch is being reviewed.

Comment 6 Radek Vykydal 2012-12-07 08:15:19 UTC
*** Bug 870921 has been marked as a duplicate of this bug. ***

Comment 7 Richard W.M. Jones 2012-12-07 08:26:22 UTC
(In reply to comment #5)
> To Reartes:
> 
> We need to set hostname before storage configuration as it is used for
> default LVM and RAID names.

Indeed this is true .. see: bug 884701 for details about
the current regression in Anaconda.

Comment 8 Radek Vykydal 2012-12-07 09:33:14 UTC
Nominating as NTH to bring more eyes to it, although I'd prefer to dedicate proper time to design / discuss the place of the setting in UI post F18.

Comment 9 Reartes Guillermo 2012-12-10 16:01:04 UTC
What about a boot parameter, like 'advanced' that will ask the user for a hostname, BEFORE anaconda?

This would be a Q&D route for F18.

~~~~~~~~~~~~~~~~~~~~~~

Advanced parameter specified:

The current hostname is 'fedora', type the desired hostname or just press ENTER to accept the current value.
Hostname: cowball

Setting hostname to Cowball

Launching anaconda...

~~~~~~~~~~~~~~~~~~~~~~

Comment 10 Adam Williamson 2012-12-12 19:47:45 UTC
NTH nomination was done wrong by mistake, fixing. I am +1 NTH at least on this, it is a very common complaint about newUI that there is no hostname setting.

Comment 11 Adam Williamson 2012-12-12 19:54:33 UTC
Discussed at 2012-12-12 NTH review meeting: http://meetbot.fedoraproject.org/fedora-bugzappers/2012-12-12/f18final-blocker-review-4.2012-12-12-17.01.log.txt . Accepted as NTH, this is a regression from F17 behaviour and a popular request/complaint about newUI, plus it causes https://bugzilla.redhat.com/show_bug.cgi?id=884701 for LV naming.

Comment 12 Aleksandar Kostadinov 2012-12-13 08:41:12 UTC
what is the anticipated way to change hostname in fedora 18 at all? I can't figure out.

Comment 13 Adam Williamson 2012-12-13 18:09:37 UTC
man hostnamectl

Comment 14 Radek Vykydal 2012-12-14 16:34:46 UTC
Here is updates image with a patch adding hostname to network spoke:

http://rvykydal.fedorapeople.org/updates.hostnameui.img

Hostname sanity check is done when leaving spoke.

Comment 15 Radek Vykydal 2012-12-14 16:35:11 UTC
(In reply to comment #14)
> Here is updates image with a patch adding hostname to network spoke:
> 
> http://rvykydal.fedorapeople.org/updates.hostnameui.img
> 
> Hostname sanity check is done when leaving spoke.

It is for F18 TC2

Comment 16 Adam Williamson 2012-12-18 02:04:54 UTC
Tested (against TC3 - the updates.img seems to work ok). The dialog works. The hostname is properly set on the installed system. The LV name uses the hostname I set (used autopart). Hostname sanity check seems to work - except that the error message is too long and goes off the side of the screen; I think the error message display code lacks line wrapping, I need to file a separate bug for that (seen it with root password errors also). This patch looks good, please apply it for next anaconda build.

Comment 17 Adam Williamson 2012-12-18 02:21:34 UTC
Filed https://bugzilla.redhat.com/show_bug.cgi?id=888112 for the error message overflow.

Comment 18 Mukundan Ragavan 2012-12-18 02:28:28 UTC
Tested using final TC3 (anaconda version 18.37.3) and performed a minimal install on virtualbox VM.

hostname textbox appears under network spoke and the given hostname is retained for installation and shows up correctly in the installed system.

Comment 19 Adam Williamson 2012-12-19 02:05:10 UTC
Radek, can you please commit this so we get it in the next build? It missed 37.4 unfortunately.

Comment 20 Adam Williamson 2012-12-19 02:06:47 UTC
I see some nitpicking about the layout on the ML, but seriously, it's getting pretty late, just pick something and go with it guys :)

Comment 21 Richard W.M. Jones 2012-12-24 12:08:03 UTC
(In reply to comment #13)
> man hostnamectl

This sucks.  Why isn't just changing the /etc/hostname file
sufficient?  I tried just changing the file and it did nothing.

Note that calling out to arbitrary binaries is unacceptable
when modifying guests (eg. from virt-sysprep).

Comment 22 Richard W.M. Jones 2012-12-24 12:26:15 UTC
(In reply to comment #21)
> (In reply to comment #13)
> > man hostnamectl
> 
> This sucks.  Why isn't just changing the /etc/hostname file
> sufficient?  I tried just changing the file and it did nothing.
> 
> Note that calling out to arbitrary binaries is unacceptable
> when modifying guests (eg. from virt-sysprep).

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

Comment 23 Paul Franklin (RHlists) 2012-12-25 01:10:42 UTC
I'm confused.  It says "Fixed In Version: anaconda-18.37.5-1"
up above yet I don't see the usual automated messages in the
Comment areas reporting the progress of the fix, asking for
karma and so on.  Am I missing something?  Thanks.

Comment 24 Chris Lumens 2013-01-02 14:50:04 UTC
*** Bug 889740 has been marked as a duplicate of this bug. ***

Comment 25 Mukundan Ragavan 2013-01-03 20:19:36 UTC
Option to set hostname is present under the new TC4 image (anaconda 18.37.8) and it does set the hostname for the installed system as specified during installation.

Works well. This bug report can be closed (I think).

Comment 26 Adam Williamson 2013-01-04 01:12:45 UTC
Yes, it can.


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