Skip to content

Commit 4012a01

Browse files
weizhouapachedhslove
authored andcommitted
storage: fix private templates are not copied to new image store (apache#9206)
``` 2024-06-10T12:24:50,711 INFO [o.a.c.s.i.TemplateServiceImpl] (qtp776484396-20:[ctx-eb090c22, ctx-5fa5579c]) (logid:7a783000) Template Sync did not find 211-2-d536fb03-5f89-3e77-8dea-323315bcbfab on image store 3, may request download based on available hypervisor types ... 2024-06-10T12:24:51,043 INFO [o.a.c.s.i.TemplateServiceImpl] (qtp776484396-20:[ctx-eb090c22, ctx-5fa5579c]) (logid:7a783000) Skip sync downloading private template 211-2-d536fb03-5f89-3e77-8dea-323315bcbfab to a new image store ```
1 parent 09c7da4 commit 4012a01

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateServiceImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,6 @@ public void handleTemplateSync(DataStore store) {
533533
logger.info("Skip downloading template " + tmplt.getUniqueName() + " since no url is specified.");
534534
continue;
535535
}
536-
// if this is private template, skip sync to a new image store
537-
if (isSkipTemplateStoreDownload(tmplt, zoneId)) {
538-
logger.info("Skip sync downloading private template " + tmplt.getUniqueName() + " to a new image store");
539-
continue;
540-
}
541536

542537
// if this is a region store, and there is already an DOWNLOADED entry there without install_path information, which
543538
// means that this is a duplicate entry from migration of previous NFS to staging.

0 commit comments

Comments
 (0)