Red Hat Bugzilla – Bug 1394776
Registration fails with RemoteServerException: Server error attempting a GET to /subscription/users/stage_test_rhel69/owners returned status 404
Last modified: 2018-10-18 11:16:33 EDT
Description of problem: Observed that subscription-manager register fails with error "RemoteServerException: Server error attempting a GET to /subscription/users/stage_test_rhel69/owners returned status 404" after upgrading the packages to the versions 'python-rhsm': '1.18.4-1.git.2.07e5af7.el6', 'subscription-manager': '1.18.4-1.git.0.ce8212e.el6' from jenkins build Version-Release number of selected component (if applicable): subscription-manager: 1.18.4-1.git.0.ce8212e.el6 python-rhsm: 1.18.4-1.git.2.07e5af7.el6 How reproducible: always Steps to Reproduce: 1.Install latest build from master 2.Try to register system # subscription-manager register --username=stage_test_rhel69 --password=** Registering to: subscription.rhsm.stage.redhat.com:443/subscription Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information. rhsm.log ========= 2016-11-14 07:28:30,254 [ERROR] subscription-manager:27514:MainThread @managercli.py:176 - Error during registration: Server error attempting a GET to /subscription/users/stage_test_rhel69/owners returned status 404 2016-11-14 07:28:30,255 [ERROR] subscription-manager:27514:MainThread @managercli.py:177 - Server error attempting a GET to /subscription/users/stage_test_rhel69/owners returned status 404 Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/subscription_manager/managercli.py", line 1138, in _do_command owner_key = self._determine_owner_key(admin_cp) File "/usr/lib/python2.6/site-packages/subscription_manager/managercli.py", line 1285, in _determine_owner_key owners = cp.getOwnerList(self.username) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 1051, in getOwnerList return self.conn.request_get(method) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 620, in request_get return self._request("GET", method) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 531, in _request self.validateResponse(result, request_type, handler) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 590, in validateResponse Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information. handler=handler) RemoteServerException: Server error attempting a GET to /subscription/users/stage_test_rhel69/owners returned status 404 Actual results: Register fails with above message Expected results: Register should successfully completed Additional info: I could successfully register the client to stage server using the same account from a subscripition-manager brew build python-rhsm': '1.18.4-1.el6', 'subscription-manager': '1.18.4-1.el6 ; Hence adding the keyword "Regression"to te bug
Moving to POST as the fix has been merged upstream.
[root@dhcp35-179 ~]# subscription-manager version server type: RHN Classic and Red Hat Subscription Management subscription management server: 0.9.51.20-1 subscription management rules: 5.15.1 subscription-manager: 1.18.5-1.el6 python-rhsm: 1.18.5-1.el6 [root@dhcp35-179 ~]# subscription-manager register --force Registering to: subscription.rhn.stage.redhat.com:443/subscription Username: qa@redhat.com Password: The system has been registered with ID: d2537655-ec4b-46d3-b574-2e167a7011d0 [root@dhcp35-179 ~]# tail -f /var/log/rhsm/rhsm.log 2016-11-28 02:24:56,494 [INFO] subscription-manager:18055:MainThread @managerlib.py:77 - Consumer created: {'consumer_name': 'dhcp35-179.lab.eng.blr.redhat.com', 'uuid': 'd2537655-ec4b-46d3-b574-2e167a7011d0'} 2016-11-28 02:24:56,500 [INFO] subscription-manager:18055:MainThread @connection.py:758 - Connection built: host=subscription.rhn.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False 2016-11-28 02:24:57,912 [INFO] subscription-manager:18055:MainThread @connection.py:525 - Response: status=200, requestUuid=0a30a161-ef86-409b-a0d3-226cad831e4f, request="GET /subscription/" 2016-11-28 02:24:59,363 [INFO] subscription-manager:18055:MainThread @connection.py:525 - Response: status=200, requestUuid=f044809c-c50b-4852-9064-2602b75e1d2a, request="GET /subscription/status" 2016-11-28 02:24:59,364 [INFO] subscription-manager:18055:MainThread @managercli.py:400 - Server Versions: {'rules-version': '5.15.1', 'candlepin': '0.9.51.20-1', 'server-type': 'RHN Classic and Red Hat Subscription Management'} 2016-11-28 02:25:00,794 [INFO] subscription-manager:18055:MainThread @connection.py:525 - Response: status=200, requestUuid=6feda1a2-4935-4248-87d2-4a82b7f40b80, request="GET /subscription/" 2016-11-28 02:25:00,796 [INFO] subscription-manager:18055:MainThread @cache.py:398 - Server does not support packages, skipping profile upload. 2016-11-28 02:25:02,308 [INFO] subscription-manager:18055:MainThread @connection.py:525 - Response: status=200, requestUuid=b92da3d6-dae9-4b65-bfee-4492598a0548, request="GET /subscription/consumers/d2537655-ec4b-46d3-b574-2e167a7011d0/compliance" 2016-11-28 02:25:02,309 [INFO] subscription-manager:18055:MainThread @cert_sorter.py:205 - Product status: valid_products= partial_products= expired_products= unentitled_producs=69 future_products= valid_until=None 2016-11-28 02:25:02,479 [INFO] rhsmd:18127:MainThread @rhsmd:261 - rhsmd started
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. https://rhn.redhat.com/errata/RHSA-2017-0698.html