CLOUDSTACK-7760 Data disk size is not considering for primary storage resource limit check

This commit is contained in:
Bharat Kumar 2014-10-17 11:24:40 +05:30 committed by Kishan Kavala
parent 0e7f1ea9b8
commit 310bb255ac
1 changed files with 1 additions and 0 deletions

View File

@ -2682,6 +2682,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
throw new InvalidParameterValueException("VM Creation failed. Volume size: " + diskSize + "GB is out of allowed range. Max: " + customDiskOfferingMaxSize
+ " Min:" + customDiskOfferingMinSize);
}
size=size+diskSize*(1024*1024*1024);
}
size += _diskOfferingDao.findById(diskOfferingId).getDiskSize();
}