Bug 2022791

Summary: subscription component shows red X when SCA is enabled, should show gray or green icon
Product: Red Hat Enterprise Linux 9 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: arpandey, cduryee, jhnidek, jsefler, redakkan, rhsm-qe
Target Milestone: rcKeywords: Triaged
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.29.21-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1979323 Environment:
Last Closed: 2022-05-17 15:58:19 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: 1979323    
Bug Blocks:    

Comment 1 Rehana 2021-11-16 11:02:33 UTC
Reproducing the failure : PFA the screenshot (RHEL9-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.29.21-1.git.0.d3fb25b.el9

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 : RHEL9-Pre-verification)

Based on the above observation, setting verified:tested

Comment 9 Archana Pandey 2021-12-09 11:29:46 UTC
Re-producing issue on subscription-manager-1.29.18-2.el9.x86_64 PFA  : attachment 1845442 [details]

Verifying fix on subscription-manager-1.29.21-1.el9.x86_64 

[root@kvm-01-guest22 ~]# rpm -qa --changelog subscription-manager | grep 1979323
- 1979323: Cockpit - do not show red red icon in SCA mode (jhnidek)

[root@kvm-01-guest22 ~]# 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-01-guest22 ~]# subscription-manager list --installed 
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID:   486
Version:      9.0 Beta
Arch:         x86_64

PFA for cockpit subscriptions page: attachment 1845443 [details] 

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

Verification : PASSED

Comment 11 errata-xmlrpc 2022-05-17 15:58:19 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 (new packages: subscription-manager), 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:3984