-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Inhibit upgrades with non-SCA registration #1333
base: main
Are you sure you want to change the base?
Conversation
Thank you for contributing to the Leapp project!Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable.
Packit will automatically schedule regression tests for this PR's build and latest upstream leapp build.
Note that first time contributors cannot run tests automatically - they need to be started by a reviewer. It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported,
See other labels for particular jobs defined in the Please open ticket in case you experience technical problem with the CI. (RH internal only) Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra. |
4ff1c95
to
aea9f00
Compare
aea9f00
to
cffbe32
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
"Leapp detected that the system is registered to an SKU organization." | ||
" On RHEL 10, Red Hat Subscription Manager cannot be registered to an" | ||
" SKU organization." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm maybe something like:
Leapp detected that the system is registered to an account based on entitlements, and not on Simple Content Access (SCA). Starting from RHEL 10, Red Hat Subscription Manager supports only SCA accounts, and not function with entitlement-based accounts.
" leapp option if you want to provide target repositories by yourself." | ||
), | ||
reporting.RelatedResource("package", "subscription-manager"), | ||
reporting.ExternalLink(url="", title=""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url = https://access.redhat.com/articles/transition_of_subscription_services_to_the_hybrid_cloud_console
title = Transition of Red Hat's subscription services to the Red Hat Hybrid Cloud Console (console.redhat.com)
(shamelessly stolen from the URL)
hint="Register your system with the subscription-manager tool and attach" | ||
" proper SKUs to be able to proceed the upgrade or use the --no-rhsm" | ||
" leapp option if you want to provide target repositories by yourself." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about:
The account on which this system is registered to must be set in SCA mode. Please note that switching the account mode applies to all the systems already registered to it, and to the systems that will be registered in the future. Please consult the linked documentation for more detailed explanations.
Tested, on non-SCA RHEL 9 system:
leapp-inspector output:
|
In RHEL 10, only systems registered with an SCA organization are supported. This patch adds a check and subsequent inhibitor if that's not the case.
NOTE: when leapp is invoked with --no-rhsm, the check nor inhibitor are currently performed.
Jira: RHEL-68309