Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@booxter
Copy link
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
7 checks passed
@mergify mergify bot removed the one-approval PR has one approval from a maintainer label Mar 6, 2025
@ktdreyer
Copy link
Contributor

ktdreyer commented Mar 6, 2025

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

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.

4 participants