Make tunnel timeout for nova_serialconsole_proxy configurable

Currently, the serial consoles as accessed through Horizon,
timeout after the haproxy_client_timeout (default: 1m) of
inactivity. This change allows you to set a larger timeout.

Change-Id: I2a9923cb69d5db976395146685aded83922c4120
Closes-Bug: #1800643
This commit is contained in:
Will Szumski 2018-10-30 12:08:11 +00:00
parent 1731f81fa0
commit 28287826e8
2 changed files with 15 additions and 0 deletions

View File

@ -183,11 +183,15 @@ nova_services:
mode: "http" mode: "http"
external: false external: false
port: "{{ nova_serialproxy_port }}" port: "{{ nova_serialproxy_port }}"
backend_http_extra:
- "timeout tunnel {{ haproxy_nova_serialconsole_proxy_tunnel_timeout }}"
nova_serialconsole_proxy_external: nova_serialconsole_proxy_external:
enabled: "{{ enable_nova|bool and enable_nova_serialconsole_proxy|bool }}" enabled: "{{ enable_nova|bool and enable_nova_serialconsole_proxy|bool }}"
mode: "http" mode: "http"
external: true external: true
port: "{{ nova_serialproxy_port }}" port: "{{ nova_serialproxy_port }}"
backend_http_extra:
- "timeout tunnel {{ haproxy_nova_serialconsole_proxy_tunnel_timeout }}"
nova-conductor: nova-conductor:
container_name: "nova_conductor" container_name: "nova_conductor"
group: "nova-conductor" group: "nova-conductor"
@ -342,6 +346,11 @@ nova_conductor_dimensions: "{{ default_container_dimensions }}"
nova_compute_dimensions: "{{ default_container_dimensions }}" nova_compute_dimensions: "{{ default_container_dimensions }}"
nova_compute_ironic_dimensions: "{{ default_container_dimensions }}" nova_compute_ironic_dimensions: "{{ default_container_dimensions }}"
####################
# HAProxy
####################
haproxy_nova_serialconsole_proxy_tunnel_timeout: "10m"
#################### ####################
# OpenStack # OpenStack
#################### ####################

View File

@ -0,0 +1,6 @@
---
features:
- |
Added an option, haproxy_nova_serialconsole_proxy_tunnel_timeout,
to configure the nova_serialconsole_proxy tunnel timeout. This default
is to keep the websocket connection alive for 10 minutes.