mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3441: [Load Test] High delays between VM being allocated to Pod and network implementation causing delays in VM deployment
This is a regresion caused due to fix for CLOUDSTACK-70. In order to fix network restart scenario, delays got introduced in the user VM deployment scenario. Fixed it by separating out the network restart and new VM deployment scenario such that the latter is not affected due to the fix for CLOUDSTACK-70.
This commit is contained in:
parent
873377c6bd
commit
e3e8bfce16
|
|
@ -1446,7 +1446,8 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
// dest has pod=null, for Basic Zone findOrDeployVRs for all Pods
|
||||
List<DeployDestination> destinations = new ArrayList<DeployDestination>();
|
||||
|
||||
if (dest.getDataCenter().getNetworkType() == NetworkType.Basic) {
|
||||
// for basic zone, if 'dest' has pod set to null then this is network restart scenario otherwise it is a vm deployment scenario
|
||||
if (dest.getDataCenter().getNetworkType() == NetworkType.Basic && dest.getPod() == null) {
|
||||
// Find all pods in the data center with running or starting user vms
|
||||
long dcId = dest.getDataCenter().getId();
|
||||
List<HostPodVO> pods = listByDataCenterIdVMTypeAndStates(dcId, VirtualMachine.Type.User, VirtualMachine.State.Starting, VirtualMachine.State.Running);
|
||||
|
|
|
|||
Loading…
Reference in New Issue