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 1999048 - Status of installed product is shown as "Not subscribed" when the system is actually "Partially subscribed"
Summary: Status of installed product is shown as "Not subscribed" when the system is a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: subscription-manager
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.0
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 2000326
TreeView+ depends on / blocked
 
Reported: 2021-08-30 10:25 UTC by Rehana
Modified: 2022-05-17 16:29 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.29.23-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2000326 (view as bug list)
Environment:
Last Closed: 2022-05-17 15:58:12 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
unsubscribed (1.71 MB, image/png)
2021-08-30 10:25 UTC, Rehana
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2893 0 None Merged 1999048: Fixed partially subscribed product in Cockpit plugin 2021-12-06 12:16:44 UTC
Red Hat Issue Tracker RHELPLAN-95570 0 None None None 2021-08-30 10:26:48 UTC
Red Hat Product Errata RHBA-2022:3984 0 None None None 2022-05-17 15:58:22 UTC

Description Rehana 2021-08-30 10:25:52 UTC
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:

Comment 3 Archana Pandey 2021-12-13 10:28:49 UTC
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.

Comment 6 Archana Pandey 2022-02-02 06:44:56 UTC
Created attachment 1858554 [details]
subscription status on cockpit displayed coreectly

Comment 7 Archana Pandey 2022-02-02 06:48:18 UTC
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

Comment 9 errata-xmlrpc 2022-05-17 15:58:12 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 (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


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