CLOUDSTACK-4528: [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL

Changes:
- listHosts within same cluster for migration of system and router VMs
This commit is contained in:
Prachi Damle 2013-08-28 14:06:07 -07:00
parent 75041b9c55
commit 92eb84c3e0
1 changed files with 7 additions and 4 deletions

View File

@ -1075,10 +1075,13 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
// Check if the vm can be migrated with storage.
boolean canMigrateWithStorage = false;
HypervisorCapabilitiesVO capabilities = _hypervisorCapabilitiesDao.findByHypervisorTypeAndVersion(
srcHost.getHypervisorType(), srcHost.getHypervisorVersion());
if (capabilities != null) {
canMigrateWithStorage = capabilities.isStorageMotionSupported();
if (vm.getType() == VirtualMachine.Type.User) {
HypervisorCapabilitiesVO capabilities = _hypervisorCapabilitiesDao.findByHypervisorTypeAndVersion(
srcHost.getHypervisorType(), srcHost.getHypervisorVersion());
if (capabilities != null) {
canMigrateWithStorage = capabilities.isStorageMotionSupported();
}
}
// Check if the vm is using any disks on local storage.