| Summary: | CLI register module produces trace back | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Kenichi Takemura <ktakemur> |
| Component: | subscription-manager | Assignee: | Chris Duryee <cduryee> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.7 | CC: | awood, bkearney, ebaak, jmolet, qe-i18n-bugs |
| Target Milestone: | rc | Keywords: | i18n |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
No documentation needed.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-08 03:59:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 771748 | ||
Current release has resolved this bug. Testing on version: subscription-manager-1.0.4-1.git.3.1768f90.el5 [root@jmolet-vm0 rhsm]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. #Case 1: [root@jmolet-vm0 rhsm]# subscription-manager register --username=testuser1 --password=blahblah Invalid Credentials #Case 2: [root@jmolet-vm0 rhsm]# subscription-manager register --user testuser1 --password password --org admin --type=wrongtypehere No such consumer type: wrongtypehere marking VERIFIED. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. 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. http://rhn.redhat.com/errata/RHBA-2013-0033.html |
Description of problem: $ LANG=ja_JP.utf8 sudo subscription-manager register --username=wrong_USERNAME --password=wrong_PASSWORD Traceback (most recent call last): File "/usr/lib/python2.4/logging/handlers.py", line 71, in emit if self.shouldRollover(record): File "/usr/lib/python2.4/logging/handlers.py", line 149, in shouldRollover msg = "%s\n" % self.format(record) File "/usr/lib/python2.4/logging/__init__.py", line 617, in format return fmt.format(record) File "/usr/lib/python2.4/logging/__init__.py", line 408, in format s = self._fmt % record.__dict__ UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-28: ordinal not in range(128) ユーザー名かパスワードが無効です。ログインを作成するには、https://www.redhat.com/wapps/ugc/register.html に進んでください $ LANG=ja_JP.utf8 sudo subscription-manager register --username=$USERNAME --password=$PASSWORD --type=wrong_type Traceback (most recent call last): File "/usr/lib/python2.4/logging/handlers.py", line 71, in emit if self.shouldRollover(record): File "/usr/lib/python2.4/logging/handlers.py", line 149, in shouldRollover msg = "%s\n" % self.format(record) File "/usr/lib/python2.4/logging/__init__.py", line 617, in format return fmt.format(record) File "/usr/lib/python2.4/logging/__init__.py", line 408, in format s = self._fmt % record.__dict__ UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-13: ordinal not in range(128) その消費者タイプはありません: wrong_type Version-Release number of selected component (if applicable): subscription-manager-0.95.5.20-1.el5 subscription-manager-firstboot-0.95.5.20-1.el5 subscription-manager-gnome-0.95.5.20-1.el5 How reproducible: 100% Steps to Reproduce: 1. Run register with invalid username and password combination 2. Run register with invalid type 3. Actual results: Expected errors shown but Traceback is produced. Expected results: No Traceback is produced. Additional info: When I hit the command in en_US $ LANG=en_US.utf8 sudo subscription-manager register --username=wrong_USERNAME --password=wrong_PASSWORDInvalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html $ LANG=en_US.utf8 sudo subscription-manager register --username=$USERNAME --password=$PASSWORD --type=wrong_type No such consumer type: wrong_type