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 - System Purpose status is not being displayed after subscription-manager-cockpit updated to match the current cockpit style
Summary: System Purpose status is not being displayed after subscription-manager-cockp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.6
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: 8.6
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 2030320
TreeView+ depends on / blocked
 
Reported: 2021-12-02 15:58 UTC by Archana Pandey
Modified: 2022-05-10 16:39 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.28.25-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2030320 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:22:58 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
System Purpose status is empty (109.95 KB, image/png)
2021-12-02 15:58 UTC, Archana Pandey
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2911 0 None Merged [1.28] Extended D-Bus API - syspurpose methods; ENT-2373 2022-01-17 15:32:03 UTC
Red Hat Issue Tracker RHELPLAN-104604 0 None None None 2021-12-02 16:56:43 UTC
Red Hat Product Errata RHBA-2022:2047 0 None None None 2022-05-10 15:23:17 UTC

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


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