mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-8851 Redundant VR getting started in the same cluster or host even when there are suitable hosts available
This commit is contained in:
parent
2bd61c35b9
commit
7439a9bbec
@ -56,7 +56,7 @@ public class VmWorkStart extends VmWork {
|
||||
|
||||
public DeploymentPlan getPlan() {
|
||||
|
||||
if (podId != null || clusterId != null || hostId != null || poolId != null || physicalNetworkId != null) {
|
||||
if (podId != null || clusterId != null || hostId != null || poolId != null || physicalNetworkId != null || avoids !=null) {
|
||||
// this is ugly, to work with legacy code, we need to re-construct the DeploymentPlan hard-codely
|
||||
// this has to be refactored together with migrating legacy code into the new way
|
||||
ReservationContext context = null;
|
||||
@ -70,6 +70,7 @@ public class VmWorkStart extends VmWork {
|
||||
DeploymentPlan plan = new DataCenterDeployment(
|
||||
dcId, podId, clusterId, hostId, poolId, physicalNetworkId,
|
||||
context);
|
||||
plan.setAvoids(avoids);
|
||||
return plan;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user