From f7c54a5dd21a1e1b4fbb34f413a1226fe7dd6e08 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang <zhang.lei.fly@gmail.com> Date: Tue, 21 Mar 2017 18:06:33 +0800 Subject: [PATCH] Fix wrong api interface reference in haproxy.cfg for nova serial Change-Id: Ie81e3a2528ea04106ecf8c9f5e4491b1d98d2f7a Closes-Bug: #1674645 --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index ffd42929fb..680a2220a2 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -144,7 +144,7 @@ listen nova_spicehtml5proxy listen nova_serialconsole_proxy bind {{ kolla_internal_vip_address }}:{{ nova_serialproxy_port }} {% for host in groups['nova-serialproxy'] %} - server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ nova_serialproxy_port }} check inter 2000 rise 2 fall 5 + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ nova_serialproxy_port }} check inter 2000 rise 2 fall 5 {% endfor %} {% endif %} {% if haproxy_enable_external_vip | bool %}