Bug 1948943

Summary: (release-4.8) Limit the number of collected pods in the workloads gatherer
Product: OpenShift Container Platform Reporter: Tomas Remes <tremes>
Component: Insights OperatorAssignee: Tomas Remes <tremes>
Status: CLOSED ERRATA QA Contact: Pavel Šimovec <psimovec>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.8CC: aos-bugs, inecas, mklika, tremes
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:59:54 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-04-13 06:38:31 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Pavel Šimovec 2021-04-19 10:04:40 UTC
At this moment it checks pods namespace by namespace. So the limit can be exceeded if we put all pods in one namespace. Otherwise, it stops collecting from other namespaces when the limit is exceeded, as expected.

{"pods":5561,"imageCount":0,"images":{},"namespaces":{"N6juwc4ZaH0T":{"count":5561,"terminalCount":362,"ignoredCount":4510,"invalidCount":689,"shapes":[]},"k2lPYOlQaXUX":{"count":0,"shapes":[]}}}

Comment 3 Tomas Remes 2021-04-19 13:16:55 UTC
Update required. Moving to POST to be able to use this BZ with the openshift-ci-robot

Comment 5 Pavel Šimovec 2021-04-23 07:27:07 UTC
In config/workloads.json
{"pods":3000,"imageCount":0,"images":{},"namespaces":{"N6juwc4ZaH0T":{"count":3000,"ignoredCount":3000,"shapes":[]}}}

Now the number of pods gathered in workloads gatherer is properly limited.
verified

Comment 8 errata-xmlrpc 2021-07-27 22:59:54 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.8.2 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:2438