Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
Description of problem:
This issue was discovered during bug 1129454. When attempting to register to the Sat6 server with simple/bad credentials, the failed registration neglects to print feedback indicating bad credentials. Instead no feedback is presented. ckozak indicated in https://bugzilla.redhat.com/show_bug.cgi?id=1129454#c5 that this is a server side bug.
Version-Release number of selected component (if applicable):
candlepin-0.9.23-1.el6_5.noarch
katello-1.5.0-30.el6sat.noarch
How reproducible:
Steps to Reproduce:
[root@jsefler-6 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 1.5.0-30.el6sat-Katello
subscription management rules: 5.11
subscription-manager: 1.12.14-5.el6
python-rhsm: 1.12.5-1.el6
[root@jsefler-6 ~]# subscription-manager register --username=foo --password=bar
[root@jsefler-6 ~]#
[root@jsefler-6 ~]# echo $?
255
Actual results:
above
Expected results:
Invalid Credentials
Additional info:
[root@jsefler-6 ~]# tail -f /var/log/rhsm/rhsm.log
2014-09-09 12:51:29,107 [DEBUG] subscription-manager @connection.py:446 - Making request: GET /rhsm/users/foo/owners
2014-09-09 12:51:29,223 [DEBUG] subscription-manager @connection.py:469 - Response: status=401
2014-09-09 12:51:29,228 [ERROR] subscription-manager @managercli.py:1049 -
Traceback (most recent call last):
File "/usr/share/rhsm/subscription_manager/managercli.py", line 1035, in _do_command
owner_key = self._determine_owner_key(admin_cp)
File "/usr/share/rhsm/subscription_manager/managercli.py", line 1178, in _determine_owner_key
owners = cp.getOwnerList(self.username)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 911, in getOwnerList
return self.conn.request_get(method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 550, in request_get
return self._request("GET", method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 478, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 520, in validateResponse
raise RestlibException(response['status'], error_msg)
RestlibException
I think this is an issue with katello, I couldn't reproduce it against a bare candlepin with environments enabled. It seems like katello just fails the connection, but doesn't build the expected exception object.