Bug 1324154

Summary: [6.2 Beta Snap 6.1] foreman-installer is not performing hostname validation
Product: Red Hat Satellite Reporter: Rich Jerrido <rjerrido>
Component: InstallerAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, cwelton, ehelms, kbidarka, mmccune
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14657
Whiteboard:
Fixed In Version: rubygem-kafo-0.7.3-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:12:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rich Jerrido 2016-04-05 16:37:05 UTC
Description of problem:

It is expected that the installer should validate that the system has a valid hostname prior to installation, to make sure that certificates and other configurations are setup properly. 


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

katello-installer-base-3.0.0.14-1

How reproducible:
100%

Steps to Reproduce:
1. install beta snap 6.1 from (http://sat-perf-02.sat6.lab.eng.bos.redhat.com/pulp/repos/Sat6-CI/QA/Satellite_RHEL7/custom/Red_Hat_Satellite_6_2_Composes/RHEL7_Satellite_x86_64_os/)
2. set a hostname to 'localhost' 
3. run foreman-installer --scenario katello

Actual results:
installation proceeds and later fails. 

Expected results:
installation immediately stops and informs the user that they need to set a proper hostname. (as was done previously in 6.1)

Additional info:

Comment 3 Sanket Jagtap 2016-04-21 09:53:16 UTC
Installation Immediately stops and informs the user that they need to set a proper hostname.

Build used: snap9.0

Output:
Output of 'hostname -f' does not seems to be valid FQDN

Make sure above command gives fully qualified domain name. At least one
dot must be present and underscores are not allowed. If needed, change the hostname permanently via 'hostname' command and editing 
appropriate configuration file.
(e.g. on Red Hat systems /etc/sysconfig/network).

If 'hostname -f' still returns unexpected result, check /etc/hosts and put
hostname entry in the correct order, for example:
 
  1.2.3.4 full.hostname.com full
 
Fully qualified hostname must be the first entry on the line
Your system does not meet configuration criteria.

Comment 4 Bryan Kearney 2016-07-27 11:12:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501