Bug 1988349

Summary: Insights report controller - set the corresponding clusteroperator condition correctly
Product: OpenShift Container Platform Reporter: Tomas Remes <tremes>
Component: Insights OperatorAssignee: Tomas Remes <tremes>
Status: CLOSED ERRATA QA Contact: Dmitry Misharov <dmisharo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, inecas, mklika, tremes
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:43:22 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:

Description Tomas Remes 2021-07-30 10:58:21 UTC
The insightsreport controller was trying to update the Insights Operator status, but it actually never happened, because the controller was not registered.

This BZ is to register the controller correctly and introduce a new "InsightsDownloadDegraded" state, when the Insights Operator is not able to download related Insights report from crc.

Comment 2 Dmitry Misharov 2021-08-06 08:58:09 UTC
Verified on 4.9.0-0.ci-2021-08-05-21304.

Verification steps:

1. Add a new entry into a "support" secret in "openshift-config" namespace:
reportEndpoint: http://example.com
2. Restart insights-operator
3. Wait until in the log the following appears: "Failed to download Insights report"
4. Check Insights cluster operator condition: "oc describe clusteroperator/insights"

There should be "InsightsDownloadDegraded" conditions type and its status is "True".

Comment 5 errata-xmlrpc 2021-10-18 17:43:22 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.9.0 bug fix and security 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-2021:3759