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 0ef6084d2c
commit 52f4683099
1 changed files with 7 additions and 4 deletions

View File

@ -1090,10 +1090,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.