Bug 888790 - Not able to register client to katello using activationkey with subscription-manager-gui.
Not able to register client to katello using activationkey with subscription-...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager (Show other bugs)
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Alex Wood
: QA-Closed
Depends On:
Blocks: 771481
  Show dependency treegraph
Reported: 2012-12-19 08:39 EST by spandey
Modified: 2015-04-23 19:57 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-02-21 04:04:46 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
error screenshot (67.26 KB, image/png)
2012-12-19 08:42 EST, spandey
no flags Details
rhsm.log output (8.01 KB, text/x-log)
2012-12-19 08:42 EST, spandey
no flags Details

  None (edit)
Description spandey 2012-12-19 08:39:36 EST
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Prerequisites :
Rhel6.4 with following subscription-manager rpm 

Steps to Repro : 
Login to client and launch subsription-manager-gui. 
Register client to katello using valid activationkey from subscription-manager-gui.

Expected Result : 
Client should register to katello and no error should display on screen. 

Actual Result :  
Registration process failed with errorbox with following error message 
“Error updating system data on the server,”

Error message recorded in rhsm.log 

2012-12-19 17:59:28,482 [DEBUG]  @connection.py:342 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-12-19 17:59:28,486 [DEBUG]  @connection.py:381 - Making request: PUT /katello/api/consumers/3fb1b788-0fa4-40eb-a9fa-f7b120308081/packages
2012-12-19 17:59:29,064 [DEBUG]  @connection.py:394 - Response status: 401
2012-12-19 17:59:29,065 [ERROR]  @connection.py:411 - No JSON object could be decoded
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 409, in validateResponse
    parsed = json.loads(response['content'], object_hook=self._decode_dict)
  File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 318, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 335, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 353, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
2012-12-19 17:59:29,068 [ERROR]  @connection.py:412 - Response: {'content': 'No Credentials provided', 'status': 401}
2012-12-19 17:59:29,069 [ERROR]  @cache.py:170 - Error updating system data on the server
2012-12-19 17:59:29,069 [ERROR]  @cache.py:171 - Network error code: 401
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/cache.py", line 164, in update_check
    self._update_server(uep, consumer_uuid)
  File "/usr/share/rhsm/subscription_manager/cache.py", line 230, in _update_server
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 674, in updatePackageProfile
    ret = self.conn.request_put(method, pkg_dicts)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 446, in request_put
    return self._request("PUT", method, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 399, in _request
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 417, in validateResponse
    raise NetworkException(response['status'])
NetworkException: Network error code: 401
2012-12-19 17:59:29,077 [ERROR]  @utils.py:68 - Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/registergui.py", line 309, in _on_registration_finished_cb
    raise error
Exception: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.

Attached error screenshot , and rhsm.log output
Comment 1 spandey 2012-12-19 08:42:29 EST
Created attachment 666085 [details]
error screenshot
Comment 2 spandey 2012-12-19 08:42:57 EST
Created attachment 666086 [details]
rhsm.log output
Comment 4 Alex Wood 2012-12-20 09:07:57 EST
commit b6f50e078fd79410ff7479ba70f7909a787e578d
Author: Alex Wood <awood@redhat.com>
Date:   Wed Dec 19 16:50:53 2012 -0500

    888790: Rebuild UEP connection after registering with activation keys.
Comment 7 spandey 2013-01-09 06:50:09 EST
Verified using following rpm 


Working fine resolving defect as verified
Comment 9 errata-xmlrpc 2013-02-21 04:04:46 EST
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.


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