Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/healthcheck/microshift_optional_workloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ var optionalWorkloadPaths = map[string]optionalWorkloads{
Namespace: "redhat-ods-applications",
Workloads: NamespaceWorkloads{Deployments: []string{"kserve-controller-manager"}},
},
"/usr/lib/microshift/manifests.d/070-microshift-sriov": {
Namespace: "sriov-network-operator",
Workloads: NamespaceWorkloads{Deployments: []string{"sriov-network-operator"}},
},
}

// fillOptionalMicroShiftWorkloads assembles list of optional MicroShift workloads
Expand Down
3 changes: 2 additions & 1 deletion test/bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export VM_DISK_BASEDIR="${IMAGEDIR}/${VM_POOL_BASENAME}"
export VM_ISOLATED_NETWORK="isolated"

# Libvirt network for Multus tests
export VM_MULTUS_NETWORK="multus"
export VM_MULTUS_NETWORK="multus"

# Libvirt network for IPv6 tests
export VM_IPV6_NETWORK="ipv6"
Expand Down Expand Up @@ -387,6 +387,7 @@ MICROSHIFT_Y1_OPTIONAL_RPMS_LIST=(
MICROSHIFT_OPTIONAL_RPMS_LIST=(
"${MICROSHIFT_Y1_OPTIONAL_RPMS_LIST[@]}"
microshift-cert-manager
microshift-sriov
)
MICROSHIFT_Y1_X86_64_RPMS_LIST=(
microshift-ai-model-serving
Expand Down
7 changes: 6 additions & 1 deletion test/bin/scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,12 @@ launch_vm() {
for n in ${network}; do
# For simplicity we assume that network filters are named the same as the networks
# If there is a filter with the same name as the network, attach it to the NIC
vm_network_args+="--network network=${n},model=virtio"
if [ "${n}" = "sriov" ] ; then
vm_network_args+="--network network=default,model=igb"
else
vm_network_args+="--network network=${n},model=virtio"
fi

if sudo virsh nwfilter-list | awk '{print $2}' | grep -qx "${n}"; then
vm_network_args+=",filterref=${n}"
fi
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/scenarios-bootc/presubmits/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WEB_SERVER_URL="http://${VM_BRIDGE_IP}:${WEB_SERVER_PORT}"
scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel96-bootc-source-optionals
# Two nics - one for macvlan, another for ipvlan (they cannot enslave the same interface)
launch_vm --boot_blueprint rhel96-bootc --network "${VM_MULTUS_NETWORK},${VM_MULTUS_NETWORK}"
launch_vm --boot_blueprint rhel96-bootc --network "sriov,${VM_MULTUS_NETWORK},${VM_MULTUS_NETWORK}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use a variable for sriov network name?


# Open the firewall ports. Other scenarios get this behavior by
# embedding settings in the blueprint, but there is no blueprint
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions test/suites/optional/sriov.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*** Settings ***
Documentation MicroShift SR-IOV tests

Resource ../../resources/microshift-process.resource

Suite Setup Setup Suite With Namespace
Suite Teardown Teardown Suite With Namespace


*** Test Cases ***
Verify SR-IOV Pods Start Correctly
[Documentation] Waits for pods to enter a running state

Wait Until Keyword Succeeds 2min 10s
... All Pods Should Be Running sriov-network-operator