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
This commit is contained in:
Jimmy McCrory 2019-07-23 02:41:07 -05:00
parent d8ba6735c6
commit dc409a98e3

View File

@ -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