Bug 1999048
Summary: | Status of installed product is shown as "Not subscribed" when the system is actually "Partially subscribed" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Rehana <redakkan> | ||||
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | ||||
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 9.0 | CC: | arpandey, jhnidek, jsefler | ||||
Target Milestone: | rc | Keywords: | Triaged | ||||
Target Release: | 9.0 | ||||||
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: | |||||||
: | 2000326 (view as bug list) | Environment: | |||||
Last Closed: | 2022-05-17 15:58:12 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 2000326 | ||||||
Attachments: |
|
Pre-verification: reproducer : on subscription-manager: 1.29.21-1.el9 Steps to Reproduce: [root@kvm-02-guest17 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.29.21-1.el9 [root@kvm-02-guest17 ~]# 1. Modify the system facts to create a partial subscription scenario as follow #echo '{"virt.is_guest":"False", "cpu.cpu_socket(s)":"4"}' > /etc/rhsm/facts/custom.facts 2. Register and attach only 2 quantity of the subscription [root@kvm-02-guest17 ~]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes): - Only supports 2 of 4 sockets. System Purpose Status: Not Specified [root@kvm-02-guest17 ~]# [root@kvm-02-guest17 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 9.0 Arch: x86_64 Status: Partially Subscribed <<<<<<<<<<<<<<<<<< partially subscribed status on cli Status Details: Only supports 2 of 4 sockets. Starts: 12/10/2021 Ends: 12/09/2022 Installed product status on CLI is displayed correctly , but the install product status on cockpit was show as "Not subscribed" ( PFA: attachment 1846023 [details]) ================================================================================================================================== Pre-verification steps: verifying on subscription-manager: 1.29.21-1.git.48.0160c7a.el9 [root@kvm-02-guest17 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.29.21-1.git.48.0160c7a.el9 [root@kvm-02-guest17 ~]# [root@kvm-02-guest17 ~]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes): - Only supports 2 of 4 sockets. System Purpose Status: Not Specified [root@kvm-02-guest17 ~]# [root@kvm-02-guest17 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 9.0 Arch: x86_64 Status: Partially Subscribed Status Details: Only supports 2 of 4 sockets. Starts: 12/10/2021 Ends: 12/09/2022 Actual Results: Installed product status on CLI and cockpit is shown as "Partially Subscribed" ( PFA: attachment 1846024 [details]) Expected results: It should be 'Partially Subscribed' Based on the above observation, setting verified field to tested. Created attachment 1858554 [details]
subscription status on cockpit displayed coreectly
Verifying on subscription-manager-1.29.23-1.el9.x86_64
Steps to verify:
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]# 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
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]# subscription-manager register --username rhel9GA --password ******
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: 89e66757-536e-48e1-b9e9-719139b6d492
The registered system name is: dell-per630-fc-01.dell2.lab.eng.bos.redhat.com
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64
Product ID: 479
Version: 9.0
Arch: x86_64
Status: Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]# subscription-manager attach --pool 8a99f9ac7e6e1db8017eb54725b41a35 --quantity 4
Successfully attached a subscription for: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64
Product ID: 479
Version: 9.0
Arch: x86_64
Status: Partially Subscribed <<<<<<<<<<< Partially subscribed
Status Details: Only supports 4 of 22 sockets.
Starts: 02/01/2022
Ends: 02/16/2022
[root@dell-per630-fc-01 ~]#
[root@dell-per630-fc-01 ~]# subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Insufficient
Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes):
- Only supports 4 of 22 sockets.
System Purpose Status: Not Specified
[root@dell-per630-fc-01 ~]#
Status on cockpit : attachment 1858554 [details]
Verification: PASSED
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 |
Created attachment 1819046 [details] unsubscribed Description of problem: Version-Release number of selected component (if applicable): # subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.2.20-1 subscription management rules: 5.41 subscription-manager: 1.29.18-2.el9 How reproducible: always Steps to Reproduce: 1.Modify the system facts to create a partial subscription scenario #echo '{"virt.is_guest":"False", "cpu.cpu_socket(s)":"22"}' > /etc/rhsm/facts/custom.facts 2. Register and attach only 4 quantity of the subscription 3.Installed product status on CLI is displayed correctly , but the install product status on cockpit was show as "Not subscribed" ( PFA: notsubscribed.png) # subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes): - Only supports 4 of 22 sockets. System Purpose Status: Not Specified # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 9.0 Arch: x86_64 Status: Partially Subscribed Status Details: Only supports 4 of 22 sockets. Starts: 08/05/2021 Ends: 08/04/2022 Actual results: Installed product status in cockpit is shown as 'Not subscribed (Not supported by a valid subscription)' Expected results: It should be 'Partially Subscribed' Additional info: