Project

General

Profile

Bug #16929

Better error message for unresolvable host name

Added by Stephen Benjamin over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Installer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1368443
Description of problem:

If you do not configure a FQDN properly an error message is displayed, but the error message is incorrect.

The main error is in this part:
1.2.3.4 full.hostname.com full

This would be more accurate:
1.2.3.4 host_name.domain_name.com host_name

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

How reproducible:
every time

Steps to Reproduce:
1. misconfigure host anme
2. try to install Satellite Server

Actual results:
hostname: No address associated with name
Output of 'facter fqdn' is different from 'hostname -f'

Make sure above command gives the same output. 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

Expected results:

hostname: No address associated with name
Output of 'facter fqdn' is different from 'hostname -f'

Make sure the above command gives the same output. If needed, change 
the host name permanently using the 'hostname' command and editing
appropriate configuration files. (e.g. '/etc/sysconfig/network' on Red Hat Enterprise Linux 6 systems or '/etc/hostname' on Red Hat Enterprise Linux 7 systems ).
If 'hostname -f' still returns unexpected result, check /etc/hosts and put
the host name entry in the correct order, for example:
1.2.3.4 host_name.domain_name.com host_name
The Fully qualified host name must be the first entry on the line after the IP address.
Your system does not meet configuration criteria

Additional info:

Associated revisions

Revision 545f1feb (diff)
Added by Stephen Benjamin over 5 years ago

fixes #16929 - make hostname check message clearer (#412)

The way to set the hostname of el6 and el7 is different, and make
the /etc/hosts entry a little more clear.

History

#1 Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Stephen Benjamin
  • Pull request https://github.com/Katello/katello-installer/pull/412 added

#2 Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Eric Helms over 5 years ago

  • Subject changed from Better error message for unresolvable host name to Better error message for unresolvable host name
  • Legacy Backlogs Release (now unused) set to 197

Also available in: Atom PDF