Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1543638 - httpd pod cannot forward requests to cloudforms pod when httpd-auth-configs is updated with AD auth settings
httpd pod cannot forward requests to cloudforms pod when httpd-auth-configs i...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: cfme-httpd-configmap-generator (Show other bugs)
5.9.0
Unspecified Unspecified
high Severity high
: GA
: 5.9.3
Assigned To: Joe Vlcek
Ievgen Zapolskyi
Steve Bream
auth:externalauth:ad
: ZStream
Depends On: 1590301
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-08 16:40 EST by Ievgen Zapolskyi
Modified: 2018-07-12 10:51 EDT (History)
7 users (show)

See Also:
Fixed In Version: 5.9.3.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-07-12 10:51:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core
izapolsk: automate_bug+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2183 None None None 2018-07-12 10:51 EDT

  None (edit)
Description Ievgen Zapolskyi 2018-02-08 16:40:41 EST
Description of problem:
httpd generator pod generates config map with new resolv.conf file.
initialize-httpd-auth service of httpd pod replaces default resolve.conf with openshift's dns ip by new resolv.conf from httpd-auth-configs config map.
As a result httpd pod cannot resolve cloudforms name and cannot forward requests to it. 

Version-Release number of selected component (if applicable):
5.9.0.18/upstream
I have to use upstream httpd-config-generator because of blocker 1540641.
But httpd pod and the rest is 5.9.0.18

How reproducible:
100%

Steps to Reproduce:
1. generate AD auth configuration using httpd generator pod
2. replace default httpd-auth-configs config map
3. redeploy httpd pod
4. oc rsh to httpd pod and check initialize-httpd-auth service state
if it is failed, then start service manually (this is necessary because of another bug)
5. try to connect to CloudForms in browser


Actual results:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: DNS lookup failure for: cloudforms

Expected results:
resolv.conf should be correctly updated
Comment 2 Joe Vlcek 2018-05-08 10:21:49 EDT
Ievgen,

Can post a PM in the BZ with the credentials for the environment where you are encountering this?

Thank you. JoeV
Comment 4 Joe Vlcek 2018-05-21 16:48:30 EDT
This issue will be addressed by PR: https://github.com/ManageIQ/httpd_configmap_generator/pull/32
Comment 5 Joe Vlcek 2018-05-21 16:53:22 EDT
Ievgen,

I have posted a PR that does remove the /etc/resolv.conf from the Active Directory
config map, as you have pointed out should not be.

I have also changed "--ad-server" name to be a required parameter.

I have tested the fix on the QE OpenShift test bed but I used my Active Directory
server/Realm. The Active Directory realm must be DNS resolvable and it is not
in the QE Active Directory set up.

So although this PR will allow for successful generation of active directory
config maps doing so will not be possible until the active directory realm is
DNS resolvable for the QE AD test setup.
Comment 6 Ievgen Zapolskyi 2018-05-22 05:51:52 EDT
Joe, 

nice, thank you!

as for QE AD test setup we know about that and we add some workaround to make AD DNS resolvable.
Comment 7 Joe Vlcek 2018-05-22 10:36:31 EDT
https://github.com/ManageIQ/httpd_configmap_generator/pull/32
has been merged. Moving to "POST"
Comment 10 Ievgen Zapolskyi 2018-06-20 09:19:16 EDT
Verified in 5.9.3.2
Comment 12 errata-xmlrpc 2018-07-12 10:51:39 EDT
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-2018:2183

Note You need to log in before you can comment on or make changes to this bug.