This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch 4.22
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.22 by this push:
new 532852824a9 Add debug logging when storage pool has insufficient IOPS
capacity (#13579)
532852824a9 is described below
commit 532852824a9729ff9f073e3678d9d0bd8afeb059
Author: Nicolas Vazquez <[email protected]>
AuthorDate: Sat Aug 1 22:01:18 2026 -0300
Add debug logging when storage pool has insufficient IOPS capacity (#13579)
Co-authored-by: mprokopchuk <[email protected]>
---
server/src/main/java/com/cloud/storage/StorageManagerImpl.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
b/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
index 2d170049663..0b2aca08e08 100644
--- a/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
@@ -3492,7 +3492,13 @@ public class StorageManagerImpl extends ManagerBase
implements StorageManager, C
long futureIops = currentIops + requestedIops;
boolean hasEnoughIops = futureIops <= pool.getCapacityIops();
String hasCapacity = hasEnoughIops ? "has" : "does not have";
- logger.debug(String.format("Pool [%s] %s enough IOPS to allocate
volumes [%s].", pool, hasCapacity, requestedVolumes));
+ StringBuilder stringBuilder = new StringBuilder();
+ stringBuilder.append(String.format("Pool [%s] %s enough IOPS to
allocate volumes [%s]", pool, hasCapacity, requestedVolumes));
+ if (!hasEnoughIops) {
+ stringBuilder.append(String.format(" - Insufficient un-allocated
IOPS for storage allocation: " +
+ "capacityIops : %d, usedIops : %d, requestedIops : %d",
pool.getCapacityIops(), currentIops, requestedIops));
+ }
+ logger.debug(stringBuilder.toString());
return hasEnoughIops;
}