Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1326571

Summary: Hostname display shorter than what set in kickstart file after automatic installation
Product: Red Hat Enterprise Linux 7 Reporter: Wei Wang <weiwang>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: medium    
Version: 7.2CC: bmcclain, bugs, cshao, fdeutsch, huiwa, huzhao, leiwang, yaniwang, ycui
Target Milestone: pre-dev-freeze   
Target Release: 7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-04 15:07:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1329957    
Attachments:
Description Flags
hostname ks file none

Description Wei Wang 2016-04-13 06:29:23 UTC
Created attachment 1146707 [details]
hostname ks file

Description of problem:
Hostname display shorter than what I have set in kickstart file, after automatic installation.

Version-Release number of selected component (if applicable):
ovirt-node-ng-installer-ovirt-3.6-2016041120.iso
ovirt-node-4.0.0

How reproducible:
100%

Steps to Reproduce:
1. Automatic install a vm with kickstart file(hostname is set to `rhev1.example.com`) in attachment
2. After installation and reboot
3. check the hostname with below CLI
    1). #hostname
    2). #hostname --all-fqdns


Actual results:
"rhev1" displayed as hostname, shorter than what have set in kickstart file.


Expected results:
"rhev1.example.com" displayed, same as what have set in kickstart file


Additional info:

Comment 1 Wei Wang 2016-04-13 06:41:11 UTC
Add some more info:
# cat /etc/sysconfig/network-scripts/ifcfg-ens3

#Generated by parse-kickstart
IPV6INIT=yes
DHCP_HOSTNAME=rhev1.example.com
BOOTPROTO=dhcp
DEVICE=ens3
ONBOOT=yes
UUID=a6969329-8894-4d63-a735-a7cd524449a8

Comment 2 Fabian Deutsch 2016-05-04 15:07:47 UTC
Considering bug 1329943 I'd say this is not a bug, because a.b.c is not  hostname, but a FQDN.

The hostname is just a string without a dot, thus a in the example above.
And according to comment 0 after installation the part before the first dot is used as the hostname, which is correct.