This makes the storage pool reach the disable threshold before the notification threshold.
metricsResponse.setStorageAllocatedDisableThreshold(poolResponse.getDiskSizeTotal(), poolResponse.getDiskSizeUsed(), poolResponse.getOverProvisionFactor(), storageDisableThreshold);
metricsResponse.setStorageAllocatedDisableThreshold(poolResponse.getDiskSizeTotal(), poolResponse.getDiskSizeAllocated(), poolResponse.getOverProvisionFactor(), storageDisableThreshold);
problem
This makes the storage pool reach the disable threshold before the notification threshold.
In the sources:
Should be:
Reference:
https://github.com/apache/cloudstack/blob/main/plugins/metrics/src/main/java/org/apache/cloudstack/metrics/MetricsServiceImpl.java#L647
versions
CloudStack 4.20.1.0
The steps to reproduce the bug
What to do about it?
No response