diff --git a/ansible/roles/haproxy/defaults/main.yml b/ansible/roles/haproxy/defaults/main.yml index 769df40081..b38a9aea98 100644 --- a/ansible/roles/haproxy/defaults/main.yml +++ b/ansible/roles/haproxy/defaults/main.yml @@ -38,3 +38,6 @@ haproxy_image_full: "{{ haproxy_image }}:{{ haproxy_tag }}" haproxy_client_timeout: "1m" haproxy_server_timeout: "1m" + +haproxy_glance_api_client_timeout: "6h" +haproxy_glance_api_server_timeout: "6h" diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 14a181e77e..54256baaf3 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -92,6 +92,8 @@ listen glance_registry listen glance_api bind {{ kolla_internal_vip_address }}:{{ glance_api_port }} + timeout client {{ haproxy_glance_api_client_timeout }} + timeout server {{ haproxy_glance_api_server_timeout }} {% for host in groups['glance-api'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ glance_api_port }} check inter 2000 rise 2 fall 5 {% endfor %}