loadbalancer: use http mode for Horizon haproxy config
authorEmilien Macchi <emilien@redhat.com>
Fri, 28 Aug 2015 16:29:11 +0000 (12:29 -0400)
committerEmilien Macchi <emilien@redhat.com>
Sun, 13 Sep 2015 19:08:01 +0000 (19:08 +0000)
The haproxy configuration for horizon does not have 'mode http' set.
This proxy needs to be in http mode since it is using a cookie for
persistence. The default section has 'mode tcp', which is fine, but
horizon proxy needs to override this setting to get http mode. Without
this, you will likely see an error like this:

[WARNING] 238/115010 (13878) : config : cookie will be ignored for proxy
'horizon' (needs 'mode http').'

Closes BZ-1257687

Change-Id: I397986ea022f47a33a5210696752509f4a2731a5

manifests/loadbalancer.pp

index e30d76e..1ee7573 100644 (file)
@@ -899,6 +899,7 @@ class tripleo::loadbalancer (
       options          => {
         'cookie' => 'SERVERID insert indirect nocache',
       },
+      mode             => 'http',
       collect_exported => false,
     }
     haproxy::balancermember { 'horizon':