cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject git commit: updated refs/heads/master to c4f41f4
Date Tue, 20 Aug 2013 00:37:43 GMT
Updated Branches:
  refs/heads/master 4fd09cb34 -> c4f41f4a5


CLOUDSTACK-4395:[Object_store_refactor] Default template is not
available for use to deploy vm in case of multi zone environment.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c4f41f4a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c4f41f4a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c4f41f4a

Branch: refs/heads/master
Commit: c4f41f4a53d49e9b4ff2053f22dfa263be2d318c
Parents: 4fd09cb
Author: Min Chen <min.chen@citrix.com>
Authored: Mon Aug 19 17:30:08 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Mon Aug 19 17:37:33 2013 -0700

----------------------------------------------------------------------
 .../org/apache/cloudstack/storage/image/TemplateServiceImpl.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c4f41f4a/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
----------------------------------------------------------------------
diff --git a/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
b/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
index b8f8f4f..bdb195d 100644
--- a/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
+++ b/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
@@ -240,6 +240,8 @@ public class TemplateServiceImpl implements TemplateService {
                 TemplateDataStoreVO tmpltHost = _vmTemplateStoreDao
                         .findByStoreTemplate(store.getId(), template.getId());
                 if (tmpltHost == null || tmpltHost.getState() != ObjectInDataStoreStateMachine.State.Ready)
{
+                    associateTemplateToZone(template.getId(), dcId);
+                    s_logger.info("Downloading builtin template " + template.getUniqueName()
+ " to data center: " + dcId);
                     TemplateInfo tmplt = _templateFactory.getTemplate(template.getId(), DataStoreRole.Image);
                     createTemplateAsync(tmplt, store, null);
                 }


Mime
View raw message