From 1a3483ac4f65e6ea8aec59f4828d795b3d6fafaf Mon Sep 17 00:00:00 2001 From: prachi Date: Wed, 13 Apr 2011 18:06:42 -0700 Subject: [PATCH] More changes for Bug 9438 - [Cloud Stack Upgrade - 2.1.8 to 2.2.4] Secondary Storage VM could not start after stopping it. Added log statement to indicate that a pool is not chosen because the vm template has no entry in template_host_ref table. --- .../cloud/storage/allocator/AbstractStoragePoolAllocator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java b/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java index 339153fa9b3..c05b03388bc 100644 --- a/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java +++ b/server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java @@ -233,6 +233,7 @@ public abstract class AbstractStoragePoolAllocator extends AdapterBase implement } else { VMTemplateHostVO templateHostVO = _templateHostDao.findByHostTemplate(secondaryStorageHost.getId(), template.getId()); if (templateHostVO == null) { + s_logger.debug("Cannot allocate this pool " + pool.getId() + " since no entry found in template_host_ref, hostId: " + secondaryStorageHost.getId() + " and templateId: "+template.getId()); return false; } else { s_logger.debug("For template: " + template.getName() + ", using template size multiplier: " + 2);