Bug 1333034 - Hostname set in Anaconda while installing is not applied on installed host
Summary: Hostname set in Anaconda while installing is not applied on installed host
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: master
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ovirt-4.0.0-rc2
: 4.0
Assignee: Ryan Barry
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks: ovirt-node-ng-platform
TreeView+ depends on / blocked
 
Reported: 2016-05-04 14:35 UTC by Sandro Bonazzola
Modified: 2016-07-05 07:39 UTC (History)
8 users (show)

Fixed In Version: ovirt-node-ng-installer-ovirt-4.0-snapshot-2016061416.iso
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-05 07:39:17 UTC
oVirt Team: Node
rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
dfediuck: devel_ack+
ycui: testing_ack+


Attachments (Terms of Use)
anaconda logs (166.30 KB, application/x-gzip)
2016-05-04 14:35 UTC, Sandro Bonazzola
no flags Details
log file (214.19 KB, application/x-gzip)
2016-05-12 07:50 UTC, Wei Wang
no flags Details
ks_file (549 bytes, text/plain)
2016-05-12 07:51 UTC, Wei Wang
no flags Details
kickstart file (557 bytes, text/plain)
2016-06-16 06:04 UTC, Wei Wang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 58167 0 master ABANDONED Remove squashfs network files so anaconda can overwrite them 2016-05-27 12:54:47 UTC
oVirt gerrit 58180 0 master MERGED Remove network files so anaconda can overwrite them 2016-06-08 12:28:41 UTC

Description Sandro Bonazzola 2016-05-04 14:35:27 UTC
Created attachment 1153899 [details]
anaconda logs

Installed NGN on a VM, set node.home as hostname in anaconda.
At reboot hostname is localhost.

Comment 1 Fabian Deutsch 2016-05-04 15:09:55 UTC
Sandro, could you please provide the NGN iso you used for installation and the kickstart?

Comment 2 Fabian Deutsch 2016-05-06 09:21:57 UTC
I see:

04:06:06,246 DEBUG anaconda: updating hostname localhost.localdomain

Let#s see what Wei has to say.

Comment 3 Yaniv Lavi 2016-05-09 10:53:15 UTC
Moving to first RC, since things should not be targeted to second one at this point.

Comment 4 Wei Wang 2016-05-12 07:49:35 UTC
Issue can not be reproduced using below builds  

Version:
ovirt-node-ng-installer-ovirt-3.6-2016051108.iso
ovirt-node-ng-installer-ovirt-3.6-2016050400.iso
ovirt-node-ng-installer-ovirt-3.6-2016050100.iso

Steps:
1. Install vm with kickstart file in attachment.
   key command:
   network --device=ens3 --bootproto=dhcp --hostname="node.home"

2. After reboot, check the hostname
   #hostname -f


Result:
The hostname still display as "node", after reboot.


Sandro, could you please provide the NGN iso you used and the kickstart?

Comment 5 Wei Wang 2016-05-12 07:50:28 UTC
Created attachment 1156493 [details]
log file

Comment 6 Wei Wang 2016-05-12 07:51:30 UTC
Created attachment 1156494 [details]
ks_file

Comment 7 Fabian Deutsch 2016-05-12 08:46:50 UTC
Please note, anaconda is strict about hostnames,

A name is just a hostname without a dot (node).
A FQDN can not be used as the hostname (node.home).

Comment 8 Wei Wang 2016-06-16 06:03:17 UTC
Test Version:
ovirt-node-ng-installer-ovirt-4.0-snapshot-2016061419.iso
imgbased-0.7.0-0.201606081307gitfb92e93.el7.centos.noarch

Test Steps:
1. Install machine with kickstart file in attachment.
   key command:
   network --device=enp0s25 --bootproto=dhcp --hostname="node.home"

2. After login with root account, check the hostname
   #hostname
   #cat /etc/hostname

Result:
hostname display as "node.home".

So the bug cannot be reproduced, I will change the status to VERIFIED.

Comment 9 Wei Wang 2016-06-16 06:04:13 UTC
Created attachment 1168565 [details]
kickstart file

Comment 10 Sandro Bonazzola 2016-07-05 07:39:17 UTC
oVirt 4.0.0 has been released, closing current release.


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