Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2061304

Summary: workload info gatherer - don't serialize empty images map
Product: OpenShift Container Platform Reporter: Tomas Remes <tremes>
Component: Insights OperatorAssignee: Tomas Remes <tremes>
Status: CLOSED ERRATA QA Contact: Joao Fula <jfula>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.11CC: aos-bugs, inecas, mklika, tremes
Target Milestone: ---   
Target Release: 4.11.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: 2022-08-10 10:52:44 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 2022-03-07 10:44:05 UTC
Description of problem:

When the Insights operator is not able to fetch the images (within provided time for example) from a cluster then the workload data looks like:

"{"pods":81,"imageCount":0,"images":null,"namespaces":..."

Having ""images":null" is not necessary since there's already imageCount 0. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Joao Fula 2022-03-09 13:55:41 UTC
Verified on 4.11.0-0.ci-2022-03-08-235257.
Insights Operator works as expected.

Comment 4 errata-xmlrpc 2022-08-10 10:52:44 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 (Important: OpenShift Container Platform 4.11.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-2022:5069