Bug 2221021

Summary: Nmstate is not waiting long for SR-IOV VF to show up when changing ethtool settings
Product: Red Hat Enterprise Linux 9 Reporter: Gris Ge <fge>
Component: nmstateAssignee: Gris Ge <fge>
Status: VERIFIED --- QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.2CC: ferferna, jiji, jishi, network-qe, sfaye, till
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 9.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nmstate-2.2.13-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2221050 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2221050    

Description Gris Ge 2023-07-07 04:53:00 UTC
Description of problem:

When applying ethtool settings for a SR-IOV enabled NIC, nmstate is not waiting long
enough for VF to show up

Version-Release number of selected component (if applicable):
nmstate-2.2.12-2.el9

How reproducible:
100%

Steps to Reproduce:
1. Enable SRIOV on a NIC with 10+ VFs
2. Get the current ethtool setting and apply it via nmstate
3.

Actual results:

Verification error indicating VF of SR-IOV not shows up.

Expected results:

No failure.

Additional info:

Comment 1 Gris Ge 2023-07-07 04:55:22 UTC
Requesting RHEL 9.2 zstream per ksundara from openstack.

The scratch build has been tested in the same environment which reproduced the problem.
A 100 retry passed without failure.

patch sent to upstream: https://github.com/nmstate/nmstate/pull/2381