Skip to content

CherryPicked: [cnv-4.22] net, tests, hot-plug: Avoid redundant VMI interface lookup - #5955

Open
cnv-tests-github-webhook-dollierp[bot] wants to merge 1 commit into
cnv-4.22from
CherryPicked-avoid_redundant_iface_lookup-Zfctz
Open

CherryPicked: [cnv-4.22] net, tests, hot-plug: Avoid redundant VMI interface lookup#5955
cnv-tests-github-webhook-dollierp[bot] wants to merge 1 commit into
cnv-4.22from
CherryPicked-avoid_redundant_iface_lookup-Zfctz

net, tests, hot-plug: Avoid redundant VMI interface lookup (#5578)

1879780
Select commit
Loading
Failed to load commit list.
cnv-tests-github-webhook-dollierp / build-container succeeded Aug 10, 2026 in 0s

Build container

Details

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 5844k  100 5844k    0     0  10.8M      0 --:--:-- --:--:-- --:--:-- 10.8M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100   928  100   928    0     0   2442      0 --:--:-- --:--:-- --:--:--  2442
Downloading cpython-3.14.7-linux-x86_64-gnu (download) (34.3MiB)
 Downloaded cpython-3.14.7-linux-x86_64-gnu (download)
Using CPython 3.14.7
Creating virtual environment at: .venv
Resolved 173 packages in 1ms
   Building openshift-virtualization-tests-4-22 @ file:///openshift-virtualization-tests
Downloading pynacl (1.3MiB)
Downloading cryptography (4.5MiB)
Downloading pyvmomi (1.9MiB)
Downloading openstacksdk (1.8MiB)
Downloading sqlalchemy (3.1MiB)
Downloading kubernetes (1.9MiB)
Downloading ruff (10.8MiB)
Downloading pydantic-core (2.0MiB)
Downloading jedi (4.7MiB)
Downloading beartype (1.3MiB)
Downloading pygments (1.2MiB)
Downloading netaddr (2.2MiB)
   Building python-utility-scripts==2.0.6
   Building pyhelper-utils==2.0.2
   Building openshift-python-wrapper-data-collector==2.0.15
   Building pytest-dependency==0.6.1
   Building python-simple-logger==2.0.19
   Building openshift-python-utilities==6.0.16
   Building timeout-sampler==1.0.22
 Downloaded pynacl
 Downloaded pygments
 Downloaded beartype
 Downloaded pydantic-core
 Downloaded netaddr
 Downloaded sqlalchemy
 Downloaded ruff
 Downloaded kubernetes
 Downloaded cryptography
   Building openshift-python-wrapper==4.22.0
 Downloaded openstacksdk
 Downloaded jedi
 Downloaded pyvmomi
      Built python-simple-logger==2.0.19
      Built openshift-python-wrapper==4.22.0
      Built python-utility-scripts==2.0.6
      Built timeout-sampler==1.0.22
      Built pyhelper-utils==2.0.2
      Built openshift-python-utilities==6.0.16
      Built openshift-python-wrapper-data-collector==2.0.15
      Built openshift-virtualization-tests-4-22 @ file:///openshift-virtualization-tests
      Built pytest-dependency==0.6.1
Prepared 163 packages in 1m 28s
Installed 163 packages in 59.94s
 + annotated-types==0.7.0
 + anyio==4.13.0
 + ast-comments==1.3.0
 + asttokens==3.0.1
 + attrs==26.1.0
 + authlib==1.7.2
 + bcrypt==5.0.0
 + beartype==0.22.9
 + beautifulsoup4==4.14.3
 + bitmath==2.0.1
 + bs4==0.0.2
 + cachetools==7.1.1
 + certifi==2026.4.22
 + cffi==2.0.0
 + charset-normalizer==3.4.7
 + click==8.3.3
 + cloup==3.0.9
 + colorlog==6.10.1
 + cryptography==48.0.0
 + cyclopts==4.11.2
 + dacite==1.9.2
 + decorator==5.2.1
 + deepdiff==9.0.0
 + defusedxml==0.7.1
 + deprecation==2.1.0
 + dictdiffer==0.9.0
 + diskcache==5.6.3
 + dnspython==2.8.0
 + docker==7.1.0
 + docstring-parser==0.18.0
 + docutils==0.22.4
 + dogpile-cache==1.5.0
 + durationpy==0.10
 + email-validator==2.3.0
 + exceptiongroup==1.3.1
 + executing==2.2.1
 + fastmcp==2.13.3
 + greenlet==3.5.0
 + h11==0.16.0
 + httpcore==1.0.9
 + httpx==0.28.1
 + httpx-sse==0.4.3
 + idna==3.14
 + importlib-metadata==9.0.0
 + importlib-resources==7.1.0
 + iniconfig==2.3.0
 + invoke==3.0.3
 + ipdb==0.13.13
 + ipython==9.13.0
 + ipython-pygments-lexers==1.1.1
 + iso8601==2.1.0
 + jedi==0.20.0
 + jinja2==3.1.6
 + jira==3.10.5
 + jmespath==1.1.0
 + joserfc==1.6.5
 + jsonpatch==1.33
 + jsonpointer==3.1.1
 + jsons==1.6.3
 + jsonschema==4.26.0
 + jsonschema-path==0.4.6
 + jsonschema-specifications==2025.9.1
 + keystoneauth1==5.13.1
 + kubernetes==35.0.0
 + markdown-it-py==4.2.0
 + markupsafe==3.0.3
 + marshmallow==4.3.0
 + matplotlib-inline==0.2.2
 + mcp==1.22.0
 + mdurl==0.1.2
 + netaddr==1.3.0
 + oauthlib==3.3.1
 + openapi-pydantic==0.5.1
 + openshift-python-utilities==6.0.16
 + openshift-python-wrapper==4.22.0
 + openshift-python-wrapper-data-collector==2.0.15
 + openshift-virtualization-tests-4-22==4.22 (from file:///openshift-virtualization-tests)
 + openstacksdk==4.12.0
 + orderly-set==5.5.0
 + os-service-types==1.8.2
 + packaging==26.2
 + paramiko==4.0.0
 + parso==0.8.7
 + pathable==0.5.0
 + pathvalidate==3.3.1
 + pbr==7.0.3
 + pexpect==4.9.0
 + platformdirs==4.9.6
 + pluggy==1.6.0
 + podman==5.8.0
 + prompt-toolkit==3.0.52
 + psutil==7.2.2
 + ptyprocess==0.7.0
 + pure-eval==0.2.3
 + py-cpuinfo==9.0.0
 + py-key-value-aio==0.3.0
 + py-key-value-shared==0.3.0
 + pycparser==3.0
 + pydantic==2.13.4
 + pydantic-core==2.46.4
 + pydantic-settings==2.14.1
 + pygments==2.20.0
 + pyhelper-utils==2.0.2
 + pyjwt==2.12.1
 + pylero==0.2.0
 + pynacl==1.6.2
 + pyperclip==1.11.0
 + pytest==9.0.3
 + pytest-benchmark==5.2.3
 + pytest-dependency==0.6.1
 + pytest-html==4.2.0
 + pytest-jira==0.3.24
 + pytest-metadata==3.1.1
 + pytest-mock==3.15.1
 + pytest-order==1.4.0
 + pytest-progress==1.4.0
 + pytest-repeat==0.9.4
 + pytest-testconfig==0.2.0
 + python-benedict==0.37.0
 + python-dateutil==2.9.0.post0
 + python-dotenv==1.2.2
 + python-multipart==0.0.28
 + python-rrmngmnt==0.2.2
 + python-simple-logger==2.0.19
 + python-slugify==8.0.4
 + python-utility-scripts==2.0.6
 + pyvmomi==9.0.0.0
 + pyyaml==6.0.3
 + referencing==0.37.0
 + requests==2.33.1
 + requests-oauthlib==2.0.0
 + requests-toolbelt==1.0.0
 + retry2==0.9.5
 + rich==14.3.4
 + rich-rst==1.3.2
 + rpds-py==0.30.0
 + ruff==0.15.12
 + semver==3.0.4
 + setuptools==82.0.1
 + sh==2.2.2
 + shortuuid==1.0.13
 + six==1.17.0
 + soupsieve==2.8.3
 + sqlalchemy==2.0.49
 + sse-starlette==3.4.2
 + stack-data==0.6.3
 + starlette==1.0.0
 + stevedore==5.7.0
 + suds==1.2.0
 + tenacity==9.1.4
 + text-unidecode==1.3
 + timeout-sampler==1.0.22
 + traitlets==5.15.0
 + typing-extensions==4.15.0
 + typing-inspection==0.4.2
 + typish==1.9.3
 + urllib3==2.7.0
 + uvicorn==0.46.0
 + wcwidth==0.7.0
 + websocket-client==1.9.0
 + websockets==16.0
 + xmltodict==1.0.4
 + zipp==3.23.1
Resolved 173 packages in 2ms


[1/2] STEP 1/5: FROM quay.io/fedora/fedora:41 AS builder
[1/2] STEP 2/5: ENV LANG=C.UTF-8
--> Using cache 11763aa28667bd86b675e5c5d5e06b2997da4a1e7c446d147cd7259afbf43759
--> 11763aa28667
[1/2] STEP 3/5: ENV CNV_TESTS_CONTAINER=Yes
--> Using cache ebf7bbeb9e84cb387356a884f9f266b7e84ced9aa4e7a4d3af7b3a6fb5448bb4
--> ebf7bbeb9e84
[1/2] STEP 4/5: RUN dnf update -y   && dnf -y install   systemd-container   python3-devel   gcc   sshpass   libcurl-devel   libxslt-devel   libxml2-devel   which   && dnf clean all && rm -rf /var/cache/dnf   && rm -rf /var/lib/dnf   && truncate -s0 /var/log/*.log
--> Using cache 5f472310be28e3f4a68c2124c14f504b8d87d75a7ba1a05759c852c6e1eeb684
--> 5f472310be28
[1/2] STEP 5/5: COPY / /openshift-virtualization-tests/
--> d228e709ff6f
[2/2] STEP 1/21: FROM quay.io/fedora/fedora:41 AS runner
[2/2] STEP 2/21: ARG TEST_DIR=/openshift-virtualization-tests
--> Using cache 6d4f7cad111755bdb0f76825d1aa3b36d34cd1061cc26c7df6dfa2e055c4ff1d
--> 6d4f7cad1117
[2/2] STEP 3/21: ARG OPENSHIFT_PYTHON_WRAPPER_COMMIT=''
--> Using cache 159780c398150546153e23b4e768b29487e4780a19a89717663935f0c5323f65
--> 159780c39815
[2/2] STEP 4/21: ARG OPENSHIFT_PYTHON_UTILITIES_COMMIT=''
--> Using cache e7763de03d340b8110162c377e41f08e2505da75fbd5d2a325a256406ddc14b8
--> e7763de03d34
[2/2] STEP 5/21: ARG TIMEOUT_SAMPLER_COMMIT=''
--> Using cache ca0721d8bcd5bead3a0880638c6519490a1e5cbcebdea59e08274be0eb34c6ec
--> ca0721d8bcd5
[2/2] STEP 6/21: ARG PYHELPER_UTILS_COMMIT=''
--> Using cache 310bc5a89184932b46556d5a7c0f385970c62456c5a3080233a35aa9dede1799
--> 310bc5a89184
[2/2] STEP 7/21: ENV LANG=C.UTF-8
--> Using cache b3e2d3a7e710f56861ae618cb2751a1e4b51f1b8b651a2bb13ffeefde51aabbb
--> b3e2d3a7e710
[2/2] STEP 8/21: ENV CNV_TESTS_CONTAINER=Yes
--> Using cache 6d83856a0a8947349f0499473390e7a9b1ea0e5fb592838d9c8af0fbeb02745d
--> 6d83856a0a89
[2/2] STEP 9/21: ENV UV_PYTHON=python3.14
--> Using cache 3195fd44aca3fa29784b55abba15cdab546ab766cad5d08c9e83539d9bc8e883
--> 3195fd44aca3
[2/2] STEP 10/21: ENV UV_NO_SYNC=1
--> Using cache b497ebc822fc87f4593e5de739809ec8f9fd0ed5c214a0dca15c4cd82d92eabf
--> b497ebc822fc
[2/2] STEP 11/21: WORKDIR ${TEST_DIR}
--> Using cache a856aa0f14c28469285bebec86b5193bd345ade56f7eb7837c5f662b3096f67a
--> a856aa0f14c2
[2/2] STEP 12/21: ENV UV_CACHE_DIR=${TEST_DIR}/.cache
--> Using cache 7891de5cfe96ae593e90a1365ed71f29a3d371d7e8097ee5ac38740462e615ff
--> 7891de5cfe96
[2/2] STEP 13/21: ENV HOME=${TEST_DIR}
--> Using cache 6d84d18db798da0fb8fc53cb7dcb43a6bedc66567482f1dceedddb0aff563649
--> 6d84d18db798
[2/2] STEP 14/21: RUN dnf update -y   && dnf install -y procps-ng python3 bind-utils jq fwknop parallel wget clang cargo rsync openssl openssl-devel git unzip  && dnf clean all   && rm -rf /var/cache/dnf   && rm -rf /var/lib/dnf   && truncate -s0 /var/log/*.log
--> Using cache fadb6207dcef88434fcc40ed1658735af432efd4f6b3eb3b7b4c6ff04a146684
--> fadb6207dcef
[2/2] STEP 15/21: COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/bin/
--> Using cache 41e95dc4a4f7e374e5d0fcc7db3f59d2126d568e24d34dcd7915605b5671cea0
--> 41e95dc4a4f7
[2/2] STEP 16/21: COPY --from=builder /usr/bin/which /usr/bin/which
--> Using cache ad8dc2fed766c7232aa916628e96d80a78b29e58c7ecb6af4e1fcfec3c0f1f16
--> ad8dc2fed766
[2/2] STEP 17/21: COPY --from=builder /usr/bin/sshpass /usr/bin/sshpass
--> Using cache 04edc6d67d0a80825a69d15a2987d043416dc0d67676c39e3dd3ee16a4259efe
--> 04edc6d67d0a
[2/2] STEP 18/21: COPY --from=builder ${TEST_DIR}/ ${TEST_DIR}/
--> 7954fe10d926
[2/2] STEP 19/21: RUN curl -fsSL https://bws.bitwarden.com/install | sh   && mkdir -p ${TEST_DIR}/.config/bws/state
Downloading bws from: https://github.com/bitwarden/sdk-sm/releases/download/bws-v2.1.0/bws-x86_64-unknown-linux-gnu-2.1.0.zip
Downloading checksum file from: https://github.com/bitwarden/sdk-sm/releases/download/bws-v2.1.0/bws-sha256-checksums-2.1.0.txt
Checksum validation successful.
Installing bws...
Archive:  /tmp/tmp.d9mEKSX3M8/bws.zip
  inflating: /tmp/tmp.d9mEKSX3M8/bws  
Attempting to install bws with sudo. Please enter your password if prompted.
sudo is available and we have the necessary permissions.
Installing bws to /usr/local/bin...
bws installed to /usr/local/bin/bws
--> c8509d156fbd
[2/2] STEP 20/21: RUN uv sync --locked   && uv export --no-hashes   && if [[ -n "${OPENSHIFT_PYTHON_WRAPPER_COMMIT}" ]]; then uv pip install git+https://github.com/RedHatQE/openshift-python-wrapper.git@$OPENSHIFT_PYTHON_WRAPPER_COMMIT; fi   && if [[ -n "${OPENSHIFT_PYTHON_UTILITIES_COMMIT}" ]]; then uv pip install git+https://github.com/RedHatQE/openshift-python-utilities.git@$OPENSHIFT_PYTHON_UTILITIES_COMMIT; fi   && if [[ -n "${TIMEOUT_SAMPLER_COMMIT}" ]]; then uv pip install git+https://github.com/RedHatQE/timeout-sampler.git@$TIMEOUT_SAMPLER_COMMIT; fi   && if [[ -n "${PYHELPER_UTILS_COMMIT}" ]]; then uv pip install git+https://github.com/RedHatQE/pyhelper-utils.git@$PYHELPER_UTILS_COMMIT; fi   && rm -rf ${TEST_DIR}/.cache   && rm -rf ${TEST_DIR}/artifacts   && find ${TEST_DIR}/ -type d -name "__pycache__" -print0 | xargs -0 rm -rfv
# This file was autogenerated by uv via the following command:
#    uv export --no-hashes
-e .
annotated-types==0.7.0
    # via pydantic
anyio==4.13.0
    # via
    #   httpx
    #   mcp
    #   sse-starlette
    #   starlette
ast-comments==1.3.0
    # via python-utility-scripts
asttokens==3.0.1
    # via stack-data
attrs==26.1.0
    # via
    #   cyclopts
    #   jsonschema
    #   referencing
authlib==1.7.2
    # via fastmcp
bcrypt==5.0.0
    # via
    #   openshift-virtualization-tests-4-22
    #   paramiko
beartype==0.22.9
    # via
    #   py-key-value-aio
    #   py-key-value-shared
beautifulsoup4==4.14.3
    # via
    #   bs4
    #   openshift-python-utilities
bitmath==2.0.1
    # via openshift-virtualization-tests-4-22
bs4==0.0.2
    # via openshift-virtualization-tests-4-22
cachetools==7.1.1
    # via
    #   openshift-virtualization-tests-4-22
    #   py-key-value-aio
certifi==2026.4.22
    # via
    #   httpcore
    #   httpx
    #   kubernetes
    #   requests
cffi==2.0.0 ; platform_python_implementation != 'PyPy'
    # via
    #   cryptography
    #   pynacl
charset-normalizer==3.4.7
    # via requests
click==8.3.3
    # via
    #   cloup
    #   openshift-virtualization-tests-4-22
    #   pylero
    #   python-utility-scripts
    #   uvicorn
cloup==3.0.9
    # via openshift-python-wrapper
colorama==0.4.6 ; sys_platform == 'win32'
    # via
    #   click
    #   colorlog
    #   ipython
    #   pytest
colorlog==6.10.1
    # via
    #   openshift-python-utilities
    #   openshift-python-wrapper
    #   openshift-virtualization-tests-4-22
    #   python-simple-logger
cryptography==48.0.0
    # via
    #   authlib
    #   joserfc
    #   openstacksdk
    #   paramiko
    #   pyjwt
cyclopts==4.11.2
    # via fastmcp
dacite==1.9.2
    # via openshift-virtualization-tests-4-22
decorator==5.2.1
    # via
    #   dogpile-cache
    #   ipdb
    #   ipython
    #   openstacksdk
    #   retry2
deepdiff==9.0.0
    # via
    #   openshift-python-wrapper
    #   openshift-virtualization-tests-4-22
defusedxml==0.7.1
    # via jira
deprecation==2.1.0
    # via openshift-python-utilities
dictdiffer==0.9.0
    # via openshift-virtualization-tests-4-22
diskcache==5.6.3
    # via py-key-value-aio
dnspython==2.8.0
    # via email-validator
docker==7.1.0
    # via openshift-virtualization-tests-4-22
docstring-parser==0.18.0
    # via cyclopts
docutils==0.22.4
    # via rich-rst
dogpile-cache==1.5.0
    # via openstacksdk
durationpy==0.10
    # via kubernetes
email-validator==2.3.0
    # via pydantic
exceptiongroup==1.3.1
    # via fastmcp
executing==2.2.1
    # via stack-data
fastmcp==2.13.3
    # via openshift-python-wrapper
greenlet==3.5.0 ; platform_machine == 'AMD64' or platform_machine == 'WIN32' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'ppc64le' or platform_machine == 'win32' or platform_machine == 'x86_64'
    # via sqlalchemy
h11==0.16.0
    # via
    #   httpcore
    #   uvicorn
httpcore==1.0.9
    # via httpx
httpx==0.28.1
    # via
    #   fastmcp
    #   mcp
httpx-sse==0.4.3
    # via mcp
idna==3.14
    # via
    #   anyio
    #   email-validator
    #   httpx
    #   requests
importlib-metadata==9.0.0
    # via openshift-virtualization-tests-4-22
importlib-resources==7.1.0
    # via openshift-virtualization-tests-4-22
iniconfig==2.3.0
    # via pytest
invoke==3.0.3
    # via paramiko
ipdb==0.13.13
    # via pyhelper-utils
ipython==9.13.0
    # via ipdb
ipython-pygments-lexers==1.1.1
    # via ipython
iso8601==2.1.0
    # via
    #   keystoneauth1
    #   openstacksdk
jedi==0.20.0
    # via ipython
jinja2==3.1.6
    # via
    #   openshift-python-wrapper
    #   openshift-virtualization-tests-4-22
    #   pytest-html
jira==3.10.5
    # via
    #   openshift-virtualization-tests-4-22
    #   python-utility-scripts
jmespath==1.1.0
    # via openstacksdk
joserfc==1.6.5
    # via authlib
jsonpatch==1.33
    # via openstacksdk
jsonpointer==3.1.1
    # via jsonpatch
jsons==1.6.3
    # via openshift-virtualization-tests-4-22
jsonschema==4.26.0
    # via
    #   mcp
    #   openshift-python-wrapper
jsonschema-path==0.4.6
    # via fastmcp
jsonschema-specifications==2025.9.1
    # via jsonschema
keystoneauth1==5.13.1
    # via openstacksdk
kubernetes==35.0.0
    # via
    #   openshift-python-wrapper
    #   openshift-virtualization-tests-4-22
markdown-it-py==4.2.0
    # via rich
markupsafe==3.0.3
    # via jinja2
marshmallow==4.3.0
    # via pytest-jira
matplotlib-inline==0.2.2
    # via ipython
mcp==1.22.0
    # via fastmcp
mdurl==0.1.2
    # via markdown-it-py
netaddr==1.3.0
    # via
    #   openshift-virtualization-tests-4-22
    #   python-rrmngmnt
oauthlib==3.3.1
    # via requests-oauthlib
openapi-pydantic==0.5.1
    # via fastmcp
openshift-python-utilities==6.0.16
    # via openshift-virtualization-tests-4-22
openshift-python-wrapper==4.22.0
    # via
    #   openshift-python-utilities
    #   openshift-python-wrapper-data-collector
    #   openshift-virtualization-tests-4-22
openshift-python-wrapper-data-collector==2.0.15
    # via openshift-python-utilities
openstacksdk==4.12.0
    # via openshift-virtualization-tests-4-22
orderly-set==5.5.0
    # via deepdiff
os-service-types==1.8.2
    # via
    #   keystoneauth1
    #   openstacksdk
packaging==26.2
    # via
    #   deprecation
    #   jira
    #   openshift-python-wrapper
    #   pytest
    #   pytest-jira
paramiko==4.0.0
    # via
    #   pyhelper-utils
    #   python-rrmngmnt
parso==0.8.7
    # via jedi
pathable==0.5.0
    # via jsonschema-path
pathvalidate==3.3.1
    # via py-key-value-aio
pbr==7.0.3
    # via
    #   keystoneauth1
    #   openstacksdk
    #   os-service-types
pexpect==4.9.0
    # via
    #   ipython
    #   openshift-virtualization-tests-4-22
platformdirs==4.9.6
    # via
    #   fastmcp
    #   openstacksdk
pluggy==1.6.0
    # via pytest
podman==5.8.0
    # via openshift-virtualization-tests-4-22
prompt-toolkit==3.0.52
    # via ipython
psutil==7.2.2
    # via
    #   ipython
    #   openstacksdk
ptyprocess==0.7.0
    # via pexpect
--> f21b591798d6
[2/2] STEP 21/21: CMD ["uv", "run", "pytest", "--tc=server_url:${HTTP_IMAGE_SERVER}", "--collect-only"]
[2/2] COMMIT quay.io/openshift-cnv/openshift-virtualization-tests:pr-5955
--> ae0bf7b5055d
Successfully tagged quay.io/openshift-cnv/openshift-virtualization-tests:pr-5955
ae0bf7b5055db275d5c175ef01353c18c4ab51c96dac873be8e3562ee2fbff46