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
Improve Simple Content Access UX (RHEL 8) #3867
Conversation
We can't merge this until subscription-manager 1.28.26 has been released an is available in the compose. So setting the blocked label. |
41843c1
to
f8177f1
Compare
Add support for detecting Single Content Access mode from data returned by the RHSM DBus API Register() and RegisterWithActivationKeys() methods. As the parsing function is used in two places, put it into an utils module. Related: rhbz#1968574
f8177f1
to
36d7429
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.
Pylint found some issues.
36d7429
to
d3e65ee
Compare
Pylint issues have been fixed up. :) |
/kickstart-test --testtype smoke |
https://bugzilla.redhat.com/show_bug.cgi?id=2049101 with subscription-manager-1.28.28-1.el8 is in ON_QA, so this PR is not blocked by subscription-manager any more. |
Yeah, dropping the blocked label. :) |
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.
Looks good to me except this small nitpick.
@@ -241,13 +243,14 @@ def run(self): | |||
# We do not yet support setting organization for username & password | |||
# registration, so organization is blank for now. | |||
organization = "" | |||
private_register_proxy.Register(organization, | |||
registration_data = private_register_proxy.Register(organization, | |||
self._username, | |||
self._password, | |||
{}, | |||
{}, | |||
locale) |
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.
Indentation issue.
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.
Yep, that
s all
wrong.
Should be fixed now.
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.
Please, fix the issue above. Otherwise, it looks good to me.
Add the IsSimpleContentAccessEnabled property to the Subscription module DBus interface. This property is set to True if SCA mode is detected after a successfully registration attempt. The property is reset back to the initial state (False) on unregistration. Related: rhbz#1968574
Instead of showing "No subscriptions attached" on the Connect to Red Hat screen in SCA mode show "Subscribed in Simple Content Access mode." instead. Resolves: rhbz#1968574
The necessary API support for returning Simple Content Access mode as part of registration data & working SCA+auto-attach needs at least 1.28.26. Related: rhbz#1968574
d3e65ee
to
0370bf7
Compare
Issue has been fixed. |
/kickstart-test --testtype smoke |
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!
Show a proper status message instead of a confusing (even if correct) message about no subscription being attached if install time registration is done in Simple Content Access mode.
This is achieved by parsing the data returned by the register methods of the RHSM DBus, exposing this via a DBus property of the Subscription module, which is then used by the GUI to display the appropriate string.
This is the RHEL 8 version of #3828.