Remove vfio-pci.conf module load file

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 is 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.
Closes-Bug: #1905533

Change-Id: I752a764a53e90fcb17e414d4900bb186fa689f45
(cherry picked from commit a487e16c55)
This commit is contained in:
Saravanan KR 2020-11-25 14:34:50 +05:30
parent fe14e30a37
commit 1cda5afd28
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]