From 6711b12054e2da999bf7f606344f6bb9af2768b7 Mon Sep 17 00:00:00 2001 From: Gabriel Cocenza Date: Fri, 17 Feb 2023 10:21:23 -0300 Subject: [PATCH] Add support for HAProxy L7 checks This change add several configuration options to enable HTTP checks to the HAProxy configuration, instead of the default TCP connection checks (which continue to be the default). Closes-Bug: #1880610 Change-Id: Ibadd5648cdf69eef42b05e29772dcae9897d668b --- src/lib/charm/openstack/designate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/charm/openstack/designate.py b/src/lib/charm/openstack/designate.py index 061ea01..285bfdf 100644 --- a/src/lib/charm/openstack/designate.py +++ b/src/lib/charm/openstack/designate.py @@ -321,6 +321,11 @@ class DesignateCharm(ch_plugins.PolicydOverridePlugin, } } + healthcheck = { + 'option': 'httpchk GET /healthcheck', + 'http-check': 'expect status 200', + } + required_relations = ['shared-db', 'amqp', 'identity-service', 'coordinator-memcached']