Fix Barbican's health checks

HAProxy healthchecks for Barbican are currently testing by sending
a HEAD request method, where it should be only using a GET.
The GET method only should test the /, because /healthcheck
was not implemented into barbican [1].

The expected result should be in 2xx/3xx range, which doesn't
require any special config in haproxy.

[1] See spec for /healthcheck
https://review.openstack.org/#/c/207317/5/specs/mitaka/healthcheck-endpoint.rst@117

Change-Id: I221ff0ad68de77d72a9c45db969ce2084a005774
Closes-Bug: 1702962
This commit is contained in:
Jean-Philippe Evrard 2017-08-17 14:23:28 +00:00 committed by Major Hayden
parent b7a0dedbf5
commit bb48a1ab14

View File

@ -254,9 +254,7 @@ haproxy_default_services:
haproxy_port: 9311
haproxy_balance_type: http
haproxy_backend_options:
- "httpchk HEAD /"
haproxy_backend_httpcheck_options:
- "expect status 401"
- "httpchk GET /"
- service:
haproxy_service_name: designate_api
haproxy_backend_nodes: "{{ groups['designate_api'] | default([]) }}"