Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2028565

Summary: System Purpose status is not being displayed after subscription-manager-cockpit updated to match the current cockpit style
Product: Red Hat Enterprise Linux 8 Reporter: Archana Pandey <arpandey>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 8.6CC: cdonnell, jhnidek, redakkan
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.28.25-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2030320 (view as bug list) Environment:
Last Closed: 2022-05-10 15:22:58 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: 2030320    
Attachments:
Description Flags
System Purpose status is empty none

Description Archana Pandey 2021-12-02 15:58:38 UTC
Created attachment 1844490 [details]
System Purpose status is empty

Description of problem:
After Updating subscription-manager-cockpit to match the current cockpit style https://bugzilla.redhat.com/show_bug.cgi?id=1999866 , System Purpose Status is not being displayed in the subscriptions cockpit page. 


Version-Release number of selected component (if applicable):

[root@kvm-01-guest12 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.24-1.el8
[root@kvm-01-guest12 ~]# 



How reproducible:


Steps to Reproduce:
set the value of syspurpose attibute through CLI and check the updated cockpit page in browser

[root@kvm-01-guest12 ~]# subscription-manager syspurpose role --set "Red Hat Enterprise Linux Server"
role set to "Red Hat Enterprise Linux Server".

[root@kvm-01-guest12 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

Red Hat Enterprise Linux for x86_64 Beta:
- Not supported by a valid subscription.

System Purpose Status: Mismatched          <<<<<<<<<<<<< status displayed on CLI
- The requested role "Red Hat Enterprise Linux Server" is not provided by a currently consumed subscription.
- The requested usage preference "Production" is not provided by a currently consumed subscription.
- The service level preference "Self-Support" is not provided by a currently consumed subscription.

Open the cockpit browser https://hostname:9090, In the attached snap System Purpose Status field is empty

Actual results:
System Purpose Status field is empty in cockpit browser

Expected results:
System Purpose Status should be displayed

Additional info:

Comment 3 Archana Pandey 2021-12-28 08:36:21 UTC
Pre-verifying on jenkins build - subscription-manager-1.28.24-1.git.48.018ca2f.el8.x86_64

[root@hpe-dl380pgen8-02-vm-6 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.24-1.git.48.018ca2f.el8
[root@hpe-dl380pgen8-02-vm-6 ~]# 
[root@hpe-dl380pgen8-02-vm-6 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Matched

[root@hpe-dl380pgen8-02-vm-6 ~]# 

System purpose status displayed on cockpit subscriptions page attachment 1848056 [details]
system purpose status displayed on cockpit page for account with sca mode - attachment 1848055 [details]


Based on the above observations, setting verified field to tested.

Comment 8 Archana Pandey 2022-01-25 13:13:41 UTC
verifying on subscription-manager-1.28.25-1.el8.x86_64

[root@kvm-02-guest14 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.22-1
subscription management rules: 5.41
subscription-manager: 1.28.25-1.el8
[root@kvm-02-guest14 ~]#
[root@kvm-02-guest14 ~]# subscription-manager syspurpose --show
{
  "addons": [],
  "role": "Red Hat Enterprise Linux Server",
  "service_level_agreement": "Self-Support",
  "usage": "Development/Test"
}
[root@kvm-02-guest14 ~]# 
[root@kvm-02-guest14 ~]# 
[root@kvm-02-guest14 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Matched

lets check status on cockpit for all three possibilities for system purpose status i.e.  <Matched/Mismatched/Not Specified>  attachment 1853353 [details]

Verification : PASSED

Comment 10 errata-xmlrpc 2022-05-10 15:22:58 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 and enhancement 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-2022:2047