istio: Connection refused (os error 111)
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
Ztunnel is blocking requests to a particular pod in a namespace. All other pods as part of the same deployment are being reached ok:
The container making the request:
2024-10-29T17:39:45Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: read tcp 192.168.14.52:36166->10.43.14.158:80: read: connection reset by peer" connIndex=0 dest=https://x.x/health event=0 ip=198.41.192.167 type=http
Ztunnel:
2024-10-29T17:39:45.936Z | 2024-10-29T17:39:45.936188Z error access connection complete src.addr=192.168.14.52:36166 src.workload="cloudflared-ingress-76f7f5c69d-r2774" src.namespace="cloudflared-ingress" src.identity="spiffe://cluster.local/ns/cloudflared-ingress/sa/cloudflared-ingress-sa" dst.addr=192.168.152.170:15008 dst.hbone_addr=192.168.152.170:5175 dst.service="webapp-backend-ingress.api.svc.cluster.local" dst.workload="webapp-backend-7dc4469cf6-6qm6b" dst.namespace="api" dst.identity="spiffe://cluster.local/ns/api/sa/webapp-backend-sa" direction="outbound" bytes_sent=0 bytes_recv=0 duration="3ms" error="io error: Connection refused (os error 111)"
Note the error: error="io error: Connection refused (os error 111)"
The container it is calling is healthy and accessible.
All Ztunnel pods are reporting the same error when trying to reach it, not just one ztunnel.
Version
client version: 1.23.2
control plane version: 1.24.0-alpha.0
data plane version: 1.24.0-alpha.0 (4 proxies)
Additional Information
Calico: v3.28.1 k3s
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22 (7 by maintainers)
The issues have been reoccurring, and on a number of occasions during the day after a deployment rollout. That rules out my theory of it being related to nodes restarting, instead it just seems to be related to when a number pods are being created. There are numerous issues and errors that can occur which makes it hard to nail down. It resembles a lot of the issues that existed before 1.24 with the host network (https://github.com/istio/istio/issues/53306).
It is very noticeable, and leaves ambient completely unusable. Subsequently I suspect this has something to do with how it interacts with Calico or k3s, otherwise I would expect many more users to be reporting these issues.
I am going to have to take a step away at this point for a while, and have removed ambient from the cluster. We were just losing too much developer time with all the issues that were occurring. I will try and pick it up again in a few versions time when some of the issues have been ironed out. I do hope to contribute with debugging to move it forward but for now have maxed out on the time I can spend on it.
I will leave the issue open and report back here at a later date when I try and pick this up again in the future.
Folks – please do not add your issues to this issue. Everything that has been posted not from the original reporter is entirely different symptoms. Please open a new issue.
Also see https://github.com/istio/istio/wiki/Troubleshooting-Istio-Ambient if you haven’t already, although they seem plausibly like novel issues.