mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix some inaccurate logging message in template sync.
This commit is contained in:
parent
ff735b4d81
commit
c13a691429
@ -282,7 +282,7 @@ public class TemplateServiceImpl implements TemplateService {
|
|||||||
TemplateProp tmpltInfo = templateInfos.remove(uniqueName);
|
TemplateProp tmpltInfo = templateInfos.remove(uniqueName);
|
||||||
toBeDownloaded.remove(tmplt);
|
toBeDownloaded.remove(tmplt);
|
||||||
if (tmpltStore != null) {
|
if (tmpltStore != null) {
|
||||||
s_logger.info("Template Sync found " + uniqueName + " already in the template host table");
|
s_logger.info("Template Sync found " + uniqueName + " already in the image store");
|
||||||
if (tmpltStore.getDownloadState() != Status.DOWNLOADED) {
|
if (tmpltStore.getDownloadState() != Status.DOWNLOADED) {
|
||||||
tmpltStore.setErrorString("");
|
tmpltStore.setErrorString("");
|
||||||
}
|
}
|
||||||
@ -335,10 +335,10 @@ public class TemplateServiceImpl implements TemplateService {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (tmpltStore != null && tmpltStore.getDownloadState() != Status.DOWNLOADED) {
|
if (tmpltStore != null && tmpltStore.getDownloadState() != Status.DOWNLOADED) {
|
||||||
s_logger.info("Template Sync did not find " + uniqueName + " ready on server " + storeId + ", will request download to start/resume shortly");
|
s_logger.info("Template Sync did not find " + uniqueName + " ready on image store " + storeId + ", will request download to start/resume shortly");
|
||||||
|
|
||||||
} else if (tmpltStore == null) {
|
} else if (tmpltStore == null) {
|
||||||
s_logger.info("Template Sync did not find " + uniqueName + " on the server " + storeId + ", will request download shortly");
|
s_logger.info("Template Sync did not find " + uniqueName + " on the image store " + storeId + ", will request download shortly");
|
||||||
TemplateDataStoreVO templtStore = new TemplateDataStoreVO(storeId, tmplt.getId(), new Date(), 0, Status.NOT_DOWNLOADED, null, null, null, null, tmplt.getUrl());
|
TemplateDataStoreVO templtStore = new TemplateDataStoreVO(storeId, tmplt.getId(), new Date(), 0, Status.NOT_DOWNLOADED, null, null, null, null, tmplt.getUrl());
|
||||||
_vmTemplateStoreDao.persist(templtStore);
|
_vmTemplateStoreDao.persist(templtStore);
|
||||||
associateTemplateToZone(tmplt.getId(), zoneId);
|
associateTemplateToZone(tmplt.getId(), zoneId);
|
||||||
@ -380,7 +380,6 @@ public class TemplateServiceImpl implements TemplateService {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
s_logger.debug("Template " + tmplt.getName() + " needs to be downloaded to " + store.getName());
|
s_logger.debug("Template " + tmplt.getName() + " needs to be downloaded to " + store.getName());
|
||||||
//TODO: we should pass a callback here
|
|
||||||
TemplateInfo tmpl = _templateFactory.getTemplate(tmplt.getId(), DataStoreRole.Image);
|
TemplateInfo tmpl = _templateFactory.getTemplate(tmplt.getId(), DataStoreRole.Image);
|
||||||
createTemplateAsync(tmpl, store, null);
|
createTemplateAsync(tmpl, store, null);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user