From e2bc9dcf79d0780b765545b796db114ad2f52eca Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Thu, 5 Nov 2015 11:00:35 +0000 Subject: bootstrap takes place on the wrong node The bootstrap must occur on the nova-api node due to binding in the nova-api directory (same goes for all other services) Closes-Bug: #1513439 Backport: Liberty Change-Id: Iab88b49712828085e4d7e7f85e6d8f0b7999a9bf --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ansible/roles/haproxy') diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 3e31edb0e..1b3f91ed3 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -67,13 +67,13 @@ listen keystone_admin {% if enable_glance | bool %} listen glance_registry bind {{ kolla_internal_address }}:{{ glance_registry_port }} -{% for host in groups['glance'] %} +{% for host in groups['glance-registry'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ glance_registry_port }} check inter 2000 rise 2 fall 5 {% endfor %} listen glance_api bind {{ kolla_internal_address }}:{{ glance_api_port }} -{% for host in groups['glance'] %} +{% for host in groups['glance-api'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ glance_api_port }} check inter 2000 rise 2 fall 5 {% endfor %} {% endif %} -- cgit v1.2.3