Skip to content
Snippets Groups Projects
Commit dff7896d authored by Marcin Juszkiewicz's avatar Marcin Juszkiewicz Committed by Marcin Juszkiewicz
Browse files

nova: set libvirt/cpu_mode on aarch64 to working value

Instance failed to spawn: libvirtError: unsupported configuration: CPU
mode 'host-model' for aarch64 kvm domain on aarch64 host is not
supported by hypervisor.

Change-Id: Iad530457aef24ee8f561a8f7d2c6c6150c55bc42
parent 1a1e5cc5
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,7 @@ nova_tag: "{{ openstack_release }}" ...@@ -173,6 +173,7 @@ nova_tag: "{{ openstack_release }}"
nova_libvirt_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ nova_install_type }}-nova-libvirt" nova_libvirt_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ nova_install_type }}-nova-libvirt"
nova_libvirt_tag: "{{ nova_tag }}" nova_libvirt_tag: "{{ nova_tag }}"
nova_libvirt_image_full: "{{ nova_libvirt_image }}:{{ nova_libvirt_tag }}" nova_libvirt_image_full: "{{ nova_libvirt_image }}:{{ nova_libvirt_tag }}"
nova_libvirt_cpu_mode: "{{ 'host-passthrough' if ansible_architecture == 'aarch64' else '' }}"
nova_ssh_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ nova_install_type }}-nova-ssh" nova_ssh_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ nova_install_type }}-nova-ssh"
nova_ssh_tag: "{{ nova_tag }}" nova_ssh_tag: "{{ nova_tag }}"
......
...@@ -186,6 +186,9 @@ rbd_secret_uuid = {{ rbd_secret_uuid }} ...@@ -186,6 +186,9 @@ rbd_secret_uuid = {{ rbd_secret_uuid }}
{% endif %} {% endif %}
virt_type = {{ nova_compute_virt_type }} virt_type = {{ nova_compute_virt_type }}
{% endif %} {% endif %}
{% if nova_libvirt_cpu_mode %}
cpu_mode = {{ nova_libvirt_cpu_mode }}
{% endif %}
{% if nova_compute_virt_type == "vmware" %} {% if nova_compute_virt_type == "vmware" %}
[vmware] [vmware]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment