Bug 1811737

Summary: openshift-apiserver audit logs malformed causing must-gather e2e flakes
Product: OpenShift Container Platform Reporter: Sally <somalley>
Component: openshift-apiserverAssignee: Stefan Schimanski <sttts>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, maszulik, mfojtik
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:19:06 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 Sally 2020-03-09 16:24:32 UTC
openshift-apiserver not correctly flushing its audit log to disk or must-gather not correctly retrieving content

Comment 2 Maru Newby 2020-03-09 21:07:14 UTC
Is this separate from [1]? The outcome of the slack discussion was [2] and [3] which have already merged to master and release-4.4 respectively.


1: https://bugzilla.redhat.com/show_bug.cgi?id=1808568
2: https://bugzilla.redhat.com/show_bug.cgi?id=1808568
2: https://bugzilla.redhat.com/show_bug.cgi?id=1811636

Comment 4 Maciej Szulik 2020-03-11 09:22:42 UTC
This should be handled already in the PRs Maru mentioned in the previous comment.

Comment 7 Xingxing Xia 2020-04-29 11:59:06 UTC
Checked above links, the root cause was we didn't ensure single apiserver pod running on a master. The fix updates deployment YAML with rolling deployment and podAntiAffinity to ensure that. Verified in 4.5.0-0.nightly-2020-04-29-040854 env by repeatedly delete the openshift-apiserver pods to make them restart, meantime check:
[root@ip-10-0-135-23 /]# cd /var/log/
[root@ip-10-0-135-23 log]# grep -nrv '^{"kind":"Event"' openshift-apiserver
[root@ip-10-0-135-23 log]# grep -nr '  ' openshift-apiserver
The output is empty. No malformed log.

Comment 9 errata-xmlrpc 2020-07-13 17:19:06 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, 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-2020:2409

Comment 10 Red Hat Bugzilla 2023-09-14 05:54:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days