RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1760794 - Showing subscription manager python library error
Summary: Showing subscription manager python library error
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.8
Hardware: x86_64
OS: Other
unspecified
high
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-11 10:45 UTC by Akash Solanke
Modified: 2020-08-15 14:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-17 15:40:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
This image descibe the error (313.21 KB, image/png)
2019-10-11 10:45 UTC, Akash Solanke
no flags Details

Description Akash Solanke 2019-10-11 10:45:43 UTC
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:

Comment 2 ljt@primma 2020-08-15 14:32:07 UTC
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]#

Comment 3 ljt@primma 2020-08-15 14:34:44 UTC
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?


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