From ab38cf8b072b45e5fd33c1e88544c9a8ae7a951d Mon Sep 17 00:00:00 2001 From: David Ames Date: Mon, 3 Dec 2018 15:15:15 -0800 Subject: [PATCH] Monitor VIPs The interface was failing to setup monitoring for Virtual IPs. If for some reason a VIP failed on an instance corosync would fail to notice it. This change adds the op monitor setting to monitor VIPs. Change-Id: If885340f04b8834fa4604ab742c7facfc6f316ad --- common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.py b/common.py index 6793404..85a9adb 100644 --- a/common.py +++ b/common.py @@ -587,7 +587,9 @@ class VirtualIP(ResourceDescriptor): res_params = '{} nic="{}"'.format(res_params, self.nic) if self.cidr: res_params = '{} cidr_netmask="{}"'.format(res_params, self.cidr) - crm.primitive(vip_key, res_type, params=res_params) + # Monitor the VIP + _op_monitor = 'monitor depth="0" timeout="20s" interval="10s"' + crm.primitive(vip_key, res_type, params=res_params, op=_op_monitor) class DNSEntry(ResourceDescriptor):