Bug 11647 - OVM - no support for migrate instance

return error if taking snapshot API call happens on Ovm
This commit is contained in:
frank 2011-10-13 16:19:42 -07:00
parent b3e6ab8d1c
commit 5ee1a2456d

View File

@ -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) {