From 4b11fa8b707c26e68528d9c61fd689baf07b2ae1 Mon Sep 17 00:00:00 2001 From: James Denton Date: Tue, 20 Oct 2020 09:09:37 -0500 Subject: [PATCH] Support spicehtml5proxy on baremetal with haproxy This patch changes the listener address for spicehtml5proxy from 0.0.0.0 (default) to the nova_management_address to avoid "Address already in use" errors. Change-Id: I952998f3c6dd7db218b572c057149352c41c1d65 --- templates/nova.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 986d7d17..f9a9bbd5 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -81,6 +81,7 @@ agent_enabled = {{ nova_console_agent_enabled }} enabled = {{ nova_console_agent_enabled }} # Console Url and binds html5proxy_base_url = {{ nova_spice_html5proxy_base_url }} +html5proxy_host = {% if nova_management_address == 'localhost' %}127.0.0.1{% else %}{{ nova_management_address }}{% endif %} server_listen = {% if nova_management_address == 'localhost' %}127.0.0.1{% else %}{{ nova_management_address }}{% endif %} server_proxyclient_address = {% if nova_management_address == 'localhost' %}127.0.0.1{% else %}{{ nova_management_address }}{% endif %}