Bug 1811737 - openshift-apiserver audit logs malformed causing must-gather e2e flakes
Summary: openshift-apiserver audit logs malformed causing must-gather e2e flakes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-apiserver
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.5.0
Assignee: Stefan Schimanski
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-09 16:24 UTC by Sally
Modified: 2023-09-14 05:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:19:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:19:41 UTC

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


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