Repository: cloudstack Updated Branches: refs/heads/4.4 a7f1d002a -> 8b9166ae0
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 64153a43711420224655bfbe248b4b87474a1f23) Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8b9166ae Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8b9166ae Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8b9166ae Branch: refs/heads/4.4 Commit: 8b9166ae0bf437f35bf51dfb8dcfda3e4835a8ee Parents: a7f1d00 Author: Anshul Gangwar <[email protected]> Authored: Fri Jun 20 14:32:05 2014 +0530 Committer: Daan Hoogland <[email protected]> Committed: Wed Jul 30 13:21:10 2014 +0200 ---------------------------------------------------------------------- .../orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8b9166ae/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java ---------------------------------------------------------------------- diff --git a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java index c239b93..6edcf63 100755 --- a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -3300,7 +3300,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac this.name = name; this.state = state; this.vm = vm; - this.hostUuid = host; + hostUuid = host; } public AgentVmInfo(String name, VMInstanceVO vm, State state) {
