Skip to content

Commit 8b9166a

Browse files
anshulgangwarDaanHoogland
authored andcommitted
CLOUDSTACK-6830: Fixed [hyper-v] during VM migration, volumes on zone wide primary
store requires storage migration resulting in failure of VM migration. This also improves the hostsformigration api. Firstly we were trying to list all hosts and then finding suitable storage pools for all volumes and then we were checking whether vm migration requires storage migration to that host. Now the process is updated. We are checking for only those volumes which are not in zone wide primary store. We are verifying by comparing volumes->poolid->clusterid to host clusterid. If it uses local or clusterids are different then verifying whether host has suitable storage pools for the volume of the vm to be migrated too. (cherry picked from commit 64153a4)
1 parent a7f1d00 commit 8b9166a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3300,7 +3300,7 @@ public AgentVmInfo(String name, VMInstanceVO vm, State state, String host) {
33003300
this.name = name;
33013301
this.state = state;
33023302
this.vm = vm;
3303-
this.hostUuid = host;
3303+
hostUuid = host;
33043304
}
33053305

33063306
public AgentVmInfo(String name, VMInstanceVO vm, State state) {

0 commit comments

Comments
 (0)