bug 10834: fix step 2. Sending command to pool now only picks hosts that are in UP state

This commit is contained in:
Kelven Yang 2011-07-27 18:11:04 -07:00
parent ffd07621cc
commit 79cb5b7c19

View File

@ -389,7 +389,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
templateStoragePoolRefId = templateStoragePoolRef.getId();
}
List<StoragePoolHostVO> vos = _poolHostDao.listByPoolId(poolId);
List<StoragePoolHostVO> vos = _poolHostDao.listByHostStatus(poolId, com.cloud.host.Status.Up);
templateStoragePoolRef = _tmpltPoolDao.acquireInLockTable(templateStoragePoolRefId, 1200);
if (templateStoragePoolRef == null) {