From 53150ca2c031a81ded0db851761647a5caffe614 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Wed, 19 Oct 2016 09:12:58 +0800 Subject: [PATCH] Memcache configuration for Ceilometer is broken At the moment we use "memcached_servers = {{ kolla_internal_fqdn }}:{{ memcached_port }}" in keystone_authtoken for Ceilometer. This cannot work because we our haproxy service does not offer memcache, so fix it. Change-Id: I7d9630b8b232f0e5e2a0a33304817a1b255d4855 Closes-Bug: #1634146 --- ansible/roles/ceilometer/templates/ceilometer.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/ceilometer/templates/ceilometer.conf.j2 b/ansible/roles/ceilometer/templates/ceilometer.conf.j2 index 2bffb57e49..ef3d88cc35 100644 --- a/ansible/roles/ceilometer/templates/ceilometer.conf.j2 +++ b/ansible/roles/ceilometer/templates/ceilometer.conf.j2 @@ -26,7 +26,7 @@ metering_connection = mysql+pymysql://{{ ceilometer_database_user }}:{{ ceilomet {% endif %} [keystone_authtoken] -memcached_servers = {{ kolla_internal_fqdn }}:{{ memcached_port }} +memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }} project_domain_name = Default project_name = service