From ee67917c4948ba204094aa660de4083f76d48316 Mon Sep 17 00:00:00 2001 From: Ian Kumlien Date: Tue, 9 Jan 2018 13:19:54 +0100 Subject: [PATCH] We actually require 'mode http' So it turns out that without 'mode http' redirects and rewrites will not happen, and we're relying on it for multiple things. Switch neutron to use http-tunnel mode instead which seems to work, we've had no errors in our setup. See: https://www.haproxy.org/download/1.5/doc/configuration.txt Quoute: " - tunnel : only the first request and response are processed, everything else is forwarded with no analysis." Fixes: bba80acc8b78ab3a34d61b3d0b496551e5a9258e Change-Id: I0d9abe9731fba1e4deb64932e859f991648bb1ec --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 335b4b9f05..3ba59d6fbe 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -15,6 +15,7 @@ global defaults log global + mode http option redispatch option httplog option forwardfor @@ -230,6 +231,7 @@ listen nova_serialconsole_proxy_external {% if enable_neutron | bool %} listen neutron_server + option http-tunnel bind {{ kolla_internal_vip_address }}:{{ neutron_server_port }} {% for host in groups['neutron-server'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ neutron_server_port }} check inter 2000 rise 2 fall 5 @@ -237,6 +239,7 @@ listen neutron_server {% if haproxy_enable_external_vip | bool %} listen neutron_server_external + option http-tunnel bind {{ kolla_external_vip_address }}:{{ neutron_server_port }} {{ tls_bind_info }} {% for host in groups['neutron-server'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ neutron_server_port }} check inter 2000 rise 2 fall 5