CLOUDSTACK-6975: Prevent dnsmasq from starting on backup redundant RvR.

This commit is contained in:
dean.close 2016-05-09 11:34:47 +01:00
parent 4db1c0125a
commit 38b3bdd488
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ class CsDhcp(CsDataBag):
self.cloud.commit()
# We restart DNSMASQ every time the configure.py is called in order to avoid lease problems.
CsHelper.service("dnsmasq", "restart")
if not self.cl.is_redundant() or self.cl.is_master():
CsHelper.service("dnsmasq", "restart")
def configure_server(self):
# self.conf.addeq("dhcp-hostsfile=%s" % DHCP_HOSTS)