Bug 1703054
| Summary: | subscription-manager register fails under LANG=fr_FR.iso88591 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Pavel Moravec <pmoravec> |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.7 | CC: | csnyder, jhnidek, jsefler, ktordeur, redakkan, skallesh |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.24.23-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-31 19:40:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
See also bug 1702239 Interesting: one can't test this with output redirected or "tee"-ed:
This fails:
# export LANG=fr_FR.iso88591; subscription-manager register --org=RedHat --activationkey=ak_test --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.21.10', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2667, in main
ret = CLI.main(self)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 183, in main
return cmd.main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 501, in main
return_code = self._do_command()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1068, in _do_command
(conf["server"]["hostname"], conf["server"]["port"], conf["server"]["prefix"]))
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256)
#
This works well:
# ( export LANG=fr_FR.iso88591; subscription-manager register --org=RedHat --activationkey=ak_test --force ) 2>&1 | tee test.txt
Annulation de l’inscription de : pmoravec-sat64-on-rhev.gsslab.brq2.redhat.com:443/rhsm
Le système avec l'UUID7449733d-2046-43ae-b79c-671a6865f727 a été désenregistré
..
#
This works also well:
# ( export LANG=fr_FR.iso88591; subscription-manager register --org=RedHat --activationkey=ak_test --force ) 2>&1 > test.txt; cat test.txt
Annulation de l’inscription de : pmoravec-sat64-on-rhev.gsslab.brq2.redhat.com:443/rhsm
Le système avec l'UUIDb9e0afb9-5cf0-4d95-af39-6a7ca520d2c7 a été désenregistré
..
#
Here shall be the list of locales causing problems: fr* cause UnicodeEncodeError, ku* and tr* cause UnicodeDecodeError: LANG=fran�ais UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_BE UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_BE@euro UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 15: character maps to <undefined> -- LANG=fr_BE.iso88591 UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_BE.iso885915@euro UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 15: character maps to <undefined> -- LANG=fr_CA UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_CA.iso88591 UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_CH UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_CH.iso88591 UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=french UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_FR UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_FR@euro UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 15: character maps to <undefined> -- LANG=fr_FR.iso88591 UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_FR.iso885915@euro UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 15: character maps to <undefined> -- LANG=fr_LU UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_LU@euro UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 15: character maps to <undefined> -- LANG=fr_LU.iso88591 UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) -- LANG=fr_LU.iso885915@euro UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 15: character maps to <undefined> -- LANG=ku_TR UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte -- LANG=ku_TR.iso88599 UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte -- LANG=tr_CY UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte LANG=tr_CY.iso88599 UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte -- LANG=tr_TR UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte LANG=tr_TR.iso88599 UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte -- LANG=turkish UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte (trick from fkrska++ to generate this: for i in $(locale -a); do echo "LANG SET TO: $i"; script --return -c "LANG=$i subscription-manager register --org=RedHat --activationkey=ak_test --force" /dev/null ; echo; done | tee output.txt ) Verification for few lang: [root@hpe-dl360gen8-01 ~]# export LANG=fr_FR.iso88591; [root@hpe-dl360gen8-01 ~]# subscription-manager register --org=13418489 --activationkey=shwe --force --serverurl subscription.rhsm.stage.redhat.com Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID64d12015-9b43-4e6d-9258-edab0eb11d0d a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 80bd4e3b-2f8e-4b18-8d22-820499f506ea Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_BE subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDf0d4f808-7fad-42ad-93f5-c874b2b6c64b a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : aa335fba-a909-4544-9a55-5f1db7102af8 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_BE@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDaa335fba-a909-4544-9a55-5f1db7102af8 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : ad25739e-445d-4ec8-97ee-900425786bc8 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_BE.iso88591 subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDad25739e-445d-4ec8-97ee-900425786bc8 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 44f235b4-5df3-43eb-9253-c5f26d662b3a Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_BE.iso885915@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID44f235b4-5df3-43eb-9253-c5f26d662b3a a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : cf21b357-7ada-4dec-8a8a-35705e6b7022 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_CA subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDcf21b357-7ada-4dec-8a8a-35705e6b7022 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 978450fc-55a1-4894-8b7d-4a86e74b8526 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_CA.iso88591 subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID978450fc-55a1-4894-8b7d-4a86e74b8526 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 00ff9fda-9a74-4474-a588-be8dfd42d9ba Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_CH subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID00ff9fda-9a74-4474-a588-be8dfd42d9ba a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 789b5c9a-572e-44b9-86ce-11c0e4816676 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_CH.iso88591 subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID789b5c9a-572e-44b9-86ce-11c0e4816676 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 1d0232bc-a771-47bf-9c62-32df198bce67 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=french subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID1d0232bc-a771-47bf-9c62-32df198bce67 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 003c78bd-3f8c-46b9-ac0a-1845ccdb3788 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_FR subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID003c78bd-3f8c-46b9-ac0a-1845ccdb3788 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 044423b7-aaf3-4d76-8239-e5dc511470ac Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_FR@euro [root@hpe-dl360gen8-01 ~]# LANG=fr_FR@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID044423b7-aaf3-4d76-8239-e5dc511470ac a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 5c4d24e5-7d62-4f01-af9b-a1491f40bb87 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_FR.iso88591 subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID5c4d24e5-7d62-4f01-af9b-a1491f40bb87 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 898260fa-c836-44f7-91ef-15e5cb744a56 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_FR.iso885915@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID898260fa-c836-44f7-91ef-15e5cb744a56 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 287ac759-e9fc-41d9-9a13-129ea1ba78b9 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� Vous avez du nouveau courrier dans /var/spool/mail/root [root@hpe-dl360gen8-01 ~]# LANG=fr_LU [root@hpe-dl360gen8-01 ~]# LANG=fr_LU subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID287ac759-e9fc-41d9-9a13-129ea1ba78b9 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 3c9820c8-05be-423c-9472-7c5cafae9787 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_LU@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID3c9820c8-05be-423c-9472-7c5cafae9787 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : e65b9ec7-4230-4b75-b3db-382b83265a00 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_LU@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDe65b9ec7-4230-4b75-b3db-382b83265a00 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : e7b9e7a2-a480-4609-9e31-8bdebde0cd2f Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_LU.iso88591 subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDe7b9e7a2-a480-4609-9e31-8bdebde0cd2f a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 8dd40c04-17ea-4979-8cd8-2bb7f659f154 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@hpe-dl360gen8-01 ~]# LANG=fr_LU.iso885915@euro subscription-manager register --org=13418489 --activationkey=shwe --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID8dd40c04-17ea-4979-8cd8-2bb7f659f154 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 17a104fc-0a90-4cbf-ac93-ecaf62e19394 Le nom du syst�me enregistr� est�: hpe-dl360gen8-01.hpe2.lab.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� Still see traceback for the following languages so moving bug back to new:
[root@hpe-dl360gen8-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.7.5-1
subscription management rules: 5.37
subscription-manager: 1.24.17-1.el7
[root@hpe-dl360gen8-01 ~]# LANG=turkish subscription-manager version
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2408, in __init__
help=_("Section: %s, Name: %s") % (s, name))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte
[root@hpe-dl360gen8-01 ~]# LANG=turkish subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2408, in __init__
help=_("Section: %s, Name: %s") % (s, name))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte
[root@hpe-dl360gen8-01 ~]# LANG=ku_TR subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1563, in __init__
attr='addons', commands=['unset', 'add', 'remove'])
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 565, in __init__
self.store = self._get_synced_store()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 600, in _get_synced_store
uep = inj.require(inj.CP_PROVIDER).get_consumer_auth_cp()
File "/usr/lib64/python2.7/site-packages/subscription_manager/cp_provider.py", line 110, in get_consumer_auth_cp
restlib_class=self.restlib_class)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 885, in __init__
correlation_id=correlation_id)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 472, in __init__
lc = _get_locale()
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 429, in _get_locale
l = locale.getlocale()
File "/usr/lib64/python2.7/locale.py", line 530, in getlocale
return _parse_localename(localename)
File "/usr/lib64/python2.7/locale.py", line 443, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: ku_TR
[root@hpe-dl360gen8-01 ~]# LANG=ku_TR.iso88599 subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2408, in __init__
help=_("Section: %s, Name: %s") % (s, name))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte
[root@hpe-dl360gen8-01 ~]# LANG=tr_CY subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1563, in __init__
attr='addons', commands=['unset', 'add', 'remove'])
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 565, in __init__
self.store = self._get_synced_store()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 600, in _get_synced_store
uep = inj.require(inj.CP_PROVIDER).get_consumer_auth_cp()
File "/usr/lib64/python2.7/site-packages/subscription_manager/cp_provider.py", line 110, in get_consumer_auth_cp
restlib_class=self.restlib_class)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 885, in __init__
correlation_id=correlation_id)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 472, in __init__
lc = _get_locale()
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 429, in _get_locale
l = locale.getlocale()
File "/usr/lib64/python2.7/locale.py", line 530, in getlocale
return _parse_localename(localename)
File "/usr/lib64/python2.7/locale.py", line 443, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: tr_CY
[root@hpe-dl360gen8-01 ~]# LANG=tr_CY.iso88599 subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2408, in __init__
help=_("Section: %s, Name: %s") % (s, name))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte
[root@hpe-dl360gen8-01 ~]# LANG=tr_TR subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2408, in __init__
help=_("Section: %s, Name: %s") % (s, name))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte
[root@hpe-dl360gen8-01 ~]# LANG=tr_TR.iso88599 subscription-manager register --org=13418489 --activationkey=shwe --force
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.17', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2975, in __init__
CLI.__init__(self, command_classes=commands)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 101, in __init__
cmd = clazz()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2408, in __init__
help=_("Section: %s, Name: %s") % (s, name))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 9: invalid start byte
Verification: [root@intel-sugarbay-do-01 ~]# subscription-manager version type de serveur�: Red Hat Subscription Management serveur de gestion des abonnements�: 2.9.17-1 r�gles de gestion des abonnements�: 5.37 subscription-manager: 1.24.23-1.el7 [root@intel-sugarbay-do-01 ~]# LANG=fr_FR.iso88591 subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID114e07d1-1711-46fb-8b4a-b253d2640e8c a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 4a8f027a-7d6c-41a8-ab63-e4019a417da0 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_BE subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID4a8f027a-7d6c-41a8-ab63-e4019a417da0 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 1cbdbc0a-e97c-49b1-b121-764b2a72d844 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_BE@euro subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID1cbdbc0a-e97c-49b1-b121-764b2a72d844 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : c4e50c3e-6564-4798-9626-d8bb5161ba65 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_BE.iso88591 subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDc4e50c3e-6564-4798-9626-d8bb5161ba65 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 4c0ed7ac-29a7-4ad1-9500-fd5c8c335b80 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_BE.iso885915@euro subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID4c0ed7ac-29a7-4ad1-9500-fd5c8c335b80 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 562af0b3-9cc5-43a9-a03b-b0e39a993b77 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_CA subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID562af0b3-9cc5-43a9-a03b-b0e39a993b77 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : c2b8a229-761d-4665-ac14-a7b3e2c12cb9 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_CA.iso88591 subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDc2b8a229-761d-4665-ac14-a7b3e2c12cb9 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 4382f8a1-94c6-4693-a61d-31f5165087a2 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_CH subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID4382f8a1-94c6-4693-a61d-31f5165087a2 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 19079aeb-6be3-4bcc-8752-dc97404147ae Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_CH.iso88591 subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID19079aeb-6be3-4bcc-8752-dc97404147ae a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 8ba69d8b-b752-431e-a10b-8dc35cd0e48c Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=french subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID8ba69d8b-b752-431e-a10b-8dc35cd0e48c a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 00e06cf6-38c6-44b0-b88e-844a369d3036 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_FR subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID00e06cf6-38c6-44b0-b88e-844a369d3036 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 43e73a46-da70-4954-b5bb-a0e3db32360f Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_FR@euro subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID43e73a46-da70-4954-b5bb-a0e3db32360f a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 85b935c2-56bb-46ba-91e9-3f8dcedbcd01 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_FR.iso88591 subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID85b935c2-56bb-46ba-91e9-3f8dcedbcd01 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 6d52ebd3-a240-4f25-b930-c125a0749cee Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_LU subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID6d52ebd3-a240-4f25-b930-c125a0749cee a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 84dcd8aa-4ea7-44cb-bdae-a164d2917579 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_LU@euro subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID84dcd8aa-4ea7-44cb-bdae-a164d2917579 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 69fdb12e-d065-4d93-8c79-4cc9e9966184 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_LU.iso88591 subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUID69fdb12e-d065-4d93-8c79-4cc9e9966184 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : c0cede3c-7f28-4ae4-8258-a843cf6be0d8 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� [root@intel-sugarbay-do-01 ~]# LANG=fr_LU.iso885915@euro subscription-manager register --org=12799380 --activationkey=shwetha --force Annulation de l'inscription de�: subscription.rhsm.stage.redhat.com:443/subscription Le syst�me avec l'UUIDc0cede3c-7f28-4ae4-8258-a843cf6be0d8 a �t� d�senregistr� Toutes les donn�es locales supprim�es Le syst�me a �t� enregistr� avec l'ID : 66b1480c-bb95-4faf-99d1-be9a97d58da2 Le nom du syst�me enregistr� est�: intel-sugarbay-do-01.ml3.eng.bos.redhat.com �tat actuel du produit install� : Nom du produit : Red Hat Ansible Engine Statut : Abonn� Nom du produit : Red Hat Enterprise Linux Server Statut : Abonn� Verification for blacklisted Turkish locales Reference: https://github.com/candlepin/subscription-manager/commit/bbd73eb922c7b2fa96c2e46239863f4d066f41bb [root@intel-sugarbay-do-01 ~]# LANG=turkish subscription-manager register --org=12799380 --activationkey=shwetha --force You are attempting to use blacklisted locale: turkish Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription The system with UUID 66b1480c-bb95-4faf-99d1-be9a97d58da2 has been unregistered All local data removed The system has been registered with ID: 239719a1-9389-4cb3-b2e0-4cb2aa9d7eca The registered system name is: intel-sugarbay-do-01.ml3.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Ansible Engine Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@intel-sugarbay-do-01 ~]# LANG=ku_TR subscription-manager register --org=12799380 --activationkey=shwetha --force You are attempting to use blacklisted locale: ku_TR Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription The system with UUID 239719a1-9389-4cb3-b2e0-4cb2aa9d7eca has been unregistered All local data removed The system has been registered with ID: 469fcac0-3cc5-41ff-bc68-4ddab18d2129 The registered system name is: intel-sugarbay-do-01.ml3.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Ansible Engine Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@intel-sugarbay-do-01 ~]# LANG=ku_TR.iso88599 subscription-manager register --org=12799380 --activationkey=shwetha --force You are attempting to use blacklisted locale: ku_TR.iso88599 Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription The system with UUID 469fcac0-3cc5-41ff-bc68-4ddab18d2129 has been unregistered All local data removed The system has been registered with ID: b030971d-bd7b-4803-834f-c7797712f517 The registered system name is: intel-sugarbay-do-01.ml3.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Ansible Engine Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@intel-sugarbay-do-01 ~]# LANG=tr_CY subscription-manager register --org=12799380 --activationkey=shwetha --force You are attempting to use blacklisted locale: tr_CY Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription The system with UUID b030971d-bd7b-4803-834f-c7797712f517 has been unregistered All local data removed The system has been registered with ID: d321abfe-99b2-4ad7-b999-fdb95a19643a The registered system name is: intel-sugarbay-do-01.ml3.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Ansible Engine Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@intel-sugarbay-do-01 ~]# LANG=tr_CY.iso88599 subscription-manager register --org=12799380 --activationkey=shwetha --force You are attempting to use blacklisted locale: tr_CY.iso88599 Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription The system with UUID d321abfe-99b2-4ad7-b999-fdb95a19643a has been unregistered All local data removed The system has been registered with ID: 2fa3450f-6769-486e-b8b8-46bc2a9c0545 The registered system name is: intel-sugarbay-do-01.ml3.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Ansible Engine Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed 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, 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-2020:1028 |
Description of problem: When a system locale is LANG=fr_FR.iso88591, RHSM raises below exception when attempting to (re)register the system: # export LANG=fr_FR.iso88591; subscription-manager register --org="RedHat" --activationkey="ak_test" --force Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 9, in <module> load_entry_point('subscription-manager==1.21.10', 'console_scripts', 'subscription-manager')() File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main return managercli.ManagerCLI().main() File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2667, in main ret = CLI.main(self) File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 183, in main return cmd.main() File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 501, in main return_code = self._do_command() File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1068, in _do_command (conf["server"]["hostname"], conf["server"]["port"], conf["server"]["prefix"])) UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 15: ordinal not in range(256) # Version-Release number of selected component (if applicable): subscription-manager-1.21.10-3.el7_6.x86_64 How reproducible: 100% Steps to Reproduce: 1. export LANG=fr_FR.iso88591; subscription-manager register .. (use any favourite options here) Actual results: 1. registration fails with above backtrace Expected results: 1. registration succeeds Additional info: List of all locales that fail this way to be provided.