From bfd661a6003d785ff0aef6c072bcefb1ab5a3b54 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Date: Fri, 10 Apr 2020 15:23:05 +0200 Subject: [PATCH] CI: tell Nova which CPU to emulate on AArch64 AArch64 does not have a way to get cpu features from libvirt. Change-Id: Ieed404e17e8a9829f38c03f7ee7fdb3caa3919e8 --- tests/templates/nova-compute-overrides.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/templates/nova-compute-overrides.j2 b/tests/templates/nova-compute-overrides.j2 index 4987afca9..1c7c432e8 100644 --- a/tests/templates/nova-compute-overrides.j2 +++ b/tests/templates/nova-compute-overrides.j2 @@ -1,7 +1,12 @@ [libvirt] virt_type=qemu # NOTE(Jeffrey4l): fix the gate in iax-ord nodes for libvirt 2.0. +{% if ansible_architecture == 'aarch64' %} +cpu_mode=custom +cpu_model=max +{% else %} cpu_mode=none +{% endif %} {# TODO(mnasiadka): Remove in Victoria #} {% if scenario == 'ceph-ansible' and is_previous_release %} -- GitLab