#8018 /etc/hosts make ipa-server-install fail even if it is OK
Opened 4 years ago by mulatinho. Modified 4 years ago

Request for enhancement

As admin , I want install an ipa-server on my machine but it warns and stops wrongly even if hosts file seems OK.

Issue

Firstly is a thing that I think most sysadmins not do like that, but in Fedora 30 seems to be a pattern put aliases in /etc/hosts firstly than the FQDN.

Steps to Reproduce

  1. with a machine without freeipa-server,
  2. using the same pattern of fedora 30 in /etc/hosts [1]
  3. run ipa-server-install --setup-dns make happen an installation bug even if seems OK;

[1] /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
10.0.0.1 serveripa serveripa.localdomain

Actual behavior

2019-07-23T16:08:23Z DEBUG The ipa-server-install command failed, exception: ScriptError: The host name serveripa.localdomain does not match the primary host name ipaclient01. Please check /etc/hosts or DNS name resolution
2019-07-23T16:08:23Z ERROR The host name serveripa.localdomain does not match the primary host name serveripa. Please check /etc/hosts or DNS name resolution

Expected behavior

Install ipa-server without this problem

Version/Release/Distribution

$ rpm -q freeipa-server freeipa-client
freeipa-server-4.8.0-1.fc30.x86_64
freeipa-client-4.8.0-1.fc30.x86_64

PR to resolve this issue was created on: https://github.com/freeipa/freeipa/pull/3434

Hope it helps :-)

Login to comment on this ticket.

Metadata