Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1371420 - Failed to refresh subscription-manager for stage candlepin, it will show "Server error attempting a PUT .... returned status 404"
Summary: Failed to refresh subscription-manager for stage candlepin, it will show "Ser...
Status: CLOSED DUPLICATE of bug 1366301
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.3
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
Depends On:
TreeView+ depends on / blocked
Reported: 2016-08-30 08:04 UTC by Eko
Modified: 2016-08-30 17:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-08-30 17:49:55 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Eko 2016-08-30 08:04:04 UTC
Description of problem:
register a physical host to stage candlepin normally, but if run "subscription-manager refresh", it will show "RemoteServerException: Server error attempting a PUT to /subscription/consumers/...... "

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

How reproducible:

Steps to Reproduce:
1. configure the host for stage candlepin
# vi /etc/rhsm/rhsm.conf
hostname =

2. register the host to stage candlepin
# subscription-manager register
Registering to:
Username: virt-who-perf
The system has been registered with ID: 176a4ab1-d454-499f-b398-5321fbcbe9d0

3. run "subscription-manager refresh"  => [Failed]
# subscription-manager refresh
Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.

4. check rhsm.log
2016-08-30 04:02:20,078 [DEBUG] subscription-manager:1831:MainThread - ga_loader GaImporterGtk3
2016-08-30 04:02:20,081 [DEBUG] subscription-manager:1831:MainThread - loaded plugin modules: []
2016-08-30 04:02:20,081 [DEBUG] subscription-manager:1831:MainThread - loaded plugins: {}
2016-08-30 04:02:20,081 [DEBUG] subscription-manager:1831:MainThread - Loading consumer info from identity certificates.
2016-08-30 04:02:20,111 [INFO] subscription-manager:1831:MainThread - Client Versions: {'python-rhsm': '1.17.6-1.el7', 'subscription-manager': '1.17.10-1.el7'}
2016-08-30 04:02:20,112 [INFO] subscription-manager:1831:MainThread - Connection built: port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False
2016-08-30 04:02:20,112 [INFO] subscription-manager:1831:MainThread - Connection built: port=443 handler=/subscription auth=none
2016-08-30 04:02:20,112 [INFO] subscription-manager:1831:MainThread - Consumer Identity uuid=176a4ab1-d454-499f-b398-5321fbcbe9d0
2016-08-30 04:02:20,113 [DEBUG] subscription-manager:1831:MainThread - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem
2016-08-30 04:02:20,113 [DEBUG] subscription-manager:1831:MainThread - Making request: PUT /subscription/consumers/176a4ab1-d454-499f-b398-5321fbcbe9d0/certificates?lazy_regen=true

2016-08-30 04:02:21,038 [DEBUG] subscription-manager:1831:MainThread - Response: status=404
2016-08-30 04:02:21,039 [ERROR] subscription-manager:1831:MainThread - Unable to perform refresh due to the following exception: Server error attempting a PUT to /subscription/consumers/176a4ab1-d454-499f-b398-5321fbcbe9d0/certificates?lazy_regen=true returned status 404
2016-08-30 04:02:21,039 [ERROR] subscription-manager:1831:MainThread - Server error attempting a PUT to /subscription/consumers/176a4ab1-d454-499f-b398-5321fbcbe9d0/certificates?lazy_regen=true returned status 404
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/subscription_manager/", line 649, in _do_command
    self.cp.regenEntitlementCertificates(identity.uuid, True)
  File "/usr/lib64/python2.7/site-packages/rhsm/", line 1353, in regenEntitlementCertificates
    return self.conn.request_put(method)
  File "/usr/lib64/python2.7/site-packages/rhsm/", line 703, in request_put
    return self._request("PUT", method, params)
  File "/usr/lib64/python2.7/site-packages/rhsm/", line 611, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python2.7/site-packages/rhsm/", line 667, in validateResponse
RemoteServerException: Server error attempting a PUT to /subscription/consumers/176a4ab1-d454-499f-b398-5321fbcbe9d0/certificates?lazy_regen=true returned status 404

Actual results:
return 404 status when running "subscription-manager refresh"

Expected results:
subscription-manager refresh normally.

Additional info:

Comment 2 Chris "Ceiu" Rog 2016-08-30 17:49:55 UTC

*** This bug has been marked as a duplicate of bug 1366301 ***

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