mirror of https://github.com/apache/cloudstack.git
engine/schema: fix new systemvm template is not registered during upgrade if hypervisor is not KVM (#12952)
* engine/schema: fix new systemvm template is not registered during upgrade if hypervisor is not KVM
This commit is contained in:
parent
e2497cfc4d
commit
6f1aa96b4c
|
|
@ -315,11 +315,11 @@ public class SystemVmTemplateRegistration {
|
|||
public static final List<Pair<Hypervisor.HypervisorType, CPU.CPUArch>> hypervisorList = Arrays.asList(
|
||||
new Pair<>(Hypervisor.HypervisorType.KVM, CPU.CPUArch.amd64),
|
||||
new Pair<>(Hypervisor.HypervisorType.KVM, CPU.CPUArch.arm64),
|
||||
new Pair<>(Hypervisor.HypervisorType.VMware, null),
|
||||
new Pair<>(Hypervisor.HypervisorType.XenServer, null),
|
||||
new Pair<>(Hypervisor.HypervisorType.Hyperv, null),
|
||||
new Pair<>(Hypervisor.HypervisorType.LXC, null),
|
||||
new Pair<>(Hypervisor.HypervisorType.Ovm3, null)
|
||||
new Pair<>(Hypervisor.HypervisorType.VMware, CPU.CPUArch.amd64),
|
||||
new Pair<>(Hypervisor.HypervisorType.XenServer, CPU.CPUArch.amd64),
|
||||
new Pair<>(Hypervisor.HypervisorType.Hyperv, CPU.CPUArch.amd64),
|
||||
new Pair<>(Hypervisor.HypervisorType.LXC, CPU.CPUArch.amd64),
|
||||
new Pair<>(Hypervisor.HypervisorType.Ovm3, CPU.CPUArch.amd64)
|
||||
);
|
||||
|
||||
public static final Map<String, MetadataTemplateDetails> NewTemplateMap = new HashMap<>();
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ public class SystemVmTemplateRegistrationTest {
|
|||
templateDetails =
|
||||
SystemVmTemplateRegistration.NewTemplateMap.get("vmware");
|
||||
assertNotNull(templateDetails);
|
||||
assertNull(templateDetails.getArch());
|
||||
assertEquals(CPU.CPUArch.amd64, templateDetails.getArch());
|
||||
assertEquals(Hypervisor.HypervisorType.VMware, templateDetails.getHypervisorType());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue