mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7760 Data disk size is not considering for primary storage resource limit check
This commit is contained in:
parent
0e7f1ea9b8
commit
310bb255ac
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue