Skip to content

Commit a80c286

Browse files
committed
Merge pull request #2023 from Accelerite/CLOUDSTACK-9808
BUG-ID: CLOUDSTACK-9808 Added system Vm upgrade path for LXC and OVM` > mysql> select id,unique_name,name,type,url,updated,created from vm_template where type='SYSTEM'; > +----+-------------+-------------------------------+--------+-----------------------------------------------------------------------------------------------+---------+---------------------+ > | id | unique_name | name | type | url | updated | created | > +----+-------------+-------------------------------+--------+-----------------------------------------------------------------------------------------------+---------+---------------------+ > | 1 | routing-1 | SystemVM Template (XenServer) | SYSTEM | https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-xen.vhd.bz2 | NULL | 2017-03-30 15:53:00 | > | 3 | routing-3 | SystemVM Template (KVM) | SYSTEM | https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-kvm.qcow2.bz2 | NULL | 2017-03-30 15:53:00 | > | 8 | routing-8 | SystemVM Template (vSphere) | SYSTEM | https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-vmware.ova | NULL | 2017-03-30 15:53:00 | > | 9 | routing-9 | SystemVM Template (HyperV) | SYSTEM | https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-hyperv.vhd.zip | NULL | 2017-03-30 15:53:00 | > | 10 | routing-10 | SystemVM Template (LXC) | SYSTEM | https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-kvm.qcow2.bz2 | NULL | 2017-03-30 15:54:13 | > | 12 | routing-12 | SystemVM Template (Ovm3) | SYSTEM | https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-ovm.raw.bz2 | NULL | 2017-03-30 15:55:58 | > +----+-------------+-------------------------------+--------+-----------------------------------------------------------------------------------------------+---------+---------------------+ > 6 rows in set (0.00 sec) ` * pr/2023: BUG-ID: CLOUDSTACK-9808 Added system Vm upgrade path for LXC and OVM Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
2 parents d7c5994 + df79969 commit a80c286

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

engine/schema/src/com/cloud/upgrade/dao/Upgrade4920to41000.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ private void updateSystemVmTemplates(final Connection conn) {
8484
case Hyperv:
8585
hypervisorsListInUse.add(Hypervisor.HypervisorType.Hyperv);
8686
break;
87+
case LXC:
88+
hypervisorsListInUse.add(Hypervisor.HypervisorType.LXC);
89+
break;
90+
case Ovm3:
91+
hypervisorsListInUse.add(Hypervisor.HypervisorType.Ovm3);
92+
break;
8793
default: // no action on cases Any, BareMetal, None, Ovm,
8894
// Parralels, Simulator and VirtualBox:
8995
break;
@@ -100,6 +106,8 @@ private void updateSystemVmTemplates(final Connection conn) {
100106
put(Hypervisor.HypervisorType.VMware, "systemvm-vmware-4.10");
101107
put(Hypervisor.HypervisorType.KVM, "systemvm-kvm-4.10");
102108
put(Hypervisor.HypervisorType.Hyperv, "systemvm-hyperv-4.10");
109+
put(Hypervisor.HypervisorType.LXC, "systemvm-lxc-4.10");
110+
put(Hypervisor.HypervisorType.Ovm3, "systemvm-ovm3-4.10");
103111
}
104112
};
105113

@@ -109,6 +117,8 @@ private void updateSystemVmTemplates(final Connection conn) {
109117
put(Hypervisor.HypervisorType.VMware, "router.template.vmware");
110118
put(Hypervisor.HypervisorType.KVM, "router.template.kvm");
111119
put(Hypervisor.HypervisorType.Hyperv, "router.template.hyperv");
120+
put(Hypervisor.HypervisorType.LXC, "router.template.lxc");
121+
put(Hypervisor.HypervisorType.Ovm3, "router.template.ovm3");
112122
}
113123
};
114124

@@ -118,6 +128,8 @@ private void updateSystemVmTemplates(final Connection conn) {
118128
put(Hypervisor.HypervisorType.VMware, "https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-vmware.ova");
119129
put(Hypervisor.HypervisorType.KVM, "https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-kvm.qcow2.bz2");
120130
put(Hypervisor.HypervisorType.Hyperv, "https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-hyperv.vhd.zip");
131+
put(Hypervisor.HypervisorType.LXC, "https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-kvm.qcow2.bz2");
132+
put(Hypervisor.HypervisorType.Ovm3, "https://download.cloudstack.org/systemvm/4.10/systemvm64template-master-4.10.0-ovm.raw.bz2");
121133
}
122134
};
123135

@@ -127,6 +139,8 @@ private void updateSystemVmTemplates(final Connection conn) {
127139
put(Hypervisor.HypervisorType.VMware, "970bfb070a80bd74820881d8149643c1");
128140
put(Hypervisor.HypervisorType.KVM, "bc2eac46f16a2ece6c19d4b89db41de3");
129141
put(Hypervisor.HypervisorType.Hyperv, "0adb35bd9f92e80d3fc63fcdd9bb55e5");
142+
put(Hypervisor.HypervisorType.LXC, "bc2eac46f16a2ece6c19d4b89db41de3");
143+
put(Hypervisor.HypervisorType.Ovm3, "94a41f0a5361933813bb34a51df56f56");
130144
}
131145
};
132146

0 commit comments

Comments
 (0)