mirror of https://github.com/apache/cloudstack.git
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:
parent
75041b9c55
commit
92eb84c3e0
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue