Bug 2221709
| Summary: | Entitlement certificate related errors logged in /var/log/rhsm/rhsm.log when simple content access enabled. [rhel-8.8.0.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | RHEL Program Management Team <pgm-rhel-tools> |
| Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 8.4 | CC: | ahumbe, dhjoshi, jsefler, jstavel, pbadguja, peter.vreman, redakkan, saydas, shughes, snarya, tasander, zpetrace |
| Target Milestone: | rc | Keywords: | Triaged, ZStream |
| Target Release: | 8.8 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.28.36.1-1.el8_8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1982670 | Environment: | |
| Last Closed: | 2023-11-28 15:36:52 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: | 1982670 | ||
| Bug Blocks: | |||
|
Comment 1
Zdenek Petracek
2023-09-08 16:17:46 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 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
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 |