Bug 1760794
| Summary: | Showing subscription manager python library error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Akash Solanke <asolanke> | ||||
| Component: | subscription-manager | Assignee: | candlepin-bugs | ||||
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.8 | CC: | csnyder, l.timmins | ||||
| Target Milestone: | rc | Keywords: | SubscriptionExperience | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Other | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-10-17 15:40:26 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Note -- this should not be closed unresolved.
(A) subscription-manager is failing even with --force
(B) besides the python errors -- there is a mysterious "PUT" in the /var/log/rhsm/rhsm.log
RemoteServerException: Server error attempting a PUT to /subscription/consumers/blahblah/profiles returned status 503
(C) -- it occurred after August 1, 2020 on our systems.
subscription-manager register --username=ljt@primma --auto-attach --force
Password:
...
Unregistering from: subscription.rhsm.redhat.com:443/subscription
The system with UUID blahblah1 has been unregistered
All local data removed
Registering to: subscription.rhsm.redhat.com:443/subscription
The system has been registered with ID: blahblah2
The registered system name is: servername.mydomain.com
Traceback (most recent call last):
File "/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.26', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 86, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2989, in main
ret = CLI.main(self)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 183, in main
return cmd.main()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 536, in main
return_code = self._do_command()
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1398, in _do_command
profile_mgr.update_check(self.cp, consumer['uuid'], True)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 468, in update_check
return CacheManager.update_check(self, uep, consumer_uuid, force)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 183, in update_check
raise Exception(_("Error updating system data on the server, see /var/log/rhsm/rhsm.log "
Exception: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
[root@prioltpmain ~]#
========================================================
Looking in Log File ... there is some mysterious PUT that is failing...
=============
[root@prioltpmain rhsm]# tail -70 rhsm.log
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 627, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 695, in validateResponse
handler=handler)
RemoteServerException: Server error attempting a PUT to /subscription/consumers/d2b32369-4e99-4174-88b4-cd647dffb795/profiles returned status 503
2020-08-15 10:26:44,791 [WARNING] rhsmcertd-worker:10875:MainThread @base_action_client.py:71 - Exception caught while running <subscription_manager.packageprofilelib.PackageProfileActionInvoker object at 0x7ff86637bd90> update
2020-08-15 10:26:44,791 [ERROR] rhsmcertd-worker:10875:MainThread @base_action_client.py:72 - Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/subscription_manager/base_action_client.py", line 62, in _run_update
update_report = lib.update()
File "/usr/lib64/python2.7/site-packages/subscription_manager/certlib.py", line 32, in update
self.report = self.locker.run(self._do_update)
File "/usr/lib64/python2.7/site-packages/subscription_manager/certlib.py", line 18, in run
return action()
File "/usr/lib64/python2.7/site-packages/subscription_manager/packageprofilelib.py", line 26, in _do_update
return action.perform()
File "/usr/lib64/python2.7/site-packages/subscription_manager/packageprofilelib.py", line 42, in perform
ret = profile_mgr.update_check(self.uep, consumer_identity.uuid, force=force_upload)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 468, in update_check
return CacheManager.update_check(self, uep, consumer_uuid, force)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 183, in update_check
raise Exception(_("Error updating system data on the server, see /var/log/rhsm/rhsm.log "
Exception: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
2020-08-15 10:27:40,209 [INFO] rhsmcertd-worker:11112:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-08-15 10:27:41,333 [INFO] rhsmcertd-worker:11112:MainThread @entcertlib.py:131 - certs updated:
Total updates: 0
Found (local) serial# []
Expected (UEP) serial# []
Added (new)
<NONE>
Deleted (rogue):
<NONE>
2020-08-15 10:27:44,791 [ERROR] rhsmcertd-worker:11112:MainThread @connection.py:643 - Response: 503
2020-08-15 10:27:44,791 [ERROR] rhsmcertd-worker:11112:MainThread @connection.py:644 - JSON parsing error: No JSON object could be decoded
2020-08-15 10:27:44,791 [ERROR] rhsmcertd-worker:11112:MainThread @cache.py:181 - Error updating system data on the server
2020-08-15 10:27:44,792 [ERROR] rhsmcertd-worker:11112:MainThread @cache.py:182 - Server error attempting a PUT to /subscription/consumers/blahblah/profiles returned status 503
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 173, in update_check
self._sync_with_server(uep, consumer_uuid)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 506, in _sync_with_server
_combined_profile
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1187, in updateCombinedProfile
return self.conn.request_put(method, profile)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 735, in request_put
return self._request("PUT", method, params, headers=headers)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 752, in _request
info=info, headers=headers)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 627, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 695, in validateResponse
handler=handler)
RemoteServerException: Server error attempting a PUT to /subscription/consumers/blahblah/profiles returned status 503
2020-08-15 10:27:44,794 [WARNING] rhsmcertd-worker:11112:MainThread @base_action_client.py:71 - Exception caught while running <subscription_manager.packageprofilelib.PackageProfileActionInvoker object at 0x7fbe7813ad90> update
2020-08-15 10:27:44,794 [ERROR] rhsmcertd-worker:11112:MainThread @base_action_client.py:72 - Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/subscription_manager/base_action_client.py", line 62, in _run_update
update_report = lib.update()
File "/usr/lib64/python2.7/site-packages/subscription_manager/certlib.py", line 32, in update
self.report = self.locker.run(self._do_update)
File "/usr/lib64/python2.7/site-packages/subscription_manager/certlib.py", line 18, in run
return action()
File "/usr/lib64/python2.7/site-packages/subscription_manager/packageprofilelib.py", line 26, in _do_update
return action.perform()
File "/usr/lib64/python2.7/site-packages/subscription_manager/packageprofilelib.py", line 42, in perform
ret = profile_mgr.update_check(self.uep, consumer_identity.uuid, force=force_upload)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 468, in update_check
return CacheManager.update_check(self, uep, consumer_uuid, force)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 183, in update_check
raise Exception(_("Error updating system data on the server, see /var/log/rhsm/rhsm.log "
Exception: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
[root@prioltpmain rhsm]#
Note: On RHEL 7.8, this latest subscription manager may be the cause: [root@prioltpmain rhsm]# rpm -q subscription-manager subscription-manager-1.24.26-4.el7_8.x86_64 [root@prioltpmain rhsm]# I have seen discussion in RHEL 8 that same error was fixed with a .40 version which is not available on RHEL 7 package downloads. subscription-manager-1.24.40...4.el7_8.x86_64 Q. Where is the RHEL 7.8 FIX? |
Created attachment 1624693 [details] This image descibe the error Description of problem: While I am installing an openstack I through a command openstack undercloud deploy it through an error that some of python files are not working ************************Error********************************************* [stack@undercloud ~]$ sudo subscription-manager list --available --all --matches="*OpenStack*" Traceback (most recent call last): File "/sbin/subscription-manager", line 9, in <module> load_entry_point('subscription-manager==1.24.13', 'console_scripts', 'subscription-manager')() File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main return managercli.ManagerCLI().main() File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2922, in main ret = CLI.main(self) File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 183, in main return cmd.main() File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 506, in main return_code = self._do_command() File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2577, in _do_command after_date=after_date, File "/usr/lib64/python2.7/site-packages/rhsmlib/services/entitlement.py", line 264, in get_available_pools after_date=after_date, File "/usr/lib64/python2.7/site-packages/subscription_manager/managerlib.py", line 324, in get_available_entitlements overlapping, uninstalled, text, filter_string, future=future, after_date=after_date) File "/usr/lib64/python2.7/site-packages/subscription_manager/managerlib.py", line 535, in get_filtered_pools_list filter_string=filter_string, future=future, after_date=after_date): File "/usr/lib64/python2.7/site-packages/subscription_manager/managerlib.py", line 279, in list_pools require(FACTS).update_check(uep, consumer_uuid) File "/usr/lib64/python2.7/site-packages/subscription_manager/cache.py", line 183, in update_check raise Exception(_("Error updating system data on the server, see /var/log/rhsm/rhsm.log " Exception: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details. [stack@undercloud ~]$ ****************************************************************************** Version-Release number of selected component (if applicable): Red Hat Enterprise Linux Server release 7.7 (Maipo) How reproducible: I Steps to Reproduce: 1. 2. 3. Actual results: It through's an error of python packages Expected results: Expected result is to show available subscriptions of Openstack Additional info: