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 2221709 - Entitlement certificate related errors logged in /var/log/rhsm/rhsm.log when simple content access enabled. [rhel-8.8.0.z]
Summary: Entitlement certificate related errors logged in /var/log/rhsm/rhsm.log when ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.8
Assignee: Pino Toscano
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1982670
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-10 15:49 UTC by RHEL Program Management Team
Modified: 2024-10-01 19:16 UTC (History)
12 users (show)

Fixed In Version: subscription-manager-1.28.36.1-1.el8_8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1982670
Environment:
Last Closed: 2023-11-28 15:36:52 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 3337 0 None open [1.28.36] 2221709: do not collect unentitled products in SCA mode 2023-08-31 10:18:32 UTC
Red Hat Issue Tracker RHELPLAN-161897 0 None None None 2023-07-10 16:01:24 UTC
Red Hat Knowledge Base (Solution) 7016350 0 None None None 2023-07-10 15:49:16 UTC
Red Hat Product Errata RHBA-2023:7537 0 None None None 2023-11-28 15:36:55 UTC

Comment 1 Zdenek Petracek 2023-09-08 16:17:46 UTC
Pre-verification done on SUBMAN version:
[root@kvm-02-guest10 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 4.3.7-2
subscription management rules: 5.44
subscription-manager: 1.28.36+11.gb5e681c05-1.git.0.cc90e52
[root@kvm-02-guest10 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Unknown

System Purpose Status: Unknown


Registering an account with SCA enabled
[root@kvm-02-guest10 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: zpetracek
Password: 
The system has been registered with ID: efdceb05-98bb-434a-aee2-d760ba1e74cc
The registered system name is: kvm-02-guest10.rhts.eng.brq.redhat.com


[root@kvm-02-guest10 ~]# ls /etc/pki/product-default/
479.pem

[root@kvm-02-guest10 ~]# yum update -y

After updating certificates, no error message was shown as follows:
...
2023-09-08 18:03:55,899 [DEBUG] subscription-manager:17241:MainThread @connection.py:779 - Making request: GET /subscription/consumers/07c8afc8-e782-4cfb-bb92-3623add54a18/certificates?serials=951381933255591752
2023-09-08 18:03:56,802 [DEBUG] subscription-manager:17241:MainThread @connection.py:884 - Response time: 0.6355688571929932, Smoothed response time: 0.4077358908653259
2023-09-08 18:03:56,902 [DEBUG] subscription-manager:17241:MainThread @connection.py:861 - Response: status=200, requestUuid=f10b0b7f-3e34-477f-a3e1-9e3d1fdf2a05, request="GET /subscription/consumers/07c8afc8-e782-4cfb-bb92-3623add54a18/certificates?serials=951381933255591752"
2023-09-08 18:03:56,904 [DEBUG] subscription-manager:17241:MainThread @entcertlib.py:400 - Ent cert bundle pre_install
2023-09-08 18:03:56,949 [DEBUG] subscription-manager:17241:MainThread @certdirectory.py:386 - Writing key file: '/etc/pki/entitlement/951381933255591752-key.pem'
2023-09-08 18:03:56,950 [DEBUG] subscription-manager:17241:MainThread @certdirectory.py:391 - Writing certificate file: '/etc/pki/entitlement/951381933255591752.pem'
2023-09-08 18:03:56,950 [DEBUG] subscription-manager:17241:MainThread @entcertlib.py:422 - ent cert bundle post_install
2023-09-08 18:03:56,950 [DEBUG] subscription-manager:17241:MainThread @entcertlib.py:351 - cert bundles post_install: <rhsm.certificate2.EntitlementCertificate object at 0x7fae597fba58>
2023-09-08 18:03:56,950 [INFO] subscription-manager:17241:MainThread @entcertlib.py:132 - certs updated:
Total updates: 1
...
^^ Pre-verification PASSED

Comment 2 Zdenek Petracek 2023-09-11 09:54:25 UTC
(In reply to Zdenek Petracek from comment #1)
> After updating certificates, no error message was shown as follows:
> ...
> 2023-09-08 18:03:55,899 [DEBUG] subscription-manager:17241:MainThread
> @connection.py:779 - Making request: GET
> /subscription/consumers/07c8afc8-e782-4cfb-bb92-3623add54a18/
> certificates?serials=951381933255591752
> 2023-09-08 18:03:56,802 [DEBUG] subscription-manager:17241:MainThread
> @connection.py:884 - Response time: 0.6355688571929932, Smoothed response
> time: 0.4077358908653259
> 2023-09-08 18:03:56,902 [DEBUG] subscription-manager:17241:MainThread
> @connection.py:861 - Response: status=200,
> requestUuid=f10b0b7f-3e34-477f-a3e1-9e3d1fdf2a05, request="GET
> /subscription/consumers/07c8afc8-e782-4cfb-bb92-3623add54a18/
> certificates?serials=951381933255591752"
> 2023-09-08 18:03:56,904 [DEBUG] subscription-manager:17241:MainThread
> @entcertlib.py:400 - Ent cert bundle pre_install
> 2023-09-08 18:03:56,949 [DEBUG] subscription-manager:17241:MainThread
> @certdirectory.py:386 - Writing key file:
> '/etc/pki/entitlement/951381933255591752-key.pem'
> 2023-09-08 18:03:56,950 [DEBUG] subscription-manager:17241:MainThread
> @certdirectory.py:391 - Writing certificate file:
> '/etc/pki/entitlement/951381933255591752.pem'
> 2023-09-08 18:03:56,950 [DEBUG] subscription-manager:17241:MainThread
> @entcertlib.py:422 - ent cert bundle post_install
> 2023-09-08 18:03:56,950 [DEBUG] subscription-manager:17241:MainThread
> @entcertlib.py:351 - cert bundles post_install:
> <rhsm.certificate2.EntitlementCertificate object at 0x7fae597fba58>
> 2023-09-08 18:03:56,950 [INFO] subscription-manager:17241:MainThread
> @entcertlib.py:132 - certs updated:
> Total updates: 1
> ...
> ^^ Pre-verification PASSED

This piece of /var/log/rhsm/rhsm.log shows better that certificates were updated and no error was shown:
2023-09-11 11:53:17,382 [WARNING] yum:17307:MainThread @logutil.py:170 - logging already initialized
2023-09-11 11:53:17,794 [INFO] yum:17307:MainThread @productid.py:542 - Updating product db with 479 -> rhel-8-for-x86_64-baseos-rpms
2023-09-11 11:53:17,795 [INFO] yum:17307:MainThread @productid.py:542 - Updating product db with 479 -> rhel-8-for-x86_64-appstream-rpms

Comment 8 Zdenek Petracek 2023-09-15 09:52:57 UTC
Pre-verification done on SUBMAN version:
[root@kvm-02-guest03 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 4.3.7-2
subscription management rules: 5.44
subscription-manager: 1.28.36.1-1.el8_8

[root@kvm-02-guest03 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.8 (Ootpa)

[root@kvm-02-guest03 ~]# subscription-manager syspurpose --show
{}

[root@kvm-02-guest03 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: sca_test
Password: 
The system has been registered with ID: 17b7d702-2f2f-4865-b5e3-e76c8c674dc5
The registered system name is: kvm-02-guest03.rhts.eng.brq.redhat.com

[root@kvm-02-guest03 ~]# 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

[root@kvm-02-guest03 ~]# ls /etc/pki/product-default/
479.pem

[root@kvm-02-guest03 ~]# yum update -y
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                34 MB/s |  63 MB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                             32 MB/s |  59 MB     00:01    
Dependencies resolved.
...
Installed:
  grub2-tools-efi-1:2.02-148.el8_8.1.x86_64                 kernel-4.18.0-477.21.1.el8_8.x86_64               kernel-core-4.18.0-477.21.1.el8_8.x86_64              
  kernel-modules-4.18.0-477.21.1.el8_8.x86_64              

Complete!


[root@kvm-02-guest03 ~]# cat /var/log/rhsm/rhsm.log
...
2023-09-15 11:51:09,334 [WARNING] yum:17810:MainThread @logutil.py:170 - logging already initialized
2023-09-15 11:51:09,876 [INFO] yum:17810:MainThread @productid.py:542 - Updating product db with 479 -> rhel-8-for-x86_64-baseos-rpms
2023-09-15 11:51:09,876 [INFO] yum:17810:MainThread @productid.py:542 - Updating product db with 479 -> rhel-8-for-x86_64-appstream-rpms
^^ No error-message wa shown here and the content was successfully reached

Comment 12 errata-xmlrpc 2023-11-28 15:36:52 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 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-2023:7537


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