Bug 2028969
| Summary: | installed product status is not accurate | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 9.0 | CC: | jhnidek, redakkan |
| Target Milestone: | rc | Keywords: | Regression, Triaged |
| Target Release: | 9.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.29.23-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-17 15:58:31 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: | |||
|
Description
John Sefler
2021-12-03 20:30:07 UTC
Pre-Verification using subscription-manager-1.29.21-1.git.54.e56de33.el9.x86_64 which includes the merged pull request.
(unfortunately there is no changelog for the included fix in a CI build of this package)
[root@kvm-07-guest23 ~]# rpm -q subscription-manager
subscription-manager-1.29.21-1.git.54.e56de33.el9.x86_64
[root@kvm-07-guest23 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_rhsmqe_testuser01
Password:
The system has been registered with ID: 419918de-d1f1-4639-a82a-87223792e471
The registered system name is: kvm-07-guest23.hv2.lab.eng.bos.redhat.com
[root@kvm-07-guest23 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID: 486
Version: 9.0 Beta
Arch: x86_64
Status: Not Subscribed <========= CORRECT
Status Details: Not supported by a valid subscription. <========= CORRECT
Starts: <========= CORRECT
Ends: <========= CORRECT
[root@kvm-07-guest23 ~]# subscription-manager list --available --matches=486 --pool-only | tail -1
8a99f9ad7ac6855d017ae95d0ce00d8e
[root@kvm-07-guest23 ~]# subscription-manager attach --pool=8a99f9ad7ac6855d017ae95d0ce00d8e
Successfully attached a subscription for: Red Hat Beta Access
[root@kvm-07-guest23 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID: 486
Version: 9.0 Beta
Arch: x86_64
Status: Subscribed <========= CORRECT
Status Details: <========= CORRECT
Starts: 07/26/2021 <========= CORRECT
Ends: 07/25/2022 <========= CORRECT
[root@kvm-07-guest23 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Beta Access
Provides: Red Hat Enterprise Linux for Power, little endian Beta
Red Hat Enterprise Linux for ARM 64 Beta
Red Hat CodeReady Linux Builder for x86_64 Beta
Red Hat CodeReady Linux Builder for Power, little endian Beta
Red Hat Enterprise Linux for SAP HANA for Power, little endian Beta
Red Hat Enterprise Linux for x86_64 Beta <========== THIS PRODUCT IS INSTALLED
Red Hat Enterprise Linux Fast Datapath Beta for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64 Beta
Red Hat Enterprise Linux High Availability Beta
Red Hat CodeReady Linux Builder for IBM z Systems Beta
Red Hat Enterprise Linux for SAP Applications for x86_64 Beta
Red Hat Directory Server Beta
Red Hat Enterprise Linux for SAP Applications for Power, little endian Beta
Red Hat Enterprise Linux Resilient Storage Beta
Red Hat Enterprise Linux for IBM z Systems Beta
Red Hat Enterprise Linux for Real Time Beta
Red Hat Enterprise Linux for SAP Applications for IBM z Systems Beta
Red Hat Certificate System Beta
Red Hat Enterprise Linux for Real Time for NFV Beta
Red Hat Enterprise Linux Fast Datapath Beta for x86_64
Red Hat Enterprise Linux for SAP HANA for x86_64 Beta
Red Hat Enterprise Linux Advanced Virtualization Beta (for RHEL Server for IBM System Z)
SKU: RH00069
Contract: 12127446
Account: 6371032
Serial: 4988327914023697400
Pool ID: 8a99f9ad7ac6855d017ae95d0ce00d8e
Provides Management: No
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Self-Support
Usage:
Add-ons:
Status Details: Subscription is current <========= CORRECT
Subscription Type: Standard
Starts: 07/26/2021
Ends: 07/25/2022
Entitlement Type: Physical
PRE-VERIFIED: The status of an installed product is once again in sync with the attachment of a sku that provides for the installed product.
Verifying on :
==============
# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.22-1
subscription management rules: 5.41
subscription-manager: 1.29.23-1.el9
# rpm -qa subscription-manager --changelog | grep 2028969
- 2028969: Do not try to load compliance status from cache (jhnidek)
- 2028969: Do not try to load compliance status from cache (jhnidek)
# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: entitlement_rhsm_1
Password:
The system has been registered with ID: 2e6e1fd2-c469-4f79-b277-204a2424dfa3
The registered system name is: kvm-01-guest29.lab.eng.rdu2.redhat.com
# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID: 486
Version: 9.0 Beta
Arch: x86_64
Status: Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
# subscription-manager list --available --matches=486 --pool-only | tail -1
8a99f9ac7d4946d5017d567aee5c0437
# subscription-manager attach --pool=8a99f9ac7d4946d5017d567aee5c0437
Successfully attached a subscription for: Red Hat Beta Access
# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID: 486
Version: 9.0 Beta
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 11/25/2021
Ends: 11/24/2022
# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Beta Access
Provides: Red Hat Enterprise Linux for Power, little endian Beta
Red Hat Enterprise Linux for ARM 64 Beta
Red Hat CodeReady Linux Builder for x86_64 Beta
Red Hat CodeReady Linux Builder for Power, little endian Beta
Red Hat Enterprise Linux for SAP HANA for Power, little endian Beta
Red Hat Enterprise Linux for x86_64 Beta
Red Hat Enterprise Linux Fast Datapath Beta for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64 Beta
Red Hat CodeReady Linux Builder for IBM z Systems Beta
Red Hat Enterprise Linux High Availability Beta
Red Hat Enterprise Linux for SAP Applications for x86_64 Beta
Red Hat Directory Server Beta
Red Hat Enterprise Linux for IBM z Systems Beta
Red Hat Enterprise Linux Resilient Storage Beta
Red Hat Enterprise Linux for SAP Applications for Power, little endian Beta
Red Hat Enterprise Linux for Real Time Beta
Red Hat Enterprise Linux for SAP Applications for IBM z Systems Beta
Red Hat Certificate System Beta
Red Hat Enterprise Linux for Real Time for NFV Beta
Red Hat Enterprise Linux for SAP HANA for x86_64 Beta
Red Hat Enterprise Linux Fast Datapath Beta for x86_64
Red Hat Enterprise Linux Advanced Virtualization Beta (for RHEL Server for IBM System Z)
SKU: RH00069
Contract:
Account: 6378923
Serial: 201589573485825187
Pool ID: 8a99f9ac7d4946d5017d567aee5c0437
Provides Management: No
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Self-Support
Usage:
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 11/25/2021
Ends: 11/24/2022
Entitlement Type: Physical
Status details are now correctly displayed. Moving the bug to Verified!!
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 (new packages: subscription-manager), 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:3984 |