Skip to content

Commit 4034aad

Browse files
Harikrishna PatnalaKishan Kavala
authored andcommitted
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 ae23144 Commented the exception. .
1 parent 1c6b146 commit 4034aad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ private void updateSystemVmTemplates(Connection conn) {
729729
pstmt.close();
730730
} else {
731731
if (hypervisorsListInUse.contains(hypervisorAndTemplateName.getKey())){
732-
// throw new CloudRuntimeException("4.2.0 " + hypervisorAndTemplateName.getKey() + " SystemVm template not found. Cannot upgrade system Vms");
732+
throw new CloudRuntimeException("4.2.0 " + hypervisorAndTemplateName.getKey() + " SystemVm template not found. Cannot upgrade system Vms");
733733
} else {
734734
s_logger.warn("4.2.0 " + hypervisorAndTemplateName.getKey() + " SystemVm template not found. " + hypervisorAndTemplateName.getKey() + " hypervisor is not used, so not failing upgrade");
735735
// Update the latest template URLs for corresponding hypervisor

0 commit comments

Comments
 (0)