Revert "storage: fix private templates are not copied to new image store (#9206)" (#9839)

This reverts commit e06f80e899127abe45c10ff2d38420a770ceb076.
This commit is contained in:
Wei Zhou 2024-11-13 14:31:31 +01:00 committed by GitHub
parent 03bdf11846
commit adbf370909
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -532,6 +532,11 @@ public class TemplateServiceImpl implements TemplateService {
s_logger.info("Skip downloading template " + tmplt.getUniqueName() + " since no url is specified.");
continue;
}
// if this is private template, skip sync to a new image store
if (isSkipTemplateStoreDownload(tmplt, zoneId)) {
s_logger.info("Skip sync downloading private template " + tmplt.getUniqueName() + " to a new image store");
continue;
}
// if this is a region store, and there is already an DOWNLOADED entry there without install_path information, which
// means that this is a duplicate entry from migration of previous NFS to staging.