Haproxy has non-working Horizon session persistence.
authorSofer Athlan-Guyot <chem@sathlan.org>
Wed, 16 Dec 2015 13:07:02 +0000 (14:07 +0100)
committerSofer Athlan-Guyot <chem@sathlan.org>
Tue, 5 Jan 2016 13:46:53 +0000 (14:46 +0100)
Haproxy is using session persistence[1] for horizon.  It is not
correctly configured though.  The cookie is not properly set.  This add
the necessary code.

[1]: http://blog.haproxy.com/2012/03/29/load-balancing-affinity-persistence-sticky-sessions-what-you-need-to-know/

Change-Id: Ic9d79475cf84c25fb8146ecbc5f0a45862c106f0
Closes-Bug: 1526786

manifests/loadbalancer.pp

index 6306f61..3fe5ee9 100644 (file)
@@ -961,7 +961,7 @@ class tripleo::loadbalancer (
       ports             => '80',
       ipaddresses       => hiera('horizon_node_ips', $controller_hosts_real),
       server_names      => $controller_hosts_names_real,
-      options           => ['check', 'inter 2000', 'rise 2', 'fall 5'],
+      options           => ["cookie ${::hostname}", 'check', 'inter 2000', 'rise 2', 'fall 5'],
     }
   }