Install libvirt-python from source instead of a wheel

Apparently the binary installation no longer works.

Change-Id: I4ab7cf8432ccce0c3286b7ac696acfb3d4e64655
This commit is contained in:
Dmitry Tantsur 2021-07-09 14:16:18 +02:00
parent a14d96a2de
commit 79c8418ead
2 changed files with 15 additions and 2 deletions

View File

@ -22,16 +22,24 @@
- default_boot_mode != 'uefi'
- test_vm_secure_boot | bool
- name: install libvirt-python, gunicorn and lxml
- name: install gunicorn and lxml
include_role:
name: bifrost-pip-install
vars:
package: "{{ item }}"
loop:
- libvirt-python
- gunicorn
- lxml
- name: install libvirt-python
include_role:
name: bifrost-pip-install
vars:
package: libvirt-python
# FIXME(dtantsur): libvirt-python 7.5.0 cannot be used when installed from
# a wheel, force a source installation
extra_args: --no-binary libvirt-python
- name: configure libvirt log filters for qemu
blockinfile:
path: /etc/libvirt/libvirtd.conf

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Works around the ``libvirt module is not importable`` error by installing
libvirt-python from source install of a wheel.