From ca8a00442c260e0f86079b1cde71cf06291e7fa4 Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Mon, 19 Dec 2016 13:06:02 +0530 Subject: [PATCH] CLOUDSTACK-9683: system.vm.default.hypervisor will pin the hypervisor for VR too with this fix --- .../src/com/cloud/vm/VirtualMachineManagerImpl.java | 3 ++- server/src/com/cloud/network/guru/ControlNetworkGuru.java | 2 +- server/src/com/cloud/network/router/NetworkHelperImpl.java | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java index 2ddf8c2550ca..bea98cb25d43 100644 --- a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -977,6 +977,7 @@ public void orchestrateStart(final String vmUuid, final Map getHypervisors(final RouterDeploymentDefinition routerDeploymentDefinition) throws InsufficientServerCapacityException { final DeployDestination dest = routerDeploymentDefinition.getDest(); List hypervisors = new ArrayList(); - if (dest.getCluster() != null) { if (dest.getCluster().getHypervisorType() == HypervisorType.Ovm) { hypervisors.add(getClusterToStartDomainRouterForOvm(dest.getCluster().getPodId()));