Bug 2169976

Summary: subscription-manager-cockpit: An application gets frozen with 'Checking installed software' and red Oops at the top bar
Product: Red Hat Enterprise Linux 9 Reporter: Rehana <redakkan>
Component: subscription-manager-cockpitAssignee: Pino Toscano <ptoscano>
Status: CLOSED ERRATA QA Contact: Jan Stavel <jstavel>
Severity: medium Docs Contact:
Priority: high    
Version: 9.2CC: arpandey, jstavel, ptoscano, redakkan, rhsm-qe
Target Milestone: rcKeywords: Triaged
Target Release: 9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-cockpit-6-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2168576 Environment:
Last Closed: 2023-05-09 08:24:42 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:
Deadline: 2023-02-21   

Description Rehana 2023-02-15 09:37:32 UTC
+++ This bug was initially created as a clone of Bug #2168576 +++

rhel8.8

[root@kvm-02-guest06 yum.repos.d]# rpm -qa | egrep 'cockpit|subscription|insights|syspurpose'
python3-syspurpose-1.28.35-1.el8.x86_64
python3-subscription-manager-rhsm-1.28.35-1.el8.x86_64
subscription-manager-1.28.35-1.el8.x86_64
cockpit-bridge-284-1.el8.x86_64
cockpit-system-284-1.el8.noarch
subscription-manager-rhsm-certificates-1.28.35-1.el8.x86_64
cockpit-ws-284-1.el8.x86_64
subscription-manager-cockpit-1.28.35-1.el8.noarch
dnf-plugin-subscription-manager-1.28.35-1.el8.x86_64


dnf remove insights-client

run firefox and open cockpit app

try to register a system and you will see 'A package insights-client will installed'

after you click on a 'Register' button you will see a message 'Checking installed software' with a rotating circle and red 'Oops' will appear on the top bar of the application.

The application gets frozen in this state.

I will attach js console.log and a piece of the source code the error has arisen from.


--- Additional comment from Pino Toscano on 2023-02-09 13:32:19 UTC ---

I *think* this issue could be what was fixed by
https://github.com/candlepin/subscription-manager-cockpit/pull/37
(only in subscription-manager-cockpit, fixed in 9.2)

If that's the case, you should not get the issue when doing the same steps in 9.2.

--- Additional comment from Pino Toscano on 2023-02-14 15:01:16 UTC ---

(In reply to Pino Toscano from comment #5)
> I *think* this issue could be what was fixed by
> https://github.com/candlepin/subscription-manager-cockpit/pull/37
> (only in subscription-manager-cockpit, fixed in 9.2)

In addition to this, most likely we will need also
https://github.com/candlepin/subscription-manager-cockpit/pull/46

Comment 9 Archana Pandey 2023-02-27 15:42:49 UTC
Final verification: verifying against subscription-manager-cockpit-6-1.el9.noarch

 Beaker Test information:
                         HOSTNAME=kvm-01-guest10.lab.eng.rdu2.redhat.com
                            JOBID=7574897
                         RECIPEID=13463579
                    RESULT_SERVER=
                           DISTRO=RHEL-9.2.0-20230227.0
                     ARCHITECTURE=x86_64

[root@kvm-01-guest10 ~]#  rpm -qa | egrep "subscription|cockpit|insights"
subscription-manager-rhsm-certificates-20220623-1.el9.noarch
libdnf-plugin-subscription-manager-1.29.33-1.el9.x86_64
python3-subscription-manager-rhsm-1.29.33-1.el9.x86_64
subscription-manager-1.29.33-1.el9.x86_64
cockpit-bridge-286.1-1.el9.x86_64
cockpit-ws-286.1-1.el9.x86_64
cockpit-system-286.1-1.el9.noarch
subscription-manager-cockpit-6-1.el9.noarch
cockpit-packagekit-286.1-1.el9.noarch
cockpit-286.1-1.el9.x86_64
insights-client-3.1.7-12.el9.noarch
[root@kvm-01-guest10 ~]# 

Steps to verify:

1-Register the system using cockpit, enable check box for "Connect this system to insights"

Verified :  A box appears with error message instead of the application got stuck (with 'Oops' on the top bar)

Comment 12 errata-xmlrpc 2023-05-09 08:24:42 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-cockpit 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-2023:2555