Bug 1979323

Summary: subscription component shows red X when SCA is enabled, should show gray or green icon
Product: Red Hat Enterprise Linux 8 Reporter: Chris Duryee <cduryee>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: arpandey, jhnidek, jsefler, redakkan
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.28.24-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2022791 (view as bug list) Environment:
Last Closed: 2022-05-10 15:22:56 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: 2022791    
Attachments:
Description Flags
screenshot of issue none

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