Bug 1663384
| Summary: | [ALL LANG][RHSM CLI] Unlocalized message in register module. | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Lijun Li <lijli> | |
| Component: | subscription-manager | Assignee: | candlepin-bugs | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8.5 | CC: | candlepin-bugs, csnyder, jhnidek, jsefler, khowell, lijli, ljanda, ptoscano, qe-i18n-bugs, rcavalca, redakkan | |
| Target Milestone: | rc | Keywords: | Translation, Triaged | |
| Target Release: | 8.6 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1678438 (view as bug list) | Environment: | ||
| Last Closed: | 2022-10-10 06:54:00 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: | ||||
| Bug Depends On: | 1678438, 1682763 | |||
| Bug Blocks: | ||||
|
Description
Lijun Li
2019-01-04 07:05:39 UTC
Is this possibly fixed? The output for me using the latest built subscription-manager is as follows: (with LANG=ja_JP.utf-8) 登録中: subscription.rhsm.stage.redhat.com:443/subscription HTTP error (400 - Bad Request): 組織 test は存在しません。 Lijun Li, When I try this against the latest subscription-manager available for RHEL8 (subscription-manager-1.23.8-14.el8) I am unable to reproduce this failure exactly. I believe this to be fixed. Can you confirm? If you agree that it appears fixed, please close this bug as current release. Thank you! [root@kvm-01-guest04 ~]# for L in en_US de_DE es_ES fr_FR it_IT ja_JP ko_KR pt_BR ru_RU zh_CN zh_TW; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test"; LANG=$L.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test; done;
# LANG=en_US.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): Organization test does not exist.
# LANG=de_DE.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
Registrieren bei: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): Organisation test existiert nicht.
# LANG=es_ES.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
Registrándose a: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): No existe la organización test.
# LANG=fr_FR.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
Enregistrement sur : subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): L'organisation test n'existe pas.
# LANG=it_IT.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
Registrazione con: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): L'organizzazione test non esiste.
# LANG=ja_JP.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
登録中: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): 組織 test は存在しません。
# LANG=ko_KR.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
등록 대상: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): 조직 test이 존재하지 않습니다.
# LANG=pt_BR.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
Registrando em: subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): Organization test does not exist.
# LANG=ru_RU.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
Регистрация на subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): Организация test не существует.
# LANG=zh_CN.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
正在注册到:subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): Organization test does not exist.
# LANG=zh_TW.UTF-8 subscription-manager register --username=stage_test_12 --password=redhat --org=test
You are attempting to use a locale that is not installed.
正在向 subscription.rhsm.stage.redhat.com:443/subscription 註冊
HTTP error (400 - Bad Request): Organization test does not exist.
[root@kvm-01-guest04 ~]#
To csnyder,
There are two problems here...
1. The string "Organization {0} does not exist." is actually a Candlepin string which is translated in https://vendors.zanata.redhat.com/project/view/candlepin?dswid=7160 . Once the translation for the Candlepin project in Zanata are complete, then they need to be pulled into a Candlepin build for Hosted and Satellite. From the results above, you see that some langs are translated and some are not.
2. The HTTP error strings are not marked for translation in the subscription-manager src/rhsm/connection.py
[jsefler@jseflerP50 subscription-manager]$ grep -R "HTTP error ("
src/rhsm/connection.py: return "HTTP error (%s - %s): %s" % (self.code, error_title, self.msg)
src/rhsm/connection.py: return "HTTP error (%s - %s)" % (self.code, error_title)
This is also reproduced on latest rhel7.7 snapshot build. Reproduced on latest rhel8.1 build. # subscription-manager register --username=stage_test_12 --password=redhat --org=test --force 取消注册:subscription.rhsm.stage.redhat.com:443/subscription UUID 为 7b084e02-8226-436a-bc0e-cba50b56eb71 的系统已经被取消注册 已删除所有本地数据 正在注册到:subscription.rhsm.stage.redhat.com:443/subscription HTTP error (400 - Bad Request): Organization test does not exist. Reproduced on latest rhel8.3 build. [root@localhost ~]# subscription-manager register --username=stage_test_12 --password=redhat --org=test --force 取消注册:subscription.rhsm.stage.redhat.com:443/subscription UUID 为 b210e948-5c39-4351-86b5-4ae331c2e949 的系统已经被取消注册 已删除所有本地数据 正在注册到:subscription.rhsm.stage.redhat.com:443/subscription HTTP error (400 - Bad Request): 机构 test 不存在。 Reproduced on latest rhel8.5 build. [root@localhost ~]# subscription-manager register --username test --password test 登録中: subscription.rhsm.stage.redhat.com:443/subscription HTTP error (401 - Unauthorized): Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html ^^^^^^^^^^^^^^^^^^^^^^^^^^Unlocalized message^^^^^^^^^^^^^^^^^^^^^^^^^^ [root@localhost ~]# subscription-manager register --username stage_test_12 --org test 登録中: subscription.rhsm.stage.redhat.com:443/subscription パスワード: HTTP error (400 - Bad Request): Organization test does not exist. ^^^^^^^^^^^^^^^^^^^^^^^^^^Unlocalized message^^^^^^^^^^^^^^^^^^^^^^^^^^ [root@localhost ~]# rpm -qa|grep subscription-manager subscription-manager-initial-setup-addon-1.28.21-3.el8.x86_64 subscription-manager-1.28.21-3.el8.x86_64 dnf-plugin-subscription-manager-1.28.21-3.el8.x86_64 subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 subscription-manager-cockpit-1.28.21-3.el8.noarch [root@localhost ~]# [root@localhost ~]# subscription-manager register --username test --password test このシステムはすでに登録されています。上書きするには --force を使用します [root@localhost ~]# subscription-manager register --username test --password test --force 登録の解除中: subscription.rhsm.stage.redhat.com:443/subscription UUID が e6aaa50b-f3a9-4ff9-a5eb-c9294fe263fa のシステムの登録は解除されました ローカルデータがすべて削除されました 登録中: subscription.rhsm.stage.redhat.com:443/subscription HTTP error (401 - Unauthorized): Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html [root@localhost ~]# subscription-manager register --username stage_test_12 --org test 登録中: subscription.rhsm.stage.redhat.com:443/subscription パスワード: HTTP error (400 - Bad Request): Organization test does not exist. Reproduced on latest rhsm build. Hi Lijun Li, can you please check this bug again with a RHEL 8.6 build of subscription-manager? In particular, I think this issue (the untranslated "HTTP error" string) was fixed by bug 1976240, which was backported to RHEL 8.6 and available in subscription-manager >= 1.28.22. Thanks! (In reply to Pino Toscano from comment #18) > Hi Lijun Li, > > can you please check this bug again with a RHEL 8.6 build of > subscription-manager? > In particular, I think this issue (the untranslated "HTTP error" string) was > fixed by bug 1976240, which was backported to RHEL 8.6 and available in > subscription-manager >= 1.28.22. > > Thanks! Verified it's fixed. [root@192 ~]# subscription-manager register --username test --password test --force 登録の解除中: subscription.rhsm.stage.redhat.com:443/subscription UUID が 73b901b6-5250-4520-822b-2c40b98300b2 のシステムの登録は解除されました ローカルデータがすべて削除されました 登録中: subscription.rhsm.stage.redhat.com:443/subscription Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP エラーコード401: Unauthorized) [root@192 ~]# subscription-manager register --username stage_test_12 --org test 登録中: subscription.rhsm.stage.redhat.com:443/subscription パスワード: 組織 test は存在しません。 (HTTP エラーコード400: Bad Request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Localized message^^^^^^^^^^^^^^^^^^^^^^^ (In reply to Lijun Li from comment #19) > (In reply to Pino Toscano from comment #18) > > Hi Lijun Li, > > > > can you please check this bug again with a RHEL 8.6 build of > > subscription-manager? > > In particular, I think this issue (the untranslated "HTTP error" string) was > > fixed by bug 1976240, which was backported to RHEL 8.6 and available in > > subscription-manager >= 1.28.22. > > > > Thanks! > > Verified it's fixed. > > [root@192 ~]# subscription-manager register --username test --password test > --force > 登録の解除中: subscription.rhsm.stage.redhat.com:443/subscription > UUID が 73b901b6-5250-4520-822b-2c40b98300b2 のシステムの登録は解除されました > ローカルデータがすべて削除されました > 登録中: subscription.rhsm.stage.redhat.com:443/subscription > Invalid username or password. To create a login, please visit > https://www.redhat.com/wapps/ugc/register.html (HTTP エラーコード401: Unauthorized) > [root@192 ~]# subscription-manager register --username stage_test_12 --org > test > 登録中: subscription.rhsm.stage.redhat.com:443/subscription > パスワード: > 組織 test は存在しません。 (HTTP エラーコード400: Bad Request) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Localized message^^^^^^^^^^^^^^^^^^^^^^^ Thanks! Closing this bug then. |