Bug 1286830
| Summary: | External Authentication configuration fails after setting hostname in appliance console | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | abellott | |
| Component: | Appliance | Assignee: | Nick Carboni <ncarboni> | |
| Status: | CLOSED ERRATA | QA Contact: | luke couzens <lcouzens> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.5.0 | CC: | abellott, cpelland, jhardy, jprause, mfeifer, ncarboni, obarenbo | |
| Target Milestone: | GA | |||
| Target Release: | 5.6.0 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.6.0.0 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1287853 (view as bug list) | Environment: | ||
| Last Closed: | 2016-06-29 15:13:59 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1287853 | |||
|
Description
abellott
2015-11-30 20:37:33 UTC
New commit detected on ManageIQ/linux_admin/master: https://github.com/ManageIQ/linux_admin/commit/e7738efb10f245161acbb33ea770eb6f96164034 commit e7738efb10f245161acbb33ea770eb6f96164034 Author: Nick Carboni <ncarboni> AuthorDate: Tue Dec 1 09:23:08 2015 -0500 Commit: Nick Carboni <ncarboni> CommitDate: Wed Dec 2 15:39:31 2015 -0500 Added a method to set the canonical hostname in `/etc/hosts` Fixes #143 https://bugzilla.redhat.com/show_bug.cgi?id=1286830 lib/linux_admin/hosts.rb | 41 ++++++++++++++++++++++++++++------------- spec/hosts_spec.rb | 21 +++++++++++++++++++++ 2 files changed, 49 insertions(+), 13 deletions(-) The PR on linux_admin added the required functionality to the Hosts class. The PR here https://github.com/ManageIQ/manageiq/pull/5714 uses that new functionality to fix the bug. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/1e48b727d895a7e94bfbf50f20bd932243ada71d commit 1e48b727d895a7e94bfbf50f20bd932243ada71d Author: Nick Carboni <ncarboni> AuthorDate: Fri Dec 4 13:33:50 2015 -0500 Commit: Nick Carboni <ncarboni> CommitDate: Fri Dec 4 13:33:50 2015 -0500 Altered the console to set the canonical hostname rather than an alias The /etc/hosts man page describes a difference between the "canonical_hostname" (fqdn) and the aliases for that hostname. This difference is reflected in the behaviour of some external tools such as cloud-init and freeipa. These tools will retrieve the hostname (typically via the hostname command or from /etc/hostname) then consult /etc/hosts to find the fqdn by taking the name in the "canonical_hostname" place in the line where the found hostname is an alias. This can cause problems when the application acts differently based on whether the fqdn is "localhost" or not. https://bugzilla.redhat.com/show_bug.cgi?id=1286830 gems/pending/Gemfile | 2 +- gems/pending/appliance_console.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Discussion on this here https://github.com/ManageIQ/manageiq/pull/5854 Luke, I don't think this issue is related to that conversation. This was to fix appliance_console so that it would set the canonical hostname rather than an alias so IPA would see that the hostname was indeed set to something other than localhost. I think the bug related to that PR is https://bugzilla.redhat.com/show_bug.cgi?id=1291879 Verified in 5.6.0.4-beta2.3 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://access.redhat.com/errata/RHBA-2016:1348 |