Skip to content

test: wrap vfio-pci runCommandOnConfigDaemon calls in Eventually (CNF-24222)#1237

Open
sshnaidm wants to merge 1 commit into
openshift:mainfrom
sshnaidm:ai/cnf-24222
Open

test: wrap vfio-pci runCommandOnConfigDaemon calls in Eventually (CNF-24222)#1237
sshnaidm wants to merge 1 commit into
openshift:mainfrom
sshnaidm:ai/cnf-24222

Conversation

@sshnaidm

@sshnaidm sshnaidm commented Jun 10, 2026

Copy link
Copy Markdown

Problem

In the vfio-pci node policy test, after creating a SriovNetworkNodePolicy with vfio-pci driver, the single worker node reboots/reconfigures its hardware. The test then calls runCommandOnConfigDaemon to validate PF info on the host, but because the node just rebooted, the API server to kubelet/pod connection has not fully recovered, resulting in:

error dialing backend: EOF (HTTP 500)

This is a race condition (same pattern as CNF-24178) where the test attempts to exec into the config daemon pod before the apiserver-to-kubelet connections are re-established after the SRIOV-induced node disruption.

Fix

Wrap both runCommandOnConfigDaemon calls in the vfio-pci test in Eventually blocks with a 2-minute timeout and 5-second retry interval. This allows the test to retry on transient error dialing backend: EOF errors rather than failing immediately.

The pattern matches the existing fix in test_sriov_operator.go:1530-1538 which already uses this approach for similar post-reboot checks.

Related

…-24222)

After creating a vfio-pci SriovNetworkNodePolicy, the single worker node
reboots/reconfigures its hardware, causing a transient EOF error when
the API server tries to exec into the sriov-network-config-daemon pod
via the kubelet (error dialing backend: EOF, HTTP 500).

Wrap both runCommandOnConfigDaemon calls in the vfio-pci policy test in
Eventually blocks with a 2-minute timeout and 5-second retry interval so
the test can retry on transient connection failures after the node reboot,
rather than failing immediately.

This is the same race condition pattern as fixed in CNF-24178.
@openshift-ci openshift-ci Bot requested review from SchSeba and fedepaol June 10, 2026 09:16
@openshift-ci

openshift-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sshnaidm
Once this PR has been reviewed and has the lgtm label, please assign schseba 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

@openshift-ci

openshift-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@sshnaidm: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant