mirror of https://github.com/apache/cloudstack.git
This ensures that password server runs on the dhcpserver identifier IP which is the not the VRRP virtual (10.1.1.1) IP by default but the actual ip of the interface. When dhcp client discovery is made, the `dhcp-server-identifier` contains the non VIP address that is used by password reset script to query guest VM password. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
1b3046e376
commit
ece79e6913
|
|
@ -245,6 +245,7 @@ class CsRedundant(object):
|
|||
|
||||
interfaces = [interface for interface in self.address.get_interfaces() if interface.needs_vrrp()]
|
||||
for interface in interfaces:
|
||||
CsPasswdSvc(interface.get_ip()).stop()
|
||||
CsPasswdSvc(interface.get_gateway()).stop()
|
||||
|
||||
self.cl.set_fault_state()
|
||||
|
|
@ -281,7 +282,9 @@ class CsRedundant(object):
|
|||
|
||||
interfaces = [interface for interface in self.address.get_interfaces() if interface.needs_vrrp()]
|
||||
for interface in interfaces:
|
||||
CsPasswdSvc(interface.get_ip()).stop()
|
||||
CsPasswdSvc(interface.get_gateway()).stop()
|
||||
|
||||
CsHelper.service("dnsmasq", "stop")
|
||||
|
||||
self.cl.set_master_state(False)
|
||||
|
|
@ -335,8 +338,10 @@ class CsRedundant(object):
|
|||
CsHelper.execute("%s -B" % cmd)
|
||||
CsHelper.service("ipsec", "restart")
|
||||
CsHelper.service("xl2tpd", "restart")
|
||||
|
||||
interfaces = [interface for interface in self.address.get_interfaces() if interface.needs_vrrp()]
|
||||
for interface in interfaces:
|
||||
CsPasswdSvc(interface.get_ip()).restart()
|
||||
CsPasswdSvc(interface.get_gateway()).restart()
|
||||
|
||||
CsHelper.service("dnsmasq", "restart")
|
||||
|
|
|
|||
Loading…
Reference in New Issue