From e6076ee41b467f4e69f1c554a2bf8b4891858948 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Wed, 3 Dec 2014 21:46:59 -0600 Subject: [PATCH] Fixed keystone cache vip for dogpile The keystone cache vip was being pinned to the internal lb vip address this causes issues with consistant hashing in caches and removes the requirement for having memcached on a vip address powered by the LB. Change-Id: I6aaecbbf0ebf5aa2433d68e8c139ddfff810c973 Closes-Bug: 1398649 --- rpc_deployment/roles/keystone_common/templates/keystone.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc_deployment/roles/keystone_common/templates/keystone.conf.j2 b/rpc_deployment/roles/keystone_common/templates/keystone.conf.j2 index 39fcec7425..ce651a90e9 100644 --- a/rpc_deployment/roles/keystone_common/templates/keystone.conf.j2 +++ b/rpc_deployment/roles/keystone_common/templates/keystone.conf.j2 @@ -23,7 +23,7 @@ max_compare_and_set_retry = 16 [cache] backend = dogpile.cache.memcached -backend_argument = url:{{ internal_vip_address }}:{{ memcached_port }} +backend_argument = url:{% for host in groups['memcached'] %}{{ hostvars[host]['container_address'] }}{% if not loop.last %},{% endif %}{% endfor %}:{{ memcached_port }} config_prefix = cache.keystone distributed_lock = True expiration_time = 5400