mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 11647 - OVM - no support for migrate instance
return error if taking snapshot API call happens on Ovm
This commit is contained in:
parent
b3e6ab8d1c
commit
5ee1a2456d
@ -1289,6 +1289,11 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
|
||||
throw new InvalidParameterValueException("VolumeId: " + volumeId + " is for System VM , Creating snapshot against System VM volumes is not supported");
|
||||
}
|
||||
}
|
||||
|
||||
UserVmVO vm = _vmDao.findById(volume.getInstanceId());
|
||||
if (vm.getHypervisorType() == HypervisorType.Ovm) {
|
||||
throw new InvalidParameterValueException("Ovm won't support taking snapshot");
|
||||
}
|
||||
|
||||
StoragePoolVO storagePoolVO = _storagePoolDao.findById(volume.getPoolId());
|
||||
if (storagePoolVO == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user