From 7ed4317cefc3d094e4803ef496f83689b2b092d5 Mon Sep 17 00:00:00 2001 From: prachi Date: Wed, 9 Mar 2011 15:50:30 -0800 Subject: [PATCH] Adding log statement in allocator while skipping a storagepool if it crosses the storage.capacity.threshold --- .../cloud/storage/allocator/AbstractStoragePoolAllocator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java b/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java index 6ad2d6bf44d..92c060427d7 100644 --- a/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java +++ b/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java @@ -167,6 +167,9 @@ public abstract class AbstractStoragePoolAllocator extends AdapterBase implement s_logger.debug("Attempting to look for pool " + pool.getId() + " for storage, totalSize: " + pool.getCapacityBytes() + ", usedBytes: " + stats.getByteUsed() + ", usedPct: " + usedPercentage + ", threshold: " + _storageUsedThreshold); } if (usedPercentage >= _storageUsedThreshold) { + if (s_logger.isDebugEnabled()) { + s_logger.debug("Cannot allocate this pool " + pool.getId() + " for storage since its usage percentage: " +usedPercentage + " has crossed the storage.capacity.threshold: " + _storageUsedThreshold + ", skipping this pool"); + } return false; } }