This is an automated email from the ASF dual-hosted git repository.

joao pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new adbf3709095 Revert "storage: fix private templates are not copied to 
new image store (#9206)" (#9839)
adbf3709095 is described below

commit adbf37090952fc4a5c1675ef657333807b56c647
Author: Wei Zhou <[email protected]>
AuthorDate: Wed Nov 13 14:31:31 2024 +0100

    Revert "storage: fix private templates are not copied to new image store 
(#9206)" (#9839)
    
    This reverts commit e06f80e899127abe45c10ff2d38420a770ceb076.
---
 .../org/apache/cloudstack/storage/image/TemplateServiceImpl.java     | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
 
b/engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
index c040e1a7ad6..6c4fcab2f17 100644
--- 
a/engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
+++ 
b/engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
@@ -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.

Reply via email to