Bug 2006654

Summary: http: superfluous response.WriteHeader call reported by cri-o while etcd was crashing
Product: OpenShift Container Platform Reporter: Simon Reber <sreber>
Component: NodeAssignee: Sascha Grunert <sgrunert>
Node sub component: CRI-O QA Contact: MinLi <minmli>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, dwalsh, sgrunert, tsweeney
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-02 11:57:37 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 Simon Reber 2021-09-22 06:37:51 UTC
Description of problem:

While investigating an outage of `etcd` in OpenShift Container Platform 4.7.28 the following messages were found.

> Sep 13 05:02:21 master02.example.com crio[1679]: 2021/09/13 05:01:57 http: superfluous response.WriteHeader call from github.com/cri-o/cri-o/server.(*Server).GetInfoMux.func3 (inspect.go:157)
> Sep 13 05:02:54 master02.example.com crio[1679]: 2021/09/13 05:02:53 http: superfluous response.WriteHeader call from github.com/cri-o/cri-o/server.(*Server).GetInfoMux.func3 (inspect.go:157)

It's not clear what happen and whether those are related to the `etcd` outage. But it would be nice to further investigate that messages as it seems `cri-o` was not working as expected and we need to understand the reason for this.

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

 - OpenShift Container Platform 4.7.28
 - cri-o-1.20.4-14.rhaos4.7.gitbce257b.el8.x86_64

How reproducible:

 - N/A

Steps to Reproduce:
1. N/A

Actual results:

It's not clear whether the messages above indicate that `cri-o` was misbehaving or if that is related to the problem OpenShift Container Platform was having.

Expected results:

No such message being reported by `cri-o` or at least with better explaining of what was/is happening.

Additional info:

Comment 3 Sascha Grunert 2021-10-14 11:03:45 UTC
Confirmed, a fix is incoming in https://github.com/cri-o/cri-o/pull/5405. Since the issue does not seem critical I'd like to avoid a backport and just resolve it on the main branch.

Comment 4 Sascha Grunert 2021-10-15 07:26:54 UTC
PR got merged, the latest CRI-O master does contain the fix.

Comment 12 errata-xmlrpc 2022-03-02 11:57:37 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 (OpenShift Container Platform 4.7.44 bug fix 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/RHBA-2022:0647