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 ea99ff1c86
commit 991d783e03
1 changed files with 1 additions and 0 deletions

View File

@ -2685,6 +2685,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();
}