From c7671f3cdd4cb1b52ff44b44288cb843098bccde Mon Sep 17 00:00:00 2001 From: Wilder Rodrigues Date: Thu, 15 Oct 2015 18:31:03 +0200 Subject: [PATCH] CLOUDSTACK-8952 - Restart dnsmasq everytime the configure.py runs --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py index 75bc0e3a6c2..02e7bd74834 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py @@ -48,10 +48,8 @@ class CsDhcp(CsDataBag): self.configure_server() - if self.conf.is_changed() or self.cloud.is_changed(): - CsHelper.service("dnsmasq", "restart") - elif self.cloud.is_changed(): - CsHelper.hup_dnsmasq("dnsmasq", "dnsmasq") + # We restart DNSMASQ every time the configure.py is called in order to avoid lease problems. + CsHelper.service("dnsmasq", "restart") self.conf.commit() self.cloud.commit()