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.
This commit is contained in:
prachi 2011-04-13 18:06:42 -07:00
parent 3ad19c633f
commit 1a3483ac4f
1 changed files with 1 additions and 0 deletions

View File

@ -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);