Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
.Subscription enrolling with Activation keys has been fixed
Previously, you could not enroll your Red Hat subscription in *Settings* using Activation keys. *Settings* displayed the following error after pressing btn:[Register]:
----
Failed to register system; Failed to RegisterWithActivationKeys: Unknown arguments: dict_keys(['enable_content'])
----
With this update, the problem has been fixed, and you can now enroll your subscription using Activation keys as expected in *Settings*.
Description of problem: GUI-based method of system registration doesn't work on RHEL 9.
Version-Release number of selected component (if applicable):
$ sudo subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.22-1
subscription management rules: 5.41
subscription-manager: 1.29.26-3.el9_0
How reproducible:
Steps to Reproduce:
1. Install RHEL 9 from GA image, using "Server with GUI" profile, without registering the system during install.
2. After the installation and first boot, one is prompted to register the system.
3. Go to Settings->About->Subscription. Choose Registration server: Red Hat, Registration type: Activation keys. Input correct activation key and organization ID. Press Register.
Actual results: Error message pops up: Failed to register system; Failed to RegisterWithActivationKeys: Unknown arguments: dict_keys(['enable_content'])
Expected results: system should register.
Additional info: As a workaround, the CLI method (# subscription-manager register --org=ORG ID --activationkey= Key Name from https://access.redhat.com/solutions/3341191) with activation key and organization ID works.
journalctl entries:
hostname systemd[1]: Started RHSM dbus service.
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for C.UTF-8_C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for C.UTF-8_C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for C.UTF-8_C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for C.UTF-8_C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: ERROR [syspurpose.files:108] Unable to read file /etc/rhsm/syspurpose/syspurpose.json: [Errno 2] No such file or directory: '/etc/rhsm/syspurpose/syspurpose.j
son'
hostname vmtoolsd[5718]: gtk_disable_setlocale() must be called before gtk_init()
hostname systemd[5264]: Started GNOME subscription management service.
hostname systemd[5264]: Reached target GNOME subscription management target.
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for C.UTF-8_C.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname pkexec[6252]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
hostname pkexec[6252]: test: Executing command [USER=root] [TTY=unknown] [CWD=/home/user] [COMMAND=/usr/libexec/gsd-subman-helper --kind register-with-key --address unix:abstract=/run/dbus-An08zl1K3h,guid={GUID} --hostname subscription.rhsm.redhat.com --organisation {ORG_ID}]
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for en_US.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for en_EN.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: ERROR [rhsmlib.dbus.util:72] This object requires the consumer to be registered before it can be used.
hostname rhsm-service[5878]: Traceback (most recent call last):
hostname rhsm-service[5878]: File "/usr/lib64/python3.9/site-packages/rhsmlib/dbus/util.py", line 70, in dbus_handle_exceptions
hostname rhsm-service[5878]: return func(*args, **kwargs)
hostname rhsm-service[5878]: File "/usr/lib64/python3.9/site-packages/rhsmlib/dbus/objects/unregister.py", line 64, in Unregister
hostname rhsm-service[5878]: self.ensure_registered()
hostname rhsm-service[5878]: File "/usr/lib64/python3.9/site-packages/rhsmlib/dbus/base_object.py", line 62, in ensure_registered
hostname rhsm-service[5878]: raise dbus.DBusException(
hostname rhsm-service[5878]: dbus.exceptions.DBusException: This object requires the consumer to be registered before it can be used.
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:165] Could not import locale for en_US.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: INFO [subscription_manager.i18n:135] Could not import locale either for en_EN.UTF-8: [Errno 2] No translation file found for domain: 'rhsm'
hostname rhsm-service[5878]: ERROR [rhsmlib.dbus.util:72] Unknown arguments: dict_keys(['enable_content'])
hostname rhsm-service[5878]: Traceback (most recent call last):
hostname rhsm-service[5878]: File "/usr/lib64/python3.9/site-packages/rhsmlib/dbus/util.py", line 70, in dbus_handle_exceptions
hostname rhsm-service[5878]: return func(*args, **kwargs)
hostname rhsm-service[5878]: File "/usr/lib64/python3.9/site-packages/rhsmlib/dbus/objects/register.py", line 338, in RegisterWithActivationKeys
hostname rhsm-service[5878]: consumer = register_service.register(org, **options)
hostname rhsm-service[5878]: File "/usr/lib64/python3.9/site-packages/rhsmlib/services/register.py", line 43, in register
hostname rhsm-service[5878]: raise exceptions.ValidationError(_("Unknown arguments: %s") % kwargs.keys())
hostname rhsm-service[5878]: rhsmlib.services.exceptions.ValidationError: Unknown arguments: dict_keys(['enable_content'])
Hello Peter,
thanks for filing this bug for us.
Can you please clarify what is the UI being used for the registration after the installation?
The context here is that subscription-manager used to provide a page in the "Initial setup" wizard that appears when you graphically log in to RHEL for the first time after the installation. We stopped providing that page in RHEL 9, so I'm surprised you get something like that (and we did not have internal reports about this either).
If possible, can you please attach screenshot(s) of what you get?
Thanks in advance!
I had a chat with Felipe Borges from the Desktop Team (that maintains the GNOME integration for Subscriptions).
It seems that the gnome-settings-daemon plugin adds "enable_content" as option for both the "Register" and "RegisterWithActivationKeys" D-Bus methods. The "enable_content" option is used to also attach the content after the registration (as the name says, "enable the content/repositories"). It is useful only when registering with means different than activation keys (e.g. username & password), as activation keys have already an attribute that specifies whether perform this automatic content enablement upon successful registration. There was a request to make "enable_content" usable with "RegisterWithActivationKeys" as well, however it was rejected: bug 2059447.
Because of this, I'm reassigning the bug to gnome-settings-daemon, to make sure "enable_content" is used as option only when registering using "Register".
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (gtk4 bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:8218