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.
Additional info:
The behavior in comment 0 is a regression from the RHEL7.3 version of RHSM packages...
[root@jsefler-rhel7 ~]# rpm -q python-rhsm subscription-manager
python-rhsm-1.17.9-1.el7.x86_64
subscription-manager-1.17.15-1.el7.x86_64
[root@jsefler-rhel7 ~]# LANG=fr_FR subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com:443/subscription
Enregistrement sur : subscription.rhsm.stage.redhat.com:443/subscription
Nom d'utilisateur : qa
Mot de passe :
Le système a été enregistré avec l'ID : feddd2fd-1dce-42f4-873f-920acb6f877d
[root@jsefler-rhel7 ~]#
^^ Successful registration in RHEL7.3
I found that what was happening is that since bug 1450210 was causing the facts to be collected in a wrong locale, when we tried to build JSON, this caused the serialization to fail.
*** This bug has been marked as a duplicate of bug 1450210 ***
Description of problem: Version-Release number of selected component (if applicable): [root@jsefler-rhel7 ~]# rpm -q python-rhsm subscription-manager python-rhsm-1.19.6-1.el7.x86_64 subscription-manager-1.19.12-1.el7.x86_64 How reproducible: Steps to Reproduce: [root@jsefler-rhel7 ~]# LANG=fr_FR subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com:443/subscription Enregistrement sur : subscription.rhsm.stage.redhat.com:443/subscription Nom d'utilisateur : qa Mot de passe : 'utf8' codec can't decode byte 0xa0 in position 15: invalid start byte [root@jsefler-rhel7 ~]# tail -f /var/log/rhsm/rhsm.log 2017-05-10 16:53:09,336 [ERROR] subscription-manager:26756:MainThread @managercli.py:179 - Erreur lors de l'enregistrement : 'utf8' codec can't decode byte 0xa0 in position 15: invalid start byte 2017-05-10 16:53:09,336 [ERROR] subscription-manager:26756:MainThread @managercli.py:180 - 'utf8' codec can't decode byte 0xa0 in position 15: invalid start byte Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1199, in _do_command content_tags=self.installed_mgr.tags) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 878, in registerConsumer return self.conn.request_post(url, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 617, in request_post return self._request("POST", method, params, headers=headers) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 640, in _request info=info, headers=headers) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 480, in _request body = json.dumps(info, default=json.encode) File "/usr/lib64/python2.7/json/__init__.py", line 250, in dumps sort_keys=sort_keys, **kw).encode(obj) File "/usr/lib64/python2.7/json/encoder.py", line 207, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode return _iterencode(o, 0) UnicodeDecodeError: 'utf8' codec can't decode byte 0xa0 in position 15: invalid start byte Actual results: above Expected results: successful registration in locale fr_FR.ISO8859-1 [root@jsefler-rhel7 ~]# LANG=fr_FR subscription-manager facts | grep locale system.default_locale: fr_FR.ISO8859-1