mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug CS-15859: put a check on volume limit
Author: Abhinandan Prateek <aprateek@apache.org> Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
parent
d968193c80
commit
0a2b6436dd
@ -3367,6 +3367,9 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
||||
//VV 2: check if account/domain is with in resource limits to create a new vm
|
||||
_resourceLimitMgr.checkResourceLimit(newAccount, ResourceType.user_vm);
|
||||
|
||||
//VV 3: check if volumes are with in resource limits
|
||||
_resourceLimitMgr.checkResourceLimit(newAccount, ResourceType.volume, _volsDao.findByInstance(cmd.getVmId()).size());
|
||||
|
||||
// VV 4: Check if new owner can use the vm template
|
||||
VirtualMachineTemplate template = _templateDao.findById(vm.getTemplateId());
|
||||
if (!template.isPublicTemplate()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user