-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Skip attach operation for OS versions that no longer support attach #10254
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
base: main
Are you sure you want to change the base?
Conversation
From inspecting RHEL 9.x and 10.x hosts, I believe that RHEL 9.x:
RHEL 10.0:
I don't have easy access to Fedora hosts for testing, so I'm basing the Fedora version in this PR on what I can see from package lists for Fedora mirrors. Fedora 40 mirrors show |
This comment was marked as outdated.
This comment was marked as outdated.
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 @dvanderveer for the PR!
I have concerns about the changes recently added here about the unregistration; see my notes here and in #10260.
Regarding the changes for auto_attach
: the general idea is OK, there are few things to improve (I left notes).
Thanks!
Hi @dvanderveer, I noticed your changes, I haven't forgot about you :) The version check for Please give me some days that I want to think about the testing situation for this a bit more, and see what I can come up with. |
SUMMARY
Skip the attach operation for OS versions where the
subscription-manager attach
sub-command has been removed.Fixes #10253.
ISSUE TYPE
COMPONENT NAME
redhat_subscription
ADDITIONAL INFORMATION
Before the change, the module would fail with the error seen in #10253 when registering an RHEL 10.0 host with
auto_attach
enabled. With the change, registration succeeds on RHEL 10 withauto_attach
enabled. Also confirmed that registration of an RHEL 9.x host still works as before. Post-registration, confirmed thatsubscription-manager identity
showed org ID and thatyum update
worked correctly on both RHEL 9.x and 10.0 test hosts.