Fix wrong api interface reference in haproxy.cfg for nova serial

Change-Id: Ie81e3a2528ea04106ecf8c9f5e4491b1d98d2f7a
Closes-Bug: #1674645
(cherry picked from commit f7c54a5dd2)
This commit is contained in:
Jeffrey Zhang 2017-03-21 18:06:33 +08:00
parent 4d6cec43c7
commit 32f932fb76
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}