Description of problem: RHEL hosts registered via an RHN proxy server cannot register to the Insights service. Deployment is as follows: RHEL Host --> RHN Proxy --> Satellelite 5 Server --> Red Hat Insights Service This is a supported configuration and should work without explicit configuration on the RHN proxy. The RHN Proxy configuration script should automatically set up the following reverse proxy rule in the its httpd configuration: ProxyPass /redhat_access https://<satserver_ip>/redhat_access ProxyPassReverse /redhat_access https://<satserver_ip>/redhat_access Version-Release number of selected component (if applicable): 5.7 How reproducible: Steps to Reproduce: 1. Setup Host--> RHN Proxy --> Satellite 5 server 2. Attempt to register host to Insights service (redhat-access-insights --register) Actual results: Registration fails with an HTTP 404 exception Expected results: Registration should work , with the RHN proxy acting as a reverse proxy to the main Satellite server. Additional info:
See linked customer case.
Starting work on this bug...
Added config for Red Hat Insights service. Patch is available in upstream (spacewalk.git): 09bc079c61144a8acece5ff9639d76efa208e258 Switching to modified...
*** Bug 1376036 has been marked as a duplicate of this bug. ***
Steps to verify: spacewalk-proxy-installer-2.3.0-6.el6sat.noarch 1. Setup Host--> RHN Proxy --> Satellite 5 server 2. redhat-access-insights --register 2016-09-22 03:11:07,691 DEBUG hostname: <proxy hostname> ip: 10.16.64.79 2016-09-22 03:11:07,695 DEBUG Obtaining branch information from https://<proxy hostname>/redhat_access/r/insights/v1/branch_info 2016-09-22 03:11:07,733 DEBUG GET branch_info status: 404 2016-09-22 03:11:07,733 DEBUG 2016-09-22 03:11:07,733 DEBUG Failed to parse response from Satellite 5 2016-09-22 03:11:07,733 WARNING Could not auto configure, falling back to static config 2016-09-22 03:11:07,733 WARNING See /var/log/redhat-access-insights/redhat-access-insights.log for additional information 3. There is no /etc/httpd/conf.d/insights-proxy.conf on RHN Proxy -------------------------------------------------------------- With new package spacewalk-proxy-installer-2.3.0-7.el6sat.noarch 1. Setup Host--> RHN Proxy --> Satellite 5 server 2. redhat-access-insights --register is OK 3. There is configured /etc/httpd/conf.d/insights-proxy.conf /etc/httpd/conf.d/insights-proxy.conf:ProxyPass /redhat_access https://<satellite hostname>/redhat_access /etc/httpd/conf.d/insights-proxy.conf:ProxyPassReverse /redhat_access https://<satellite hostname>/redhat_access
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/RHBA-2016-2037.html