Only install libvirt-python and python-lxml via pip
These are required by the ansible net_virt module, and also virtualbmc. As such, they will be upgraded when virtualbmc is installed. Pip 10 will not allow this, if are already installed by the system package manager. Let's only ever install them via pip as that's the version we want in the end anyway. Change-Id: Ia209f22170905a5acd23eeb82cbdec9a537bf80b
This commit is contained in:
parent
03215b251f
commit
50c7edb9d8
|
@ -11,8 +11,6 @@ The following packages are required and ensured to be present:
|
|||
- qemu-utils
|
||||
- qemu-kvm
|
||||
- sgabios
|
||||
- python-libvirt
|
||||
- python-lxml
|
||||
|
||||
|
||||
Warning
|
||||
|
|
|
@ -21,8 +21,6 @@ required_packages:
|
|||
- libvirt-daemon-driver-secret
|
||||
- libvirt-daemon-driver-storage
|
||||
- libvirt-daemon-kvm
|
||||
- libvirt-python
|
||||
- python-lxml
|
||||
- pkgconfig
|
||||
- libvirt-devel
|
||||
test_vm_emulator: "/bin/qemu-system-x86_64"
|
||||
|
|
|
@ -7,7 +7,5 @@ required_packages:
|
|||
- qemu-kvm
|
||||
- qemu-system-x86
|
||||
- sgabios
|
||||
- python-libvirt
|
||||
- python-lxml
|
||||
- pkg-config
|
||||
- libvirt-dev
|
||||
|
|
|
@ -9,8 +9,6 @@ required_packages:
|
|||
- libvirt
|
||||
- libvirt-client
|
||||
- libvirt-daemon
|
||||
- libvirt-python
|
||||
- python-lxml
|
||||
- pkgconfig
|
||||
- libvirt-devel
|
||||
- libselinux-python
|
||||
|
|
|
@ -11,7 +11,5 @@ required_packages:
|
|||
- libvirt
|
||||
- libvirt-client
|
||||
- libvirt-daemon
|
||||
- libvirt-python
|
||||
- python-lxml
|
||||
- pkgconfig
|
||||
- libvirt-devel
|
||||
|
|
|
@ -9,7 +9,5 @@ required_packages:
|
|||
- libvirt
|
||||
- libvirt-client
|
||||
- libvirt-daemon
|
||||
- libvirt-python
|
||||
- python-lxml
|
||||
- pkg-config
|
||||
- libvirt-devel
|
||||
|
|
|
@ -15,6 +15,15 @@
|
|||
# Setup libvirt - ensure network and storage pool are defined and active,
|
||||
# prepare dir for vm logs
|
||||
---
|
||||
- name: install libvirt-python and lxml
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
extra_args: "-c {{ upper_constraints_file }}"
|
||||
virtualenv: "{{ enable_venv | bool | ternary(bifrost_venv_dir, omit) }}"
|
||||
with_items:
|
||||
- libvirt-python
|
||||
- lxml
|
||||
|
||||
- name: "Restart libvirt service"
|
||||
service: name="{{libvirt_service_name}}" state=restarted
|
||||
|
||||
|
|
Loading…
Reference in New Issue