-
Notifications
You must be signed in to change notification settings - Fork 309
Description
Problem
We are transient CI failures in our system due to a bug in the kube-apiserver that is causing a panic on the apiserver due to a race in the evaluation of CEL expression. This race was first reported here: kubernetes/kubernetes#114661 and was later fixed by a Kubernetes PR here: kubernetes/kubernetes#114857 that bumped the package version of the CEL evaluation package where this bug was originating: google/cel-go#620.

Kubernetes did back-port patch versions that contained the fix for this bug in the apiserver. These can be seen at the bottom of the originally reported issue.

You can also see these cherry-picks by viewing the Kubernetes changelog for 1.24, 1.25, and 1.26.
- 1.24: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.24.md#changelog-since-v1249
- 1.25: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.25.md#changelog-since-v1255
- 1.26: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.26.md#changelog-since-v1260
setup-envtest does not currently surface every kubernetes version through its mirror where it pulls the etcd and apiserver binaries. These mirrors can be seen here: https://storage.googleapis.com/kubebuilder-tools. As a result, we will continue to see these transient failures on 1.25 until they publish a newer patch version of these binaries that contains the fix.
We are only seeing this version on Kubernetes 1.25 because we have disabled CEL on versions less than 1.25 (because the feature was not yet in beta and wasn’t enabled on EKS clusters) and the bug is fixed on versions greater than 1.25 because setup-envtest has a new enough binary that contains the patch fix.
Solutions
- Upstream
controller-runtime
can support these newer patch versions in their mirror directly. I've currently opened an issue to ask for this here: Support newer patch versions of Kubernetes insetup-envtest
controller-runtime#2583. - We can download and install the binaries into the correct directories ourselves for 1.25.
envtest
would then just use these binaries directly.
For now, we can continue to retry when we see failures on 1.25 since these errors are transient and resolve after some re-runs; however, we should consider fixing this so our CI doesn't become flaky for 1.25 due to this interaction with CEL.
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment