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.
*** Bug 1159057 has been marked as a duplicate of this bug. ***
I am unable to reproduce this, moving to on_qa
Verified in Satellite 6.1.0 snap 5 environment. Version tested: RHEL 66 RHEL 71
This bug is slated to be released with Satellite 6.1.
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.