HyperV: fix FreeRDP console config

Console access for HyperV VMs is now done via Kolla VIP.
The VIP will point to each HyperV compute node IP on which
FreeRDP-WebConnect is installed.

Closes-Bug: #1714249
Change-Id: I3a5d23425996a5c347ff21df3f99c3f63dd35173
(cherry picked from commit 418d584693)
This commit is contained in:
Dan Ardelean 2017-09-01 19:14:28 +03:00 committed by Michal Jastrzebski (inc0)
parent 76161f0bf1
commit 4be4c43eb4
3 changed files with 8 additions and 2 deletions

View File

@ -160,6 +160,12 @@ listen nova_spicehtml5proxy
{% for host in groups['nova-spicehtml5proxy'] %}
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ nova_spicehtml5proxy_port }} check inter 2000 rise 2 fall 5
{% endfor %}
{% elif nova_console == 'rdp' %}
listen nova_rdp
bind {{ kolla_internal_vip_address }}:{{ rdp_port }}
{% for host in groups['hyperv'] %}
server {{ hostvars[host]['ansible_hostname'] }} {% for ip in hostvars[host]['ansible_ip_addresses'] %}{% if host == ip %}{{ ip }}{% endif %}{% endfor %}:{{ rdp_port }} check inter 2000 rise 2 fall 5
{% endfor %}
{% endif %}
{% if enable_nova_serialconsole_proxy | bool %}

View File

@ -46,7 +46,7 @@ enable_instance_metrics_collection = false
[rdp]
enabled = true
html5_proxy_base_url = {{ public_protocol }}://{{ ansible_fqdn }}:{{ rdp_port }}
html5_proxy_base_url = {{ public_protocol }}://{{ kolla_internal_vip_address }}:{{ rdp_port }}
[neutron]
url = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ neutron_server_port }}

View File

@ -121,7 +121,7 @@ kolla_internal_vip_address: "10.10.10.254"
# Valid options are [ True, False ]
#openstack_logging_debug: "False"
# Valid options are [ novnc, spice ]
# Valid options are [ novnc, spice, rdp ]
#nova_console: "novnc"
# OpenStack services can be enabled or disabled with these options