From c8333b95788599ca3909e1e4ae431abfafa48ec6 Mon Sep 17 00:00:00 2001 From: Chandan Date: Fri, 27 Nov 2026 16:17:42 +0530 Subject: [PATCH] [cyborg] Load mdev before inserting pci-sim CI fails in the "Load fake PCI SRIOV module" task with: ``` insmod: ERROR: could not insert module pci-sim/fake_pci_sriov.ko: Unknown symbol in module ``` In sosreport-compute-0, the file sos_commands/kernel/dmesg_-T (lines 796-799) records the unresolved symbols at the same time as the CI failure: ``` [Thu Nov 26 17:37:37 2026] fake_pci_sriov: Unknown symbol mdev_unregister_driver (err -2) [Thu Nov 26 17:37:37 2026] fake_pci_sriov: Unknown symbol mdev_register_driver (err -2) [Thu Nov 26 17:37:37 2026] fake_pci_sriov: Unknown symbol mdev_register_parent (err -2) [Thu Nov 26 17:37:37 2026] fake_pci_sriov: Unknown symbol mdev_unregister_parent (err -2) ``` The report's boot/config-6.12.0-284.el10.x86_64 contains CONFIG_VFIO_MDEV=m. Its sos_commands/kernel/lsmod lists the VFIO modules but no mdev module. Loadng both (vfio and mdev )dependency modules in a single modprobe loop before inserting the simulator, fixes the issue. Assisted-By: OpenAI Codex GPT-6.1-sol Signed-off-by: Chandan Kumar --- .../pre_deploy_hook.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/nova-operator-cyborg-tempest-multinode/pre_deploy_hook.yml b/ci/nova-operator-cyborg-tempest-multinode/pre_deploy_hook.yml index 5b78adf50..f412db0e0 100644 --- a/ci/nova-operator-cyborg-tempest-multinode/pre_deploy_hook.yml +++ b/ci/nova-operator-cyborg-tempest-multinode/pre_deploy_hook.yml @@ -134,11 +134,14 @@ cd /var/tmp/cyborg make -C pci-sim modules - - name: Load vfio-pci module + - name: Load PCI simulator dependency modules become: true ansible.builtin.modprobe: - name: vfio-pci + name: "{{ '{{ item }}' }}" state: present + loop: + - vfio-pci + - mdev - name: Enable unsafe VFIO interrupts at runtime become: true