This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new c4922c4 Fixed rolling restart on VPC network (#4272)
c4922c4 is described below
commit c4922c4289f7674c2aed6889ab3de571e2383ac0
Author: Spaceman1984 <[email protected]>
AuthorDate: Tue Aug 25 11:49:51 2020 +0200
Fixed rolling restart on VPC network (#4272)
This PR fixes the problem where restarting a network with cleanup within a
VPC destroys the VR first before creating a new one.
Fixes: #3815
---
.../src/main/java/com/cloud/network/element/VpcVirtualRouterElement.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/server/src/main/java/com/cloud/network/element/VpcVirtualRouterElement.java
b/server/src/main/java/com/cloud/network/element/VpcVirtualRouterElement.java
index 165cb7d..377f18a 100644
---
a/server/src/main/java/com/cloud/network/element/VpcVirtualRouterElement.java
+++
b/server/src/main/java/com/cloud/network/element/VpcVirtualRouterElement.java
@@ -200,6 +200,7 @@ public class VpcVirtualRouterElement extends
VirtualRouterElement implements Vpc
if (network.isRollingRestart()) {
params.put(VirtualMachineProfile.Param.RollingRestart, true);
+ vpc.setRollingRestart(true);
}
final RouterDeploymentDefinition routerDeploymentDefinition =
routerDeploymentDefinitionBuilder.create()