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
This commit is contained in:
David Ames 2018-12-03 15:15:15 -08:00
parent c7475b06be
commit ab38cf8b07
1 changed files with 3 additions and 1 deletions

View File

@ -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):