Bug 1324154 - [6.2 Beta Snap 6.1] foreman-installer is not performing hostname validation
Summary: [6.2 Beta Snap 6.1] foreman-installer is not performing hostname validation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Sanket Jagtap
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-05 16:37 UTC by Rich Jerrido
Modified: 2019-09-26 17:34 UTC (History)
6 users (show)

Fixed In Version: rubygem-kafo-0.7.3-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:12:52 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14657 0 None None None 2016-04-22 16:51:15 UTC

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


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