From dc409a98e3d8b3c28cc884442776bd9b525cc851 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Tue, 23 Jul 2019 02:41:07 -0500 Subject: [PATCH] Change haproxy http-check expect for nova_console Change the haproxy_backend_httpcheck_options to expect an 'OK' string rather than a 200 response to avoid constant logging of broken pipe errors in the console proxy services' logs. Change-Id: I77b7e090aa4331e6a9547e0526a0f291f06a57c0 --- inventory/group_vars/haproxy/haproxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/group_vars/haproxy/haproxy.yml b/inventory/group_vars/haproxy/haproxy.yml index 6510a7e850..9806eaf706 100644 --- a/inventory/group_vars/haproxy/haproxy.yml +++ b/inventory/group_vars/haproxy/haproxy.yml @@ -183,7 +183,7 @@ haproxy_default_services: haproxy_backend_options: - "httpchk HEAD {{ hostvars[(groups['nova_console'] | default(['localhost']))[0] | default('localhost')]['nova_console_path'] | default('/spice_auto.html') }} HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck" haproxy_backend_httpcheck_options: - - "expect status 200" + - "expect string OK" haproxy_service_enabled: "{{ groups['nova_console'] is defined and groups['nova_console'] | length > 0 }}" - service: haproxy_service_name: cinder_api