Bug 1451508
| Summary: | backport request neutron: Add http_proxy_to_wsgi to api-paste | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Assaf Muller <amuller> |
| Component: | openstack-neutron | Assignee: | Bernard Cafarelli <bcafarel> |
| Status: | CLOSED ERRATA | QA Contact: | Alexander Stafeyev <astafeye> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 9.0 (Mitaka) | CC: | akaris, amuller, bcafarel, chrisw, dcadzow, jjoyce, lhh, mlopes, nyechiel, oblaut, samccann, srevivo, tfreger |
| Target Milestone: | zstream | Keywords: | FeatureBackport, Triaged, ZStream |
| Target Release: | 9.0 (Mitaka) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-neutron-8.3.0-10.el7ost | Doc Type: | Enhancement |
| Doc Text: |
This enhancement adds http_proxy_to_wsgi to api-paste. As a result, this places the HTTPProxyToWSGI middleware in front of the Neutron-API. The purpose of this middleware is to setup the request URL correctly in case there is a proxy (for example, a loadbalancer such as HAProxy) in front of neutron.
For example, when TLS connections are being terminated in the proxy, and you attempt to get the versions from the `/` neutron resource, the protocol is incorrect and reports as 'http' instead of 'https'. The HTTPProxyToWSGI middleware handles such cases and helps keystone discovery work correctly. HTTPProxyToWSGI is off by default and needs to be enabled with a configuration value.
|
Story Points: | --- |
| Clone Of: | 1451496 | Environment: | |
| Last Closed: | 2017-07-12 13:18:57 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: | |||
|
Description
Assaf Muller
2017-05-16 21:09:29 UTC
It may require an additional backport, waiting for update in bug #1451496 Hi, Can you assist with reproduction steps pls ? tnx Andreas Karis in original bug may have some more info, but here is a base outline: * have haproxy in front of neutron-server, with TLS enabled * enable in server.conf enable_proxy_headers_parsing in oslo_middleware section * run a request on /, the answer should have pointers to "https://" URLs, not "http://" as would appear with the parameter enabled Code-wise, the change should show the mentioned parameter in neutron.conf, andd http_proxy_to_wsgi step in composites sections in api-paste.ini For more info about how to set up haproxy, have a look here: https://access.redhat.com/solutions/3034681 (this was for OSP 8) 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-2017:1736 |