-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
redhat_subscription: manually unregister only when registered #6259
redhat_subscription: manually unregister only when registered #6259
Conversation
1f3bc7e
to
f8dd3a9
Compare
When registering using D-Bus and using a version of subscription-manager with an unimplemented 'force' option, then unregister manually the system only if it is registered. 'subscription-manager unregister' errors out when trying to unregister an already unregistered system.
f8dd3a9
to
0b61dd2
Compare
@ptoscano are you waiting for someone to review this, or should I simply merge? |
No, not waiting for other reviewers specifically. Considering the precise bug report, it was easy to create a specific test case, and test it on either RHEL 9 older than 9.2, RHEL 8 older than 8.8, or RHEL 7 and older. It should be good to go from my POV :) -- sorry again for the breakage due to the recent D-Bus registration work. |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6280 🤖 @patchback |
When registering using D-Bus and using a version of subscription-manager with an unimplemented 'force' option, then unregister manually the system only if it is registered. 'subscription-manager unregister' errors out when trying to unregister an already unregistered system. (cherry picked from commit c9e11e5)
@ptoscano thanks for fixing this! |
…unregister only when registered (#6280) redhat_subscription: manually unregister only when registered (#6259) When registering using D-Bus and using a version of subscription-manager with an unimplemented 'force' option, then unregister manually the system only if it is registered. 'subscription-manager unregister' errors out when trying to unregister an already unregistered system. (cherry picked from commit c9e11e5) Co-authored-by: Pino Toscano <ptoscano@redhat.com>
SUMMARY
When registering using D-Bus and using a version of subscription-manager with an unimplemented
force
option, then unregister manually the system only if it is registered.subscription-manager unregister
errors out when trying to unregister an already unregistered system.Fixes #6258
ISSUE TYPE
COMPONENT NAME
redhat_subscription
ADDITIONAL INFORMATION
Easy reproducer:
force_register=true