Bug 1949419 - oauth-apiserver logs "[SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview)"
Summary: oauth-apiserver logs "[SHOULD NOT HAPPEN] failed to update managedFields for ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oauth-apiserver
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.0
Assignee: Stefan Schimanski
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-14 09:02 UTC by Xingxing Xia
Modified: 2021-07-27 23:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:00:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oauth-apiserver pull 53 0 None open Bug 1949419: Fix [SHOULD NOT HAPPEN] server-side-apply error for TokenReviews 2021-05-05 12:52:39 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:00:47 UTC

Description Xingxing Xia 2021-04-14 09:02:12 UTC
Description of problem:
oauth-apiserver logs have below errors:
fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview

Version-Release number of selected component (if applicable):
4.8.0-0.nightly-2021-04-09-222447

How reproducible:
Not sure. I happen to see this twice so far in 4.8. Searched BZ, bug 1939070#c1 showed same error.

Steps to Reproduce:
1. Unknown steps. Happened to see it.

Actual results:
Run oc logs for oauth-apiserver and save, then run below, got:
$ grep "SHOULD NOT HAPPEN" oauth_apiserver-694474d75b-*.log
oauth_apiserver-694474d75b-dhxjr.log:2021-04-13T12:09:54.788845542Z E0413 12:09:54.788791       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-hj92l.log:2021-04-14T01:30:57.461157981Z E0414 01:30:57.461113       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-hj92l.log:2021-04-14T01:31:53.770874510Z E0414 01:31:53.770824       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-hj92l.log:2021-04-14T01:32:56.340512407Z E0414 01:32:56.340466       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-hj92l.log:2021-04-14T01:37:06.196533622Z E0414 01:37:06.196476       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-hj92l.log:2021-04-14T02:01:04.133357110Z E0414 02:01:04.133282       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-tnrr5.log:2021-04-13T12:10:06.365154483Z E0413 12:10:06.361412       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-tnrr5.log:2021-04-13T12:10:58.171357058Z E0413 12:10:58.171286       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-tnrr5.log:2021-04-14T01:28:31.333841480Z E0414 01:28:31.333756       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-tnrr5.log:2021-04-14T01:36:09.322396913Z E0414 01:36:09.322352       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview
oauth_apiserver-694474d75b-tnrr5.log:2021-04-14T01:37:14.502496163Z E0414 01:37:14.502323       1 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for authentication.k8s.io/v1, Kind=TokenReview: failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview

Expected results:
No such errors.

Additional info:
Once ever there was bug 1894342 which reported for "Kind=OAuthClient".

Comment 1 Xingxing Xia 2021-04-14 09:19:40 UTC
Comment 0 env's must-gather including audit logs: http://file.rdu.redhat.com/~xxia/bug/1949419_must-gather.tgz (PS: it is an env upgraded from 4.7 to 4.8, but looks like not related to upgrade, because last time I saw same error was fresh 4.8 env. Bug 1939070#c1 is fresh env too)

Comment 2 Xingxing Xia 2021-04-30 03:05:39 UTC
Today latest 4.8.0-0.nightly-2021-04-29-222100 fresh env also hit:
$ grep "SHOULD NOT HAPPEN" logs/xxia0430-48/oauth_apiserver-77447db7cb-*.log
logs/xxia0430-48/oauth_apiserver-77447db7cb-7rpmq.log:2021-04-30T02:49:14.188085343Z E0430 02:49:14.187973       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-7rpmq.log:2021-04-30T02:49:17.630551180Z E0430 02:49:17.630480       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-7rpmq.log:2021-04-30T02:57:16.083723074Z E0430 02:57:16.083636       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-7rpmq.log:2021-04-30T02:58:14.853196786Z E0430 02:58:14.853126       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-dlbvj.log:2021-04-30T02:48:56.686580646Z E0430 02:48:56.686504       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-dlbvj.log:2021-04-30T02:49:20.294477480Z E0430 02:49:20.294402       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-dlbvj.log:2021-04-30T02:49:23.075842266Z E0430 02:49:23.075755       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-zp44l.log:2021-04-30T02:44:37.002907355Z E0430 02:44:37.002841       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"
logs/xxia0430-48/oauth_apiserver-77447db7cb-zp44l.log:2021-04-30T02:55:11.097138096Z E0430 02:55:11.097050       1 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (authentication.k8s.io/v1, Kind=TokenReview) to smd typed: no corresponding type for authentication.k8s.io/v1, Kind=TokenReview" VersionKind="authentication.k8s.io/v1, Kind=TokenReview"

Comment 5 Xingxing Xia 2021-05-07 04:18:41 UTC
Tested in 4.8.0-0.nightly-2021-05-07-020826, the error is not seen again.

Comment 8 errata-xmlrpc 2021-07-27 23:00:33 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.8.2 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-2021:2438


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