Bug 1139811 - registration from a subscription-manager client with invalid credentials shows no feedback
Summary: registration from a subscription-manager client with invalid credentials show...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: jcallaha
URL:
Whiteboard:
: 1159057 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-09 16:56 UTC by John Sefler
Modified: 2017-02-23 20:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:57:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2014-09-09 16:56:55 UTC
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

Comment 1 Carter Kozak 2014-09-09 17:01:21 UTC
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.

Comment 3 Dominic Cleal 2014-10-31 08:03:44 UTC
*** Bug 1159057 has been marked as a duplicate of this bug. ***

Comment 4 Justin Sherrill 2015-03-04 22:07:21 UTC
I am unable to reproduce this, moving to on_qa

Comment 5 jcallaha 2015-03-06 19:46:46 UTC
Verified in Satellite 6.1.0 snap 5 environment.

Version tested:
RHEL 66
RHEL 71

Comment 6 Bryan Kearney 2015-08-11 13:32:05 UTC
This bug is slated to be released with Satellite 6.1.

Comment 7 Bryan Kearney 2015-08-12 13:57:45 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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