add a check that sub-man release is not set or set to a major version#1067
Merged
stejskalleos merged 1 commit intomasterfrom Jan 6, 2026
Merged
add a check that sub-man release is not set or set to a major version#1067stejskalleos merged 1 commit intomasterfrom
stejskalleos merged 1 commit intomasterfrom
Conversation
2d403c9 to
cd25d8c
Compare
32e1f92 to
5f03685
Compare
stejskalleos
approved these changes
Jan 6, 2026
stejskalleos
left a comment
There was a problem hiding this comment.
🍏 LGTM
Code is covered by tests & packit verification passed as well:
foreman-maintain health list | grep release
[check-subscription-manager-release] Check if subscription-manager release is not set to a minor versionRelease not set
subscription-manager release --show
Release not set
foreman-maintain health check --label check-subscription-manager-release
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check if subscription-manager release is not set to a minor version: [OK]
--------------------------------------------------------------------------------Release set to 9
subscription-manager release --set 9
Release set to: 9
foreman-maintain health check --label check-subscription-manager-release
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check if subscription-manager release is not set to a minor version: [OK]
--------------------------------------------------------------------------------Release set to 9.6
subscription-manager release --set 9.6
Release set to: 9.6
foreman-maintain health check --label check-subscription-manager-release
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check if subscription-manager release is not set to a minor version: [FAIL]
Your system is configured to use RHEL 9.6, but Satellite is only supported on the latest RHEL. Please unset the release in subscription-manager by calling `subscription-manager release --unset`.
--------------------------------------------------------------------------------
Scenario [ForemanMaintain::Scenario::FilteredScenario] failed.
The following steps ended up in failing state:
[check-subscription-manager-release]
Resolve the failed steps and rerun the command.
If the situation persists and, you are unclear what to do next,
contact Red Hat Technical Support.
In case the failures are false positives, use
--whitelist="check-subscription-manager-release"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.