CLOUDSTACK-5208: upgrade from 3.0.6 to 4.3 is not throwing any exception if new 
System VM template is not registered with proper name Commit 
ae231444bc885ee5e9a5d4bb3003bef651c849d6 Commented the exception.


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

Branch: refs/heads/master
Commit: 29b90e7a5c226f110a1f48de09a9b9c967c34f96
Parents: 707da55
Author: Kishan Kavala <[email protected]>
Authored: Thu Dec 19 16:17:37 2013 +0530
Committer: Kishan Kavala <[email protected]>
Committed: Thu Dec 19 16:17:37 2013 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/29b90e7a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java 
b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
index a331b13..a933d03 100755
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
@@ -744,7 +744,7 @@ public class Upgrade410to420 implements DbUpgrade {
                         pstmt.close();
                     } else {
                         if 
(hypervisorsListInUse.contains(hypervisorAndTemplateName.getKey())) {
-                            // throw new CloudRuntimeException("4.2.0 " + 
hypervisorAndTemplateName.getKey() + " SystemVm template not found. Cannot 
upgrade system Vms");
+                            throw new CloudRuntimeException("4.2.0 " + 
hypervisorAndTemplateName.getKey() + " SystemVm template not found. Cannot 
upgrade system Vms");
                         } else {
                             s_logger.warn("4.2.0 " + 
hypervisorAndTemplateName.getKey() + " SystemVm template not found. " + 
hypervisorAndTemplateName.getKey() +
                                 " hypervisor is not used, so not failing 
upgrade");

Reply via email to