mirror of https://github.com/apache/cloudstack.git
checkout UserVmManagerImpl.java and VirtualMachineManagerImpl.java from master branch
This commit is contained in:
parent
8b8a0d3975
commit
02e5cb3e93
|
|
@ -3380,9 +3380,6 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
|
|||
boolean status;
|
||||
State vmState = vm.getState();
|
||||
|
||||
// Collect vm disk statistics from host before stopping Vm
|
||||
collectVmDiskStatistics(vm);
|
||||
|
||||
try {
|
||||
VirtualMachineEntity vmEntity = _orchSrvc.getVirtualMachine(vm.getUuid());
|
||||
status = vmEntity.destroy(new Long(userId).toString());
|
||||
|
|
|
|||
|
|
@ -1328,7 +1328,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
throw new CloudRuntimeException("Unable to migrate vm: " + e.toString());
|
||||
}
|
||||
|
||||
VirtualMachineProfile<T> profile = new VirtualMachineProfileImpl<T>(vm);
|
||||
VirtualMachineProfile<VMInstanceVO> profile = new VirtualMachineProfileImpl<VMInstanceVO>(vm);
|
||||
boolean migrationResult = false;
|
||||
try {
|
||||
migrationResult = this.volumeMgr.storageMigration(profile, destPool);
|
||||
|
|
|
|||
Loading…
Reference in New Issue