cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-6975) Service monitoring starts dnsmasq on backup router when using redundant VRs
Date Thu, 21 Apr 2016 08:36:25 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251562#comment-15251562
] 

Wei Zhou commented on CLOUDSTACK-6975:
--------------------------------------

this can be fixed by 
{code}
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 48533ec..4e0df41 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py
@@ -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.execute2("service dnsmasq restart")
+        if not self.cl.is_redundant() or self.cl.is_master():
+            CsHelper.execute2("service dnsmasq restart")

     def configure_server(self):
         # self.conf.addeq("dhcp-hostsfile=%s" % DHCP_HOSTS)
{code}

> Service monitoring starts dnsmasq on backup router when using redundant VRs
> ---------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6975
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6975
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Virtual Router
>    Affects Versions: 4.3.0
>         Environment: KVM
>            Reporter: Magnus Bengtsson
>
> When using a network offering with redundant routers the default setting of EnableServiceMonitoring
enables monit on the routers.
> "network.router.EnableServiceMonitoring	service monitoring in router enable/disable option,
default true	false"
> This causes monit to run dnsmasq on both the Master and Backup router. When the backup
router assigns dhcp to clients, password and userdata retrieval from that node fails since
the services are not running on the backup router.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message