Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2044349

Summary: Subscription manager sends redundant requests to the server in SCA mode [rhel-8.5.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: ---CC: bshahu, cdonnell, hyu, jhnidek, jinjli, jsefler, njajodia, peter.vreman, redakkan, rhsm-qe, rjerrido, sbhamrah
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.28.21-5.el8_5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2014052 Environment:
Last Closed: 2022-03-15 10:23:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2014052    
Bug Blocks:    

Comment 5 Craig Donnelly 2022-02-17 22:44:46 UTC
>> Verifying against RHEL 8.5.z with official build

[root@dhcp-8-30-90 ~]# rpm -q subscription-manager
subscription-manager-1.28.21-3.el8.x86_64

[root@dhcp-8-30-90 ~]# subscription-manager config | grep -e hostname -e refresh -e profile
   hostname = subscription.rhsm.redhat.com
   proxy_hostname = []
   full_refresh_on_yum = 1
   package_profile_on_trans = 1
   report_package_profile = [1]

[root@dhcp-8-30-90 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled

>> Reproducing issue:

>> `yum repolist`
2022-02-17 17:32:24,010 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:32:24,446 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates?serials=750321137717945640
2022-02-17 17:32:25,354 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:32:25,825 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:32:26,224 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:32:27,255 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:32:30,766 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:32:31,227 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:32:32,111 [DEBUG] yum:15343:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release

>> `yum clean all`
2022-02-17 17:32:46,884 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:32:47,333 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates?serials=750321137717945640
2022-02-17 17:32:48,275 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:32:48,778 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:32:49,225 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:32:50,285 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:32:53,814 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:32:54,255 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:32:55,162 [DEBUG] yum:15349:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release

>> `yum install vim -y`
2022-02-17 17:33:14,326 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:33:14,819 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates?serials=750321137717945640
2022-02-17 17:33:15,759 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:33:16,273 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:33:16,781 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:33:17,884 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:33:21,411 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:33:21,883 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:33:22,844 [DEBUG] yum:15355:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release

>> `yum remove vim -y`
2022-02-17 17:34:03,757 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:34:04,161 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates?serials=750321137717945640
2022-02-17 17:34:05,081 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:34:05,501 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:34:05,962 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:34:07,048 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:34:10,562 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:34:11,061 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:34:12,074 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:34:19,612 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/
2022-02-17 17:34:23,389 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:34:23,769 [DEBUG] yum:15372:MainThread @connection.py:710 - Making request: PUT /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/profiles

>> Updating to official build:
[root@dhcp-8-30-90 ~]# yum update subscription-manager
Updating Subscription Management repositories.
Last metadata expiration check: 0:01:04 ago on Thu 17 Feb 2022 05:33:47 PM EST.
Dependencies resolved.
=============================================================================================================================================================
 Package                                         Architecture    Version                  Repository                                                    Size
=============================================================================================================================================================
Upgrading:
 python3-cloud-what                              x86_64          1.28.21-5.el8_5          brew-task-repo-subscription-manager-1.28.21-5.el8_5          299 k
 python3-subscription-manager-rhsm               x86_64          1.28.21-5.el8_5          brew-task-repo-subscription-manager-1.28.21-5.el8_5          376 k
 python3-syspurpose                              x86_64          1.28.21-5.el8_5          brew-task-repo-subscription-manager-1.28.21-5.el8_5          312 k
 subscription-manager                            x86_64          1.28.21-5.el8_5          brew-task-repo-subscription-manager-1.28.21-5.el8_5          1.1 M
 subscription-manager-rhsm-certificates          x86_64          1.28.21-5.el8_5          brew-task-repo-subscription-manager-1.28.21-5.el8_5          273 k

Transaction Summary
=============================================================================================================================================================
Upgrade  5 Packages

Total download size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): python3-syspurpose-1.28.21-5.el8_5.x86_64.rpm                                                                         663 kB/s | 312 kB     00:00    
(2/5): python3-subscription-manager-rhsm-1.28.21-5.el8_5.x86_64.rpm                                                          778 kB/s | 376 kB     00:00    
(3/5): python3-cloud-what-1.28.21-5.el8_5.x86_64.rpm                                                                         589 kB/s | 299 kB     00:00    
(4/5): subscription-manager-rhsm-certificates-1.28.21-5.el8_5.x86_64.rpm                                                     1.9 MB/s | 273 kB     00:00    
(5/5): subscription-manager-1.28.21-5.el8_5.x86_64.rpm                                                                       4.1 MB/s | 1.1 MB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                        3.1 MB/s | 2.4 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                     1/1 
  Running scriptlet: python3-cloud-what-1.28.21-5.el8_5.x86_64                                                                                           1/1 
  Upgrading        : python3-cloud-what-1.28.21-5.el8_5.x86_64                                                                                          1/10 
  Upgrading        : subscription-manager-rhsm-certificates-1.28.21-5.el8_5.x86_64                                                                      2/10 
  Upgrading        : python3-subscription-manager-rhsm-1.28.21-5.el8_5.x86_64                                                                           3/10 
  Upgrading        : python3-syspurpose-1.28.21-5.el8_5.x86_64                                                                                          4/10 
  Running scriptlet: subscription-manager-1.28.21-5.el8_5.x86_64                                                                                        5/10 
  Upgrading        : subscription-manager-1.28.21-5.el8_5.x86_64                                                                                        5/10 
  Running scriptlet: subscription-manager-1.28.21-5.el8_5.x86_64                                                                                        5/10 
  Running scriptlet: subscription-manager-1.28.21-3.el8.x86_64                                                                                          6/10 
  Cleanup          : subscription-manager-1.28.21-3.el8.x86_64                                                                                          6/10 
  Running scriptlet: subscription-manager-1.28.21-3.el8.x86_64                                                                                          6/10 
  Cleanup          : python3-syspurpose-1.28.21-3.el8.x86_64                                                                                            7/10 
  Cleanup          : python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64                                                                             8/10 
  Cleanup          : python3-cloud-what-1.28.21-3.el8.x86_64                                                                                            9/10 
  Cleanup          : subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64                                                                       10/10 
  Running scriptlet: subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64                                                                       10/10 
  Verifying        : python3-cloud-what-1.28.21-5.el8_5.x86_64                                                                                          1/10 
  Verifying        : python3-cloud-what-1.28.21-3.el8.x86_64                                                                                            2/10 
  Verifying        : python3-subscription-manager-rhsm-1.28.21-5.el8_5.x86_64                                                                           3/10 
  Verifying        : python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64                                                                             4/10 
  Verifying        : python3-syspurpose-1.28.21-5.el8_5.x86_64                                                                                          5/10 
  Verifying        : python3-syspurpose-1.28.21-3.el8.x86_64                                                                                            6/10 
  Verifying        : subscription-manager-1.28.21-5.el8_5.x86_64                                                                                        7/10 
  Verifying        : subscription-manager-1.28.21-3.el8.x86_64                                                                                          8/10 
  Verifying        : subscription-manager-rhsm-certificates-1.28.21-5.el8_5.x86_64                                                                      9/10 
  Verifying        : subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64                                                                       10/10 
Installed products updated.
Last metadata expiration check: 0:01:16 ago on Thu 17 Feb 2022 05:33:47 PM EST.

Upgraded:
  python3-cloud-what-1.28.21-5.el8_5.x86_64     python3-subscription-manager-rhsm-1.28.21-5.el8_5.x86_64        python3-syspurpose-1.28.21-5.el8_5.x86_64  
  subscription-manager-1.28.21-5.el8_5.x86_64   subscription-manager-rhsm-certificates-1.28.21-5.el8_5.x86_64  

Complete!

>> Testing:

>> `yum repolist`
2022-02-17 17:35:36,670 [DEBUG] yum:15904:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:35:37,134 [DEBUG] yum:15904:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:35:37,671 [DEBUG] yum:15904:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:35:38,071 [DEBUG] yum:15904:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:35:38,965 [DEBUG] yum:15904:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release

>> `yum clean all`
2022-02-17 17:38:06,672 [DEBUG] yum:15908:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:38:07,145 [DEBUG] yum:15908:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:38:07,747 [DEBUG] yum:15908:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:38:08,471 [DEBUG] yum:15908:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:38:09,628 [DEBUG] yum:15908:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release

>> `yum install vim -y`
2022-02-17 17:41:35,290 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:41:35,735 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:41:36,284 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:41:36,779 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:41:37,777 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:42:17,313 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:42:17,664 [DEBUG] yum:16770:MainThread @connection.py:710 - Making request: PUT /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/profiles

>> `yum remove vim -y`
2022-02-17 17:42:36,381 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/certificates/serials
2022-02-17 17:42:36,751 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:42:37,323 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/accessible_content
2022-02-17 17:42:37,758 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/content_overrides
2022-02-17 17:42:38,768 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: GET /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/release
2022-02-17 17:42:48,889 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: GET /subscription/status
2022-02-17 17:42:49,261 [DEBUG] yum:17276:MainThread @connection.py:710 - Making request: PUT /subscription/consumers/e8c35441-b68b-4f4f-a18a-3d7d3c95043a/profiles

>> Visibly reduced calls to accessible_content and content_overrides. LGTM, Verified.

Comment 9 errata-xmlrpc 2022-03-15 10:23:26 UTC
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 (subscription-manager bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2022:0897