Skip to content

Commit 1a3483a

Browse files
author
prachi
committed
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.
1 parent 3ad19c6 commit 1a3483a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ protected boolean checkPool(ExcludeList avoid, StoragePoolVO pool, DiskProfile d
233233
} else {
234234
VMTemplateHostVO templateHostVO = _templateHostDao.findByHostTemplate(secondaryStorageHost.getId(), template.getId());
235235
if (templateHostVO == null) {
236+
s_logger.debug("Cannot allocate this pool " + pool.getId() + " since no entry found in template_host_ref, hostId: " + secondaryStorageHost.getId() + " and templateId: "+template.getId());
236237
return false;
237238
} else {
238239
s_logger.debug("For template: " + template.getName() + ", using template size multiplier: " + 2);

0 commit comments

Comments
 (0)