Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

fix(infra): reset nvidia-driver module before enabling -open one#3222

Merged
mergify[bot] merged 1 commit intoinstructlab:mainfrom
booxter:reset-module
Mar 6, 2025
Merged

fix(infra): reset nvidia-driver module before enabling -open one#3222
mergify[bot] merged 1 commit intoinstructlab:mainfrom
booxter:reset-module

Conversation

@booxter
Copy link
Copy Markdown
Contributor

@booxter booxter commented Mar 6, 2025

Till recently, we used "null" profile. With the switch to 570, we
switched to -open. When switching a dnf module, dnf complains as
follows:

The operation would result in switching of module 'nvidia-driver' stream
'XXX' to stream '570-open'

Error: It is not possible to switch enabled streams of a module unless
explicitly enabled via configuration option module_stream_switch.

It is recommended to rather remove all installed content from the
module, and reset the module using 'dnf module reset <module_name>'
command. After you reset the module, you can install the other stream.

To avoid this issue on upgrade, always reset the module when running the
script.

Signed-off-by: Ihar Hrachyshka [email protected]

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the
    conventional commits.
  • Changelog updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Functional tests have been added, if necessary.
  • E2E Workflow tests have been added, if necessary.

Till recently, we used "null" profile. With the switch to 570, we
switched to -open. When switching a dnf module, dnf complains as
follows:

```
The operation would result in switching of module 'nvidia-driver' stream
'XXX' to stream '570-open'

Error: It is not possible to switch enabled streams of a module unless
explicitly enabled via configuration option module_stream_switch.

It is recommended to rather remove all installed content from the
module, and reset the module using 'dnf module reset <module_name>'
command. After you reset the module, you can install the other stream.
```

To avoid this issue on upgrade, always reset the module when running the
script.

Signed-off-by: Ihar Hrachyshka <[email protected]>
@mergify mergify Bot added the one-approval PR has one approval from a maintainer label Mar 6, 2025
@courtneypacheco courtneypacheco removed the request for review from ktdreyer March 6, 2025 19:16
@mergify mergify Bot merged commit f23e80f into instructlab:main Mar 6, 2025
@mergify mergify Bot removed the one-approval PR has one approval from a maintainer label Mar 6, 2025
@ktdreyer
Copy link
Copy Markdown
Contributor

ktdreyer commented Mar 6, 2025

I tested this on a basic CentOS Stream image and it works.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants