Red Hat Bugzilla – Bug 804109
When providing invalid credential with rhn-migrate-classic-to-rhsm it throws a generic message
Last modified: 2013-01-07 22:49:24 EST
+++ This bug was initially created as a clone of Bug #789008 +++
Description of problem:
Version-Release number of selected component (if applicable):
Rhel5.8 with following rpm
Register machine to rhn classic
Use rhn-migrate-classic-to-rhsm for migration with invalid rhn credentials.
Expected Result: The error message should be more specific, some thing like your user name/password is incorrect.
Actual result: It throws the following error message:
[root@ibm-z10-25 yum.repos.d]# rhn-migrate-classic-to-rhsm
RHN Username: test
Unable to connect to certificate server. See /var/log/rhsm/rhsm.log for more details.
--- Additional comment from firstname.lastname@example.org on 2012-03-15 15:03:01 EDT ---
This bug was fixed as part of 6.3.
Please be sure to reverify on first dev build for RHEL5.9
It looks like this bug has regressed in RHEL 5.9 due to a change I made to add SLA selection. The fix for this regression is fairly simple; however, the fix uncovers another more serious bug with i18n error messages. Printing the error returned by the server results in an UnicodeEncodeError when the i18n text is printed to stderr. Until I find a fix for this more serious error, I am hesitant to commit the fix for the regression.
Refs: <origin/awood/804109>, 804109, subscription-manager-1.0.4-1-35-gf97af2b
Author: Alex Wood <email@example.com>
AuthorDate: Mon Jun 25 13:28:28 2012 -0400
Commit: Alex Wood <firstname.lastname@example.org>
CommitDate: Mon Jun 25 13:28:28 2012 -0400
804109: Give a specific message when providing invalid credentials.
[root@dhcp201-196 ~]# rpm -qa | grep subscription-manager
[root@dhcp201-196 ~]# rhn-migrate-classic-to-rhsm
RHN Username: asfsaf
Unable to connect to certificate server: Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html. See /var/log/rhsm/rhsm.log for more details.
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
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.