istio: ca request failed, failed to warm certificate: failed to generate workload certificate

Is this the right place to submit this?

  • This is not a security vulnerability or a crashing bug
  • This is not a question about how to use Istio

Bug Description

when trying to spin up some pods, the istio-proxy container fails with following errors in its logs

2024-01-10T05:05:10.494997Z warn ca ca request failed, starting attempt 1 in 90.899471ms 2024-01-10T05:05:10.586356Z warn ca ca request failed, starting attempt 2 in 206.077629ms 2024-01-10T05:05:10.793020Z warn ca ca request failed, starting attempt 3 in 365.275824ms 2024-01-10T05:05:11.158541Z warn ca ca request failed, starting attempt 4 in 804.282221ms 2024-01-10T05:05:11.963273Z warn sds failed to warm certificate: failed to generate workload certificate: create certificate: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing: dial tcp: lookup istiod.<istio namespace>.svc: i/o timeout” 2024-01-10T05:05:20.180059Z warn ca ca request failed, starting attempt 1 in 95.347177ms 2024-01-10T05:05:20.276462Z warn ca ca request failed, starting attempt 2 in 188.24542ms 2024-01-10T05:05:20.464932Z warn ca ca request failed, starting attempt 3 in 369.373343ms 2024-01-10T05:05:20.834596Z warn ca ca request failed, starting attempt 4 in 746.239894ms 2024-01-10T05:05:21.010143Z info Agent draining Proxy 2024-01-10T05:05:21.010143Z info Status server has successfully terminated 2024-01-10T05:05:21.010338Z error accept tcp [::]:15020: use of closed network connection 2024-01-10T05:05:21.014162Z info Graceful termination period is 5s, starting… 2024-01-10T05:05:21.582579Z warn sds failed to warm certificate: failed to generate workload certificate: create certificate: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing: dial tcp: lookup istiod.<istio namespace>.svc on 10.100.0.10:53: read udp 100.72.111.190:52133->10.100.0.10:53: i/o timeout” 2024-01-10T05:05:26.014293Z info Graceful termination period complete, terminating remaining proxies. 2024-01-10T05:05:26.014349Z warn Aborted proxy instance 2024-01-10T05:05:26.014358Z warn Aborting proxy 2024-01-10T05:05:26.014625Z info Envoy aborted normally 2024-01-10T05:05:26.014631Z info Agent has successfully terminated 2024-01-10T05:05:26.014700Z error error serving tap http server: http: Server closed 2024-01-10T05:05:26.015688Z info sds SDS server for workload certificates started, listening on “./var/run/secrets/workload-spiffe-uds/socket”

the issue is intermittent and hard to reproduce, sometimes restarting the pod helps and it is able to generate certificate successfully

Version

istio version 1.17.8

$kubectl version --short
Client Version: v1.25.16
Kustomize Version: v4.5.7
Server Version: v1.23.17-eks-8cb36c9

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

we faced the same issue, the problem is with coredns deployment. Executing below command resolved the issue for us. kubectl -n kube-system rollout restart deployment coredns

Here we just restart the rollout of coredns deployment

I’d like close this now, it seems more likely to be an aws problem.

xref: https://github.com/awslabs/amazon-eks-ami/pull/1738

what is AL2 and AL2023?

Amazon Linux 2 and Amazon Linux 2023

@ChrisV78 thanks for confirming. I have also opened a support ticket with AWS