Skip to content

[cyborg] Load mdev before inserting pci-sim - #1324

Draft
raukadah wants to merge 1 commit into
openstack-k8s-operators:mainfrom
raukadah:fix/cyborg-pci-sim-mdev
Draft

raukadah wants to merge 1 commit into
openstack-k8s-operators:mainfrom
raukadah:fix/cyborg-pci-sim-mdev

Conversation

@raukadah

Copy link
Copy Markdown
Contributor

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

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 <raukadah@gmail.com>
@openshift-ci

openshift-ci Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci

openshift-ci Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: raukadah
Once this PR has been reviewed and has the lgtm label, please assign gibizer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant