Bug 2030320

Summary: System Purpose status is not being displayed after subscription-manager-cockpit updated to match the current cockpit style
Product: Red Hat Enterprise Linux 9 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WORKSFORME QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 9.0CC: arpandey, candlepin-bugs, jhnidek, redakkan, rhsm-qe
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2028565 Environment:
Last Closed: 2021-12-13 11:20:18 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: 2028565    
Bug Blocks:    

Description Rehana 2021-12-08 13:22:53 UTC
+++ This bug was initially created as a clone of Bug #2028565 +++

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 1 Jiri Hnidek 2021-12-13 11:20:18 UTC
Hi,
This bug is specific only for subscription-manager-1.28 branch. I'm closing this BZ bug report, because cockpit works as expected for main branch (rhel9).

Jiri