Bug 1291879

Summary: IPA client install fails due to bad hostname localhost.localdomain
Product: Red Hat CloudForms Management Engine Reporter: Pete Savage <psavage>
Component: ApplianceAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED DUPLICATE QA Contact: Pete Savage <psavage>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: abellott, dmisharo, jhardy, lcouzens, ncarboni, obarenbo, psavage
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: appliance:ldap:error
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-02 20:27:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pete Savage 2015-12-15 19:30:32 UTC
Description of problem: IPA client install fails due to bad hostname localhost.localdomain


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


How reproducible: 100%


Steps to Reproduce:
1. Deploy appliance
2. Manually set hostname in the black console
3. Try to run the External httpd configuration

Actual results: Fails with localhost.localdomain is not a valid hostname


Expected results: The hostname that was set should be picked up


Additional info:
If the hostname passed to the installer is left blank, then the IPA installer uses socket.getfqdn() in python. This in turn, due to the lack of an arg, will get the hostname for 127.0.0.1, which will be the first hostname with a . in it, as listed in /etc/hosts. On a RHEL based system this will be, localhost.localdomain. This domain name is invalid in ipa and cannot be used with the installer. It should pick up the set hostname, a PR for this is outlined here,

https://github.com/ManageIQ/manageiq/pull/5854

Comment 2 Nick Carboni 2015-12-16 14:58:15 UTC
This is only an issue if the hostname set doesn't have a '.' in it.

See https://github.com/ManageIQ/manageiq/pull/5854 for details.

Comment 3 Dave Johnson 2016-01-27 01:57:59 UTC
Pete, does a workaround exist for this one?  I assume if we set the hostname to something resolvable, we are ok?

Comment 4 Dmitry Misharov 2016-01-29 09:12:37 UTC
I believe it's fixed and verified in https://bugzilla.redhat.com/show_bug.cgi?id=1287853 Also there is some another catch with IPA https://bugzilla.redhat.com/show_bug.cgi?id=1292146

Comment 5 Nick Carboni 2016-12-02 20:27:33 UTC

*** This bug has been marked as a duplicate of bug 1360928 ***