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 1979323 - subscription component shows red X when SCA is enabled, should show gray or green icon
Summary: subscription component shows red X when SCA is enabled, should show gray or g...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 2022791
TreeView+ depends on / blocked
 
Reported: 2021-07-05 15:32 UTC by Chris Duryee
Modified: 2022-05-10 16:39 UTC (History)
4 users (show)

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


Attachments (Terms of Use)
screenshot of issue (61.19 KB, image/png)
2021-07-05 15:32 UTC, Chris Duryee
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2783 0 None Merged 1979323: Cockpit - do not show red red icon in SCA mode 2021-11-12 14:11:05 UTC
Github candlepin subscription-manager pull 2863 0 None Merged [1.28] cockpit: backport FP4, new style, and new SCA display 2021-11-12 14:12:07 UTC
Red Hat Product Errata RHBA-2022:2047 0 None None None 2022-05-10 15:23:20 UTC

Description Chris Duryee 2021-07-05 15:32:46 UTC
Created attachment 1798204 [details]
screenshot of issue

Description of problem:

If you register a RHEL system with SCA and look at the cockpit subscription page, you'll get a red X next to the product listing (see screenshot).

This indicates that the user needs to take some action. However, there is no action to take.

The icon should likely be gray or green, to show that nothing needs to happen.


Version-Release number of selected component (if applicable): subscription-manager-cockpit-1.28.13-3.el8_4.noarch


How reproducible: every time


Steps to Reproduce:
1. register system with SCA
2. go to https://system:9090/subscriptions
3. look at installed products

Actual results: installed product has red X


Expected results: installed product should be green or gray

Comment 1 Rehana 2021-07-08 10:35:38 UTC
Related to Bug 1951830

Comment 2 Jiri Hnidek 2021-09-16 13:28:33 UTC
Hi,
The Cockpit UI has changed little bit since this bug report has been created. Currently when non-SCA mode is used, then green "Subscribed" and "Not Subscribed" text is printed in the header of each product.

So the fix for this issue simple doesn't print "Subscribed" or "Not Subscribed" in the headers of installed product, when SCA mode is used. You can see more details on screenshots in this PR here: https://github.com/candlepin/subscription-manager/pull/2783

Jiri

Comment 3 Rehana 2021-11-09 14:17:03 UTC
Reproducing the failure : PFA the screenshot (reproducer.png) 

Pre-verifying the fix on : 

# 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.22-1.git.62.085fd3a.el8

In SCA mode we no longer show installed product status in cockpit and CLI ; the Red icon in the cockpit UI is also removed. (PFA : Pre-verification)

Based on the above observation, setting verified:tested

Comment 11 Archana Pandey 2021-12-09 14:38:18 UTC
Re-producing issue on subscription-manager-1.28.21-3.el8.x86_64 PFA  :  attachment 1845479 [details]

Verifying fix on subscription-manager-1.28.24-1.el8.x86_64 
Beaker Test information:
                         HOSTNAME=kvm-07-guest02.hv2.lab.eng.bos.redhat.com
                            JOBID=6079816
                         RECIPEID=11115710
                    RESULT_SERVER=
                           DISTRO=RHEL-8.6.0-20211208.3
                     ARCHITECTURE=x86_64

root@kvm-07-guest02 ~]# 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-07-guest02 ~]# 
[root@kvm-07-guest02 ~]# rpm -qa --changelog subscription-manager| grep 1979323
- 1979323: Cockpit - do not show red red icon in SCA mode (jhnidek)
[root@kvm-07-guest02 ~]# 
[root@kvm-07-guest02 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled

[root@kvm-07-guest02 ~]# 
[root@kvm-07-guest02 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID:   486
Version:      8.6 Beta
Arch:         x86_64

[root@kvm-07-guest02 ~]# 
[root@kvm-07-guest02 ~]

PFA for status of cockpit subscriptions page: attachment 1845480 [details]

Actual Results: In SCA mode, installed product status is not being shown in cockpit and CLI, also the Red icon from the cockpit web page is also removed

Verification : PASSED

Comment 13 errata-xmlrpc 2022-05-10 15:22:56 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.