Bug 1376036

Summary: Proxy5.6: Missing Reverse Proxy configuration to allow host registration to Insights through the RHN Proxy
Product: Red Hat Satellite Proxy 5 Reporter: Gennadii Altukhov <galtukho>
Component: InstallerAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 560CC: chenders, galtukho, ggainey, lphiri, satqe-list, tlestach, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-proxy-installer-2.0.1-4-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1367918 Environment:
Last Closed: 2016-09-21 16:26:21 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: 1367918    
Bug Blocks: 465198, 1368978    

Description Gennadii Altukhov 2016-09-14 13:24:15 UTC
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.

Comment 1 Gennadii Altukhov 2016-09-14 13:30:23 UTC
Added config for Red Hat Insights service.
Patch is available in upstream (spacewalk.git):

09bc079c61144a8acece5ff9639d76efa208e258

Switching to modified...