Fix blazar haproxy service
In [1], missing blazar haproxy server was added. Turns out that blazar does not support '/healthcheck' and all API requests require authentication. It makes it hard for haproxy to monitor backends because they respond with 401 response code(unauthorized). With this patch, haproxy will accept 401 response code along with 200 for blazar service. [1] https://review.opendev.org/c/openstack/openstack-ansible/+/880564 Change-Id: I882e9257b41681a25bda5e200df7e8bd8700c186
This commit is contained in:
parent
6bd4aca83f
commit
d2b3deca77
@ -163,6 +163,8 @@ haproxy_blazar_api_service:
|
||||
haproxy_balance_type: http
|
||||
haproxy_backend_options:
|
||||
- "httpchk HEAD / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
|
||||
haproxy_backend_httpcheck_options:
|
||||
- 'expect rstatus (200|401)'
|
||||
haproxy_service_enabled: "{{ groups['blazar_api'] is defined and groups['blazar_api'] | length > 0 }}"
|
||||
|
||||
haproxy_ceph_rgw_service:
|
||||
|
Loading…
Reference in New Issue
Block a user