Bug 1390724

Summary: External Authentication configuration fails after setting hostname in appliance console
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED ERRATA QA Contact: amogh <amavinag>
Severity: medium Docs Contact:
Priority: high    
Version: 5.6.0CC: abellott, amavinag, cpelland, jhardy, ncarboni, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: auth::externalauth
Fixed In Version: 5.6.3.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1360928 Environment:
Last Closed: 2016-11-30 19:57:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1360928    
Bug Blocks:    

Comment 2 CFME Bot 2016-11-03 21:11:22 UTC
New commit detected on ManageIQ/manageiq/darga:
https://github.com/ManageIQ/manageiq/commit/cdf8c7abb741c7c7cb3a795cd4f4144973a0d58b

commit cdf8c7abb741c7c7cb3a795cd4f4144973a0d58b
Author:     Nick Carboni <ncarboni>
AuthorDate: Mon Oct 31 17:21:13 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Thu Nov 3 17:05:53 2016 -0400

    Merge pull request #12171 from jvlcek/bz1360928_ext_auth_hostname
    
    Set hostname on both IPv6 and IPv4 loopback addrs
    (cherry picked from commit d00ab3e15116132e5b951ab466ef0963f2de2909)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1390724

 gems/pending/Gemfile                            | 2 +-
 gems/pending/appliance_console.rb               | 2 +-
 gems/pending/appliance_console/cli.rb           | 3 +--
 gems/pending/spec/appliance_console/cli_spec.rb | 6 ------
 4 files changed, 3 insertions(+), 10 deletions(-)

Comment 3 amogh 2016-11-18 17:54:21 UTC
verified this issue in 5.6.3.0.20161108115816_66df924 and feature works fine.

1. open the appliance_console and set the hostname (valid FQDN)
2. configure the ext_auth for IPA

Ext_auth for IPA configured successfully.


check the /etc/hosts on appliance:

[root@localhost vmdb]# cat /etc/hosts
127.0.0.1        <appliance-FQDN> localhost localhost.localdomain localhost4 localhost4.localdomain4
::1              <appliance-FQDN> localhost localhost.localdomain localhost6 localhost6.localdomain6

Comment 5 errata-xmlrpc 2016-11-30 19:57:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2839.html