From 7c8c31fd3c4423f55fdf0adbf71c3de653cc3add Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 30 Oct 2018 09:17:13 +0000 Subject: [PATCH] RGW haproxy backend return code can be 200 or 405 RGW Swift endpoint will return a 405 to httpchk. RGW S3 endpoint will return a 200 to httpchk. Change-Id: Ie5a9379d0823b1cdcfd67bbecb9a29ca4f262e92 --- 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 16adf4e62d..901cb11910 100644 --- a/inventory/group_vars/haproxy/haproxy.yml +++ b/inventory/group_vars/haproxy/haproxy.yml @@ -345,5 +345,5 @@ haproxy_default_services: haproxy_backend_options: - httpchk HEAD / haproxy_backend_httpcheck_options: - - expect status 405 + - expect rstatus 200|405 haproxy_service_enabled: "{{ (groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0) or (ceph_rgws | length > 0) }}"