-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastian Sch <[email protected]>
- Loading branch information
Showing
12 changed files
with
438 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: sriov-sriov-k8s-test | ||
on: [pull_request] | ||
|
||
jobs: | ||
run-sriov-tests-on-virtual-k8s-cluster: | ||
name: test | ||
runs-on: [sriov] | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go 1.20 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.x | ||
|
||
- name: run test | ||
run: ./hack/run-e2e-conformance-virtual-cluster.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## E2E conformance test | ||
|
||
It's possible to use QEMU to test the SR-IOV operator on a virtual kubernetes/openshift cluster. | ||
Using the IGB model network driver allow to create virtual functions on the virtual system | ||
|
||
## How to test | ||
|
||
First you will need to enable the `DEV_MODE` via the operator environment variable. | ||
Second step is to add the intel virtual nic to the supported nics configmap. | ||
|
||
``` | ||
Intel_ixgbe_82576: 8086 10c9 10ca | ||
``` | ||
|
||
Another requirement is to load the vfio kernel module with no_iommu configuration. Example systemd: | ||
|
||
``` | ||
[Unit] | ||
Description=vfio no-iommu | ||
Before=kubelet.service crio.service node-valid-hostname.service | ||
[Service] | ||
# Need oneshot to delay kubelet | ||
Type=oneshot | ||
ExecStart=/usr/bin/bash -c "modprobe vfio enable_unsafe_noiommu_mode=1" | ||
StandardOutput=journal+console | ||
StandardError=journal+console | ||
[Install] | ||
WantedBy=network-online.target | ||
``` | ||
|
||
# TBD |
Oops, something went wrong.