Red Hat Bugzilla – Bug 442812
When /etc/hosts contains hostname on 127.0.0.1 line, ipa-server-install fails
Last modified: 2015-01-04 18:31:58 EST
Description of problem:
when the hosts file is mis configured, ipa-server-install fails.
Version-Release number of selected component (if applicable):
RHEL IPA nightly build from 4-15-08
Steps to Reproduce:
1. add the hostname to the 127.0.0.1 line only, like:
127.0.0.1 <FQDN hostname> localhost
2. run ipa-server-install
ipa-server-install exits with:
root : ERROR The IPA Server hostanme cannot resolve to localhost
(127.0.0.1), a routable IP address must be used.
IPA-server install can exit. I expect the installer to detect this problem and
explain that in it's failure message.
IPA server install detected that the machines hostname resolves to 127.0.0.1 the
most common cause of this is a misconfigured hosts file. Make sure the hostname
is referenced only to the real IP of the machine in the hosts file, and not to
This hosts file configuration type is the most common configuration that RHEL
sets up. We need to detect it.
So the bug here is that the error message is bad, not that we don't handle the
case of a misconfigured /etc/hosts, right?
Right, I didn't state that very clearly.
The bug is that we don't explain this very well to the end user.
IPA not installing properly with a mis-configured hosts file seems fine.
Perhaps show what the /etc/hosts should look like.
Created attachment 304902 [details]
include pointer to /etc/hosts for where to look to fix the problem
QA Verified on June 9, 2008 (Yi)
Build used: June 9, 2008 (64bit RHEL 5.2)
[root@replica64 ~]# cat < /etc/hosts
127.0.0.1 replica64.ipaqa.com localhost
::1 localhost6.localdomain6 localhost6
===> ipa-server-install error: <===============
Server host name [replica64.ipaqa.com]:
Unexpected error - see ipaserver-install.log for details:
The IPA Server hostname cannot resolve to localhost (127.0.0.1). A routable IP
address must be used. Check /etc/hosts to see if replica64.ipaqa.com is an alias