Bug 1944065

Summary: [VPA] recommender is logging errors for pods with init containers
Product: OpenShift Container Platform Reporter: Weinan Liu <weinliu>
Component: NodeAssignee: Joel Smith <joelsmith>
Node sub component: Autoscaler (HPA, VPA) QA Contact: Weinan Liu <weinliu>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: ableisch, anisal, aos-bugs, cruhm, dkiselev, joelsmith, nagrawal, ncarmich, rbennett
Version: 4.6.z   
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:46:21 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:
Bug Depends On:    
Bug Blocks: 2102947    

Comment 7 Robert Bennett 2022-02-22 21:47:41 UTC
The customer in Case 03150314 is also impacted by this.

Customer reports see a large number of errors in the log their Vertical Pod Autoscaler Recommender pod (806 errors repeating every minute) on both their 4.8.29 cluster, as well as a 4.7.18 cluster as follows:

W0214 08:46:47.635067       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-grafana cool-custom-grafana-cool-8d45cd84d-wfs9p} POD}: KeyError: {{cool-grafana cool-custom-grafana-cool-8d45cd84d-wfs9p} POD}
W0214 08:46:47.635077       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-grafana cool-custom-grafana-cool-8d45cd84d-wfs9p} POD}: KeyError: {{cool-grafana cool-custom-grafana-cool-8d45cd84d-wfs9p} POD}
W0214 08:46:47.635099       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-sealed-secrets sealed-secrets-controller-5f65c6d476-tllqh} POD}: KeyError: {{cool-sealed-secrets sealed-secrets-controller-5f65c6d476-tllqh} POD}
W0214 08:46:47.635106       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-sealed-secrets sealed-secrets-controller-5f65c6d476-tllqh} POD}: KeyError: {{cool-sealed-secrets sealed-secrets-controller-5f65c6d476-tllqh} POD}
W0214 08:46:47.635111       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-sysdig sysdig-agent-2tjzr} POD}: KeyError: {{cool-sysdig sysdig-agent-2tjzr} POD}
W0214 08:46:47.635116       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-sysdig sysdig-agent-2tjzr} POD}: KeyError: {{cool-sysdig sysdig-agent-2tjzr} POD}
W0214 08:46:47.635132       1 cluster_feeder.go:417] Error adding metric sample for container {{cool-sysdig sysdig-agent-96pvs} POD}: KeyError: {{cool-sysdig sysdig-agent-96pvs} POD}

sosreports and a must-gather have been attached to the case.

Are there any workarounds to suppress these error messages?  Any progress on a permanent solution?

Comment 20 Weinan Liu 2022-08-05 07:37:55 UTC
http://external-ci-coldstorage.datahub.redhat.com/cvp/cvp-redhat-operator-bundle-image-validation-test/
https://brewweb.engineering.redhat.com/brew/packageinfo?packageID=74647

Hi Joel, 
no report found for 4.12, could you help to check if we got the image built for 4.12?

Comment 22 Weinan Liu 2022-08-09 05:09:00 UTC
I'll put this back to assigned till the 4.12 build ready

Comment 24 Weinan Liu 2022-10-26 07:35:14 UTC
Working in 4.12 now, as per comment #23

Comment 27 errata-xmlrpc 2023-01-17 19:46:21 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.12.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:7399