Merge "Remove vfio-pci.conf module load file" into stable/victoria

This commit is contained in:
Zuul 2020-12-24 20:22:58 +00:00 committed by Gerrit Code Review
commit 75d3d8d21f
1 changed files with 23 additions and 1 deletions

View File

@ -158,6 +158,28 @@ outputs:
- get_attr: [NeutronOvsAgent, role_data, deploy_steps_tasks]
- get_attr: [OpenvswitchDpdk, role_data, deploy_steps_tasks]
upgrade_tasks:
get_attr: [NeutronOvsAgent, role_data, upgrade_tasks]
list_concat:
- get_attr: [NeutronOvsAgent, role_data, upgrade_tasks]
-
- name: upgrade prepare for leapp to vfio-pci.conf
tags:
- never
- system_upgrade
- system_upgrade_prepare
when:
- step|int == 3
- upgrade_leapp_enabled
block:
# With an existing BZ #1898664 on dracut does not create ramfs with vfio_iommu_type1
# module, because which loading vfio-pci during the initramfs fails to load this
# module. Because of this dpdk ports are added in ERROR state. It requires a
# restart ovs to bring to normal state after ffu is complete. As a workaround,
# the module-load file vfio-pci.conf can be removed before upgrade, which will
# ensure that vfio-pci is not loaded during initramfs and it will be loaded
# when driverctl configures the vfio-pci driver to the interface.
- name: delete the vfio-pci.conf file before upgrade
file:
state: absent
path: /etc/modules-load.d/vfio-pci.conf
update_tasks:
get_attr: [NeutronOvsAgent, role_data, update_tasks]