From bbe2bf1a6ef6728132a92bb3b586795f068a403d Mon Sep 17 00:00:00 2001 From: Rakesh Date: Tue, 18 Feb 2020 09:33:30 +0100 Subject: [PATCH] server: ignore site to site vpn status check on internallbvm (#3864) When the state of the site to site vpn changes, the check is done on all the virtual routers including the internal load balancing vm as well. It is not needed to check the state for internal load balancing vm --- .../network/router/VirtualNetworkApplianceManagerImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java b/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java index 643ccbbf8a4..43069cbc140 100644 --- a/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java +++ b/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java @@ -840,6 +840,10 @@ Configurable, StateListener routers) { for (final DomainRouterVO router : routers) { + if (router.getRole() == Role.INTERNAL_LB_VM) { + continue; + } + final List conns = _s2sVpnMgr.getConnectionsForRouter(router); if (conns == null || conns.isEmpty()) { continue;