Bug 1948943 - (release-4.8) Limit the number of collected pods in the workloads gatherer
Summary: (release-4.8) Limit the number of collected pods in the workloads gatherer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.8.0
Assignee: Tomas Remes
QA Contact: Pavel Šimovec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-13 06:38 UTC by Tomas Remes
Modified: 2021-07-27 23:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:59:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift insights-operator pull 396 0 None open Bug 1948943: Workloads - Add limit for the number of pods gathered 2021-04-13 06:44:42 UTC
Github openshift insights-operator pull 404 0 None open Bug 1948943: Make the pods limit in the workload gatherer more accurate 2021-04-19 13:17:28 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:00:11 UTC

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


Note You need to log in before you can comment on or make changes to this bug.