Skip to content

fix(module): skip unavailable usbip module packages#2371

Merged
danilrwx merged 1 commit into
mainfrom
fix/usb/ngc-usbip
May 20, 2026
Merged

fix(module): skip unavailable usbip module packages#2371
danilrwx merged 1 commit into
mainfrom
fix/usb/ngc-usbip

Conversation

@danilrwx
Copy link
Copy Markdown
Contributor

@danilrwx danilrwx commented May 20, 2026

Description

Update the virtualization-install-usbip-modules NodeGroupConfiguration to handle missing USB/IP kernel module packages more safely.

The script now:

  • checks whether usbip-core, usbip-host, and vhci-hcd modules already exist for the running kernel;
  • tries a kernel-version-specific package first on RHEL-like distributions;
  • falls back to the generic package name when available;
  • logs a warning and exits successfully when no suitable package can be installed.

Why do we need it, and what problem does it solve?

On some RHEL-like distributions, for example RED OS with kernel 6.12.56-1.red80.x86_64, the generic kernel-modules-extra package is not available in enabled repositories. The previous bashible step failed and entered a retry loop, blocking node configuration.

This change prevents the NodeGroupConfiguration from failing endlessly when the package is unavailable, while still installing USB/IP modules where a matching package exists.

What is the expected result?

  1. Enable virtualization DRA USB support on a node where USB/IP modules are already present or can be installed.
  2. Verify that the bashible step completes successfully.
  3. On a node where the package is unavailable, verify that the step logs a warning and does not enter a retry loop.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: module
type: fix
summary: Prevent the USB/IP module installation step from retrying indefinitely when kernel module packages are unavailable.
impact_level: low

Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
@danilrwx danilrwx marked this pull request as ready for review May 20, 2026 10:34
@danilrwx danilrwx requested a review from Isteb4k as a code owner May 20, 2026 10:34
@danilrwx danilrwx modified the milestones: v1.7.2, v1.9.0 May 20, 2026
@danilrwx danilrwx merged commit 622ab3b into main May 20, 2026
31 of 35 checks passed
@danilrwx danilrwx deleted the fix/usb/ngc-usbip branch May 20, 2026 10:47
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.

2 participants