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 How reproducible: always 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 3. Actual results: 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. Expected results: IPA-server install can exit. I expect the installer to detect this problem and explain that in it's failure message. Something like: 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 127.0.0.1 Additional info: 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
ipa-1-0: 8b99efbe3c8f050402f98cb9305a2d749ddc9ed8 master: ae641ed31b45a19def11273b13d41658ed0580ce
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 for 127.0.0.1