From d20756585f797f83e5bf3975f84c500e8f40b3cb Mon Sep 17 00:00:00 2001 From: Sofer Athlan-Guyot Date: Wed, 16 Dec 2015 14:07:02 +0100 Subject: Haproxy has non-working Horizon session persistence. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index 6306f61..3fe5ee9 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -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'], } } -- cgit 1.2.3-korg