Enable Keepalived check script for VIP nodes
Enabled Keepalived for next nodes:
* ctl - Fix already existed, but not enabled check script
for GlusterFS and Haproxy;
* prx - Enable Haproxy/Nginx check pidof script;
* ntw, rgw, dbs - Enable Haproxy check pidof script;
Change-Id: I32414b5b95a2758323201ab90418d871366a6052
Related-bug: PROD-25256
diff --git a/keepalived/cluster/instance/default_keepalived_check.yml b/keepalived/cluster/instance/default_keepalived_check.yml
index e088dd6..9f9afd2 100644
--- a/keepalived/cluster/instance/default_keepalived_check.yml
+++ b/keepalived/cluster/instance/default_keepalived_check.yml
@@ -1,21 +1,18 @@
+# DEPRECATED: for backward compatibility until openstack/control.yml migrate to
+# check_multiple_processes.yml
+#
# This instance is needed for the example case, where on control node the GlusterFS is deployed with keepalived and
# a `remote_agent` from `Stacklight` sends its queries to the control's VIP to gather the GlusterFS data.
# In case of `glusterd` process failure, the VIP should be moved to another node, to prevent `remote_agent` from failing.
# In addition, check for haproxy process too, as on its failure VIP should be also moved to another node.
classes:
-- service.keepalived.support
+- service.keepalived.cluster.single
+- system.keepalived.cluster.vrrp_scripts.check_custom_content
parameters:
_param:
keepalived_vip_vrrp_check_script_content: "pidof glusterd && pidof haproxy"
keepalived:
cluster:
- vrrp_scripts:
- vrrp_check:
- content: ${_param:keepalived_vip_vrrp_check_script_content}
- interval: 10
- rise: 1
- fall: 1
- enabled: true
instance:
VIP:
track_script: vrrp_check