Stop installing qemu-system on debian variants

qemu-system on debian derivative OS is a meta-package which installs
qemu-system-* for all architecures understood by qemu.

This is different from redhat type OS where the qemu-kvm package
installed with dnf only installs the qemu-system-* binary matching
the host architecture.

This gives two problems, first there is inconsistency in openstack-ansible
deployments between redhat and debian OS. Second, there is a potentially
unexpected emulation of architectures when launching VM on a cloud
with a mix of compute architectures when a full set of qemu-system-*
binaries is available on a compute node. The compute node becomes a
candidate for scheduling any of the supported architectures and a
very specific configuration is needed both from the operator and end
user to ensure that VM are run on a native architecture or emulated as
required.

This patch changes the installation so that redhat and debian compute nodes
only have the native qemu-system binary installed.

A new feature should be introduced to openstack-ansible in the future
to explicitly control installation of non-native qemu-system-* binaries
and write the config options for controlling emulation.

Change-Id: I1c876c7968efb7f24880f1a6e96ba6b7264ddc94
This commit is contained in:
Jonathan Rosser 2023-03-16 09:33:41 +00:00
parent c0fa21ca47
commit a5808248cb
1 changed files with 0 additions and 1 deletions

View File

@ -78,7 +78,6 @@ nova_compute_kvm_distro_packages:
- qemu-utils
- qemu-user
- qemu-block-extra
- qemu-system
- "{{ (ansible_facts['architecture'] == 'x86_64') | ternary('qemu-system-x86', 'qemu-system-arm') }}"
- qemu-system-misc