Bug 1913725

Summary: Refactor Insights Operator Plugin states
Product: OpenShift Container Platform Reporter: Georgii Karataev <gkaratae>
Component: Management ConsoleAssignee: Georgii Karataev <gkaratae>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: show Unavailable state in Insights Operator Plugin for OCP WebConsole when Insights Operator is disabled or an error occurred Reason: before Insights Operator Plugin was showing "0 issues found" with OK state when Insights Operator was disabled or an error occurred. Result: changed state icons and title for these two states and enhanced user experience.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:50:58 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:
Attachments:
Description Flags
Insights tab shows not available and question icon none

Description Georgii Karataev 2021-01-07 13:37:13 UTC
Description of problem:

When insights-operator is removed, the secret is removed or any other reason we stop receiving data we should display question mark icon in the Insights tab.

Comment 2 Yadan Pei 2021-01-18 07:53:27 UTC
Created attachment 1748380 [details]
Insights tab shows not available and question icon

1. Set insights operator unmanaged
$ oc get -o json clusterversion version | jq .spec.overrides
[
  {
    "group": "apps/v1",
    "kind": "Deployment",
    "name": "insights-operator",
    "namespace": "openshift-insights",
    "unmanaged": true
  }
]

2. Scale deployment replicas to 0 and check Insights tab, it is showing 'Not available' with question mark

Verified on 4.7.0-0.nightly-2021-01-17-153039

Comment 5 errata-xmlrpc 2021-02-24 15:50: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 (Moderate: OpenShift Container Platform 4.7.0 security, 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/RHSA-2020:5633