-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EOF error in cdi-apiserver #2695
Comments
hi @ikyrycho thanks for the detailed bug report! Check the Ideally, we can verify/resolve the issue with cert rotation. But if you need a quick fix, the cert durations may be set on the CDI CR. Can do something like this: apiVersion: cdi.kubevirt.io/v1beta1
kind: CDI
metadata:
name: cdi
spec:
...
certConfig:
ca:
duration: 100000h
renewBefore: 10000h
server:
duration: 80000h
renewBefore: 10000h
... [1] https://github.com/kubevirt/containerized-data-importer/blob/main/pkg/operator/resources/cert/factory.go#L132 |
@mhenriks thanks for tips (especially for advice of changing rotation interval in CDI).
Since CDI is working, I will ignore them. |
What happened:
After installation on both K8s/K3s cdi-apiserver throws EOF error:
After 24-hours error changes to
Second error prevents us from using CDI, because CDI resources are not visible on API (which returns same error) and slows down API calls, because
kubectl
retries failing calls to API.CDI works correctly for first 24 hours after installation.
What you expected to happen:
CDI client should be able to connect to k8s-api-server (it's my assumption that it is tries to connect to it) without EOF error and should be able to renew certificate after 24-hours
How to reproduce it (as minimally and precisely as possible):
3a) Check logs from
cdi-apiserver
after ~15 minutes3b) Wait for 24 hours and try to run
kubectl get all -v 6
commandAdditional context:
There are several similar reported EOF issues in K8s/Golang (kubernetes/kubernetes#109022 and golang/go#50984) that could be the root cause for this one.
Environment:
kubectl get deployments cdi-deployment -o yaml
):kubectl version
):K3s:
and K8s:
uname -a
):Linux r1s01-r32 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: