sureshanaparti commented on a change in pull request #5857:
URL: https://github.com/apache/cloudstack/pull/5857#discussion_r797497720
##########
File path: server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
##########
@@ -856,11 +855,13 @@ public VolumeVO doInTransaction(TransactionStatus status)
{
});
}
+ @Override
public boolean validateVolumeSizeRange(long size) {
+ long maxVolumeSize = VolumeOrchestrationService.MaxVolumeSize.value();
if (size < 0 || (size > 0 && size < (1024 * 1024 * 1024))) {
throw new InvalidParameterValueException("Please specify a size of
at least 1 GB.");
- } else if (size > (_maxVolumeSizeInGb * 1024 * 1024 * 1024)) {
- throw new InvalidParameterValueException("Requested volume size is
" + size + ", but the maximum size allowed is " + _maxVolumeSizeInGb + " GB.");
+ } else if (size > (maxVolumeSize * 1024 * 1024 * 1024)) {
+ throw new InvalidParameterValueException(String.format("Requested
volume size is %d, but the maximum size allowed is %d GB.", size,
maxVolumeSize));
Review comment:
> @sureshanaparti I've made the change to fix this.
> I see you've started a new test run. I don't think this change affects
results. Up to you.
if not further changes, would upgrade the package and verify this log.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]