From 6520d0bb2c689ed7caa5df581be6a966133cdce0 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sun, 31 Mar 2019 13:48:18 -0400 Subject: [PATCH] glance: stop using healthcheck endpoint The healthcheck endpoint currently is not configured by us, which means that it's pretty much a no-op right now. It also causes issues with IPv6 addresses, where it fails to parse the IP correctly and raises an exception. ValueError: invalid literal for int() with base 10: 'xxxx:x:x::xx]:9292' This patch goes back to monitoring the root of the endpoint as that probably delivers just as accurate of information in the current state that we're in. Change-Id: I859795307b88508dc1b894b39526f4289b33c1af --- inventory/group_vars/haproxy/haproxy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inventory/group_vars/haproxy/haproxy.yml b/inventory/group_vars/haproxy/haproxy.yml index b70405c5e2..dae32fa213 100644 --- a/inventory/group_vars/haproxy/haproxy.yml +++ b/inventory/group_vars/haproxy/haproxy.yml @@ -78,7 +78,7 @@ haproxy_default_services: haproxy_port: 9292 haproxy_balance_type: http haproxy_backend_options: - - "httpchk GET /healthcheck HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck" + - "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck" haproxy_service_enabled: "{{ groups['glance_api'] is defined and groups['glance_api'] | length > 0 }}" - service: haproxy_service_name: glance_registry @@ -87,7 +87,7 @@ haproxy_default_services: haproxy_port: 9191 haproxy_balance_type: http haproxy_backend_options: - - "httpchk GET /healthcheck HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck" + - "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck" haproxy_whitelist_networks: "{{ haproxy_glance_registry_whitelist_networks }}" haproxy_service_enabled: >- {{ groups['glance_registry'] is defined and