Enable VFIO module on boot for SR-IOV deployments

On SR-IOV capable deployments when rebooting a compute node,
vfio_iommu_type1 will not be loaded which will cause guest
instances with VF/PF fail to start/spawn.

Manually loading the kernel module will allow to spawn guest
instances successfully.

Change-Id: I3ffd1c11a1851e62992a6a63e8abb130db82856f
Closes-Bug: 1838159
(cherry picked from commit 3878bd3e47)
This commit is contained in:
Piotr Kopec 2019-07-28 00:26:09 +02:00
parent a24ff04a8f
commit ac5001004d
2 changed files with 17 additions and 0 deletions

View File

@ -30,6 +30,15 @@
- _KERNEL_ARGS_|default("") != ""
- _KERNEL_ARGS_|default("") not in cmdline.stdout_lines[0]
# Kernel modules loading
- name: Load VFIO kernel module on boot
import_role:
name: tripleo-module-load
vars:
modules:
- name: vfio
when: _KERNEL_ARGS_ is search("iommu")
# Tune-d Configuration
- block:
- name: Check Tune-d Configuration file exists

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Enable VFIO module on boot for SR-IOV deployments.
Before this change on SR-IOV capable deployments
when rebooting a compute node, vfio_iommu_type1 will
not be loaded which will cause guest instances with VF/PF
fail to start/spawn.