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.
Bug 1663384 - [ALL LANG][RHSM CLI] Unlocalized message in register module.
Summary: [ALL LANG][RHSM CLI] Unlocalized message in register module.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.6
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1678438 1682763
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-04 07:05 UTC by Lijun Li
Modified: 2023-09-07 19:37 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1678438 (view as bug list)
Environment:
Last Closed: 2022-10-10 06:54:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lijun Li 2019-01-04 07:05:39 UTC
Description of problem:
[ALL LANG][RHSM CLI] Unlocalized message in register module.

Version-Release number of selected component (if applicable):
subscription-manager-1.23.8-11.el8.x86_64.rpm

How reproducible:
100%

Steps to Reproduce:
1. Install latest rhel8 workstation build.
2. Run rhsm cli from terminal.

Actual results:
# subscription-manager register --username=stage_test_12 --password=redhat --org=test
正在注册到:subscription.rhsm.stage.redhat.com:443/subscription
HTTP error (400 - Bad Request): Organization test does not exist.
^^^^Unlocalized message.

Expected results:
It should be localized.

Additional info:

Comment 1 Kevin Howell 2019-01-21 15:34:38 UTC
Is this possibly fixed?

Comment 2 Chris Snyder 2019-01-21 19:18:13 UTC
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!

Comment 3 John Sefler 2019-01-30 18:32:10 UTC
[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)

Comment 6 Lijun Li 2019-07-01 04:01:48 UTC
This is also reproduced on latest rhel7.7 snapshot build.

Comment 9 Lijun Li 2019-10-15 06:32:32 UTC
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.

Comment 12 Lijun Li 2020-09-07 07:26:00 UTC
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 不存在。

Comment 14 Lijun Li 2021-10-12 09:17:56 UTC
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^^^^^^^^^^^^^^^^^^^^^^^^^^

Comment 16 Lijun Li 2021-10-25 07:49:46 UTC
[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.

Comment 17 Lijun Li 2021-10-25 08:25:01 UTC
Reproduced on latest rhsm build.

Comment 18 Pino Toscano 2022-01-21 14:21:40 UTC
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!

Comment 19 Lijun Li 2022-10-09 07:59:30 UTC
(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^^^^^^^^^^^^^^^^^^^^^^^

Comment 20 Pino Toscano 2022-10-10 06:54:00 UTC
(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.


Note You need to log in before you can comment on or make changes to this bug.