Bug 1780243 - Excess events written for file that exists, poorly formatted event message
Summary: Excess events written for file that exists, poorly formatted event message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-apiserver
Version: 4.2.z
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.2.z
Assignee: Michal Fojtik
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On: 1772190
Blocks: 1785610
TreeView+ depends on / blocked
 
Reported: 2019-12-05 15:09 UTC by Michal Fojtik
Modified: 2020-05-20 08:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1772190
Environment:
Last Closed: 2020-05-20 08:45:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift library-go pull 629 0 'None' closed Bug 1780243: certsyncpod: reduce amount of events produced by removing files 2020-11-09 12:58:32 UTC

Comment 2 Xingxing Xia 2019-12-30 10:38:42 UTC
Compare the way in https://bugzilla.redhat.com/show_bug.cgi?id=1772190#c3 , then test 4.2.0-0.nightly-2019-12-23-142304 env:
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.2.0-0.nightly-2019-12-23-142304   True        False         7h45m   Cluster version is 4.2.0-0.nightly-2019-12-23-142304
$ oc project openshift-kube-apiserver
$ oc get events |grep "Removed file for secret"
3m54s       Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-139-72.us-east-2.compute.internal    Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert" not found)
115m        Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-139-72.us-east-2.compute.internal    Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert-000" not found)
8m21s       Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-139-72.us-east-2.compute.internal    (combined from similar events): Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert" not found)
58s         Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-154-154.us-east-2.compute.internal   Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert" not found)
31m         Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-154-154.us-east-2.compute.internal   Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert-000" not found)
6m25s       Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-154-154.us-east-2.compute.internal   (combined from similar events): Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert" not found)
92s         Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-163-106.us-east-2.compute.internal   Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert" not found)
12m         Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-163-106.us-east-2.compute.internal   Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert-000" not found)
12m         Warning   CertificateRemoved   pod/kube-apiserver-ip-10-0-163-106.us-east-2.compute.internal   (combined from similar events): Removed file for secret: /%!(EXTRA *errors.StatusError=secrets "user-serving-cert" not found)
Still saw above events, not sure if the count is "reduce"d per the PR's title. However, what can be sure of is, the "/%!(EXTRA *errors.StatusError=" is still "poorly formatted", so assigned back.

Comment 5 Ke Wang 2020-03-19 04:39:23 UTC
It seems saying the same thing with bug https://bugzilla.redhat.com/show_bug.cgi?id=1785610.

Comment 6 Michal Fojtik 2020-05-20 08:45:17 UTC
This was already fixed long time ago, not sure why this bug still exists.


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