mirror of https://github.com/apache/cloudstack.git
simulator supports migration
Add simultor to the seemingly strict filter which should happen within the hypervisor resource and not the virtualmachine :/ Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
c78ed39b2f
commit
3d4d350dbe
|
|
@ -3838,7 +3838,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
|
|||
if (!vm.getHypervisorType().equals(HypervisorType.XenServer)
|
||||
&& !vm.getHypervisorType().equals(HypervisorType.VMware)
|
||||
&& !vm.getHypervisorType().equals(HypervisorType.KVM)
|
||||
&& !vm.getHypervisorType().equals(HypervisorType.Ovm)) {
|
||||
&& !vm.getHypervisorType().equals(HypervisorType.Ovm)
|
||||
&& !vm.getHypervisorType().equals(HypervisorType.Simulator)) {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug(vm
|
||||
+ " is not XenServer/VMware/KVM/Ovm, cannot migrate this VM.");
|
||||
|
|
@ -4153,7 +4154,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
|
|||
if (!vm.getHypervisorType().equals(HypervisorType.XenServer) &&
|
||||
!vm.getHypervisorType().equals(HypervisorType.VMware) &&
|
||||
!vm.getHypervisorType().equals(HypervisorType.KVM) &&
|
||||
!vm.getHypervisorType().equals(HypervisorType.Ovm)) {
|
||||
!vm.getHypervisorType().equals(HypervisorType.Ovm) &&
|
||||
!vm.getHypervisorType().equals(HypervisorType.Simulator)) {
|
||||
throw new InvalidParameterValueException("Unsupported hypervisor type for vm migration, we support" +
|
||||
" XenServer/VMware/KVM only");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue