You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by ustcweizhou <gi...@git.apache.org> on 2016/06/07 08:49:44 UTC

[GitHub] cloudstack pull request #1568: CLOUDSTACK-9385 - Ensure passwd srvr is resta...

Github user ustcweizhou commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1568#discussion_r66031974
  
    --- Diff: systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py ---
    @@ -346,6 +341,25 @@ def set_master(self):
             CsHelper.reconfigure_interfaces(self.cl, interfaces)
             logging.info("Router switched to master mode")
     
    +
    +    def _restart_password_server(self):
    +        '''
    +        CLOUDSTACK-9385
    +        Redundant virtual routers should have the password server running.
    +        '''
    +        if self.config.is_vpc():
    +            vrrp_addresses = [address for address in self.address.get_ips() if address.needs_vrrp()]
    +
    +            for address in vrrp_addresses:
    +                CsPasswdSvc(address.get_gateway()).restart()
    +                CsPasswdSvc(address.get_ip()).restart()
    +        else:
    +            guest_addresses = [address for address in self.address.get_ips() if address.is_guest()]
    +
    +            for address in guest_addresses:
    +            CsPasswdSvc(address.get_ip()).restart()
    --- End diff --
    
    @dsclose indent should be added here. otherwise, the VR will fail to start.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---