istio: node_agent handshake failure whith mesh expansion
This is most probably an error on my end. Please help if you can 😉
Thanks !
Bug description
I am following the tutorial for Istio mesh expansion.
Unfortunatly, when I launch the node_agent I get the following error:
$ sudo node_agent --ca-address istio-citadel:31259 --env onprem
2019-10-15T13:43:25.027036Z info parsed scheme: ""
2019-10-15T13:43:25.028755Z info scheme "" not registered, fallback to default scheme
2019-10-15T13:43:25.030166Z info ccResolverWrapper: sending update to cc: {[{istio-citadel:312590 <nil>}] <nil>}
2019-10-15T13:43:25.031256Z info ClientConn switching balancer to "pick_first"
2019-10-15T13:43:25.032732Z info Starting Node Agent
2019-10-15T13:43:25.033914Z info Node Agent starts successfully.
2019-10-15T13:43:25.032902Z info pickfirstBalancer: HandleSubConnStateChange: 0xc000056020, CONNECTING
2019-10-15T13:43:25.268172Z info Sending CSR (retrial #0) ...
2019-10-15T13:43:25.397958Z info grpc: addrConn.createTransport failed to connect to {istio-citadel:31259 0 <nil>}. Err :connection error: desc = "transport: authentication handshake failed: read tcp10.10.2.99:46821->10.10.1.11:31259: read: connection reset by peer". Reconnecting...
2019-10-15T13:43:25.398088Z info pickfirstBalancer: HandleSubConnStateChange: 0xc000056020, TRANSIENT_FAILURE
2019-10-15T13:43:25.398181Z error CSR signing failed: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: read tcp 10.10.2.99:46821->10.10.1.11:31259: read: connection reset by peer". Will retry in 5s
2019-10-15T13:43:26.398607Z info pickfirstBalancer: HandleSubConnStateChange: 0xc000056020, CONNECTING
2019-10-15T13:43:26.846985Z info grpc: addrConn.createTransport failed to connect to {istio-citadel:31259 0 <nil>}. Err :connection error: desc = "transport: authentication handshake failed: read tcp10.10.2.99:46822->10.10.1.11:31259: read: connection reset by peer". Reconnecting...
2019-10-15T13:43:26.848962Z info pickfirstBalancer: HandleSubConnStateChange: 0xc000056020, TRANSIENT_FAILURE
2019-10-15T13:43:28.582513Z info pickfirstBalancer: HandleSubConnStateChange: 0xc000056020, CONNECTING
2019-10-15T13:43:28.778769Z info grpc: addrConn.createTransport failed to connect to {istio-citadel:31259 0 <nil>}. Err :connection error: desc = "transport: authentication handshake failed: read tcp10.10.2.99:46823->10.10.1.11:31259: read: connection reset by peer". Reconnecting...
2019-10-15T13:43:28.778907Z info pickfirstBalancer: HandleSubConnStateChange: 0xc000056020, TRANSIENT_FAILURE
-
I have copied the certificates from my Kubernetes master to the Debian machine where I installed the node_agent. They are stored in
/etc/certs/
as the docs explains. -
Using node_agent 1.3.2
-
Istio has meshExpansion: true
-
Content of
cluster.env
ISTIO_CP_AUTH=MUTUAL_TLS
ISTIO_SERVICE_CIDR=10.233.0.0/18
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure [ ] Docs [ ] Installation [X] Networking [ ] Performance and Scalability [ ] Policies and Telemetry [X] Security [ ] Test and Release [ ] User Experience [ ] Developer Infrastructure
Expected behavior Connection to to the citadel pod through the gateway should work without handshake error
Steps to reproduce the bug Following the tutorial from the documentation step by step
Version (include the output of istioctl version --remote
and kubectl version
)
Istio : 1.2.5
Kubernetes 1.14.3
How was Istio installed? Installed via Helm
Environment where bug was observed (cloud vendor, OS, etc) Kubernetes on premise (centos7) Trying to add a debian machine to the mesh service via mesh expansion
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (7 by maintainers)
I confirm that the first step woks on Ubuntu 14.04… Though I cannot establish communication from the VM to the Kubernetes cluster .
Kubernetes => VM ✔️ VM => kubernetes ❌
Issues:
1) istio-sidecar.deb not installing correctly on ubuntu
When installing using
sudo dpkg -i istio-sidecar.deb
the files are not copied into systemd. I had to extract the .deb and copy the service files to/etc/systemd/system
.2) Updating scripts
In istio-node-agent.sh I updated the istio-citadel port to the nodePort port of my cluster.
In istio-start.sh I updated pilot port (to match nodePort again) and ISTIO_SVC_IP that was getting its IP from eth0 instead of getting it from eth1.
3) Launching the two scripts using systemctl
node_agent and Istio seems ok but when I do
sudo iptables -L
I get nothing:Its like the iptables script is not doing anything (even when launched manualy).
4) Trying to curl the cluster
Curling myservice from the VM ends in 503.
Strange…
Also in istio.err.log I do have those occasionnal stacktrace:
Steps I did:
cat
/etc/hosts
sudo node_agent --ca-address istio-citadel:<PORT_CITADEL_VIA_GATEWAY> --env onprem
Istio config:
ℹ️ Istio’s gateway has been set to NodePort and is accessible from the external VM.
Also, tried with
istio-1.4.3/install/kubernetes\mesh-expansion.yaml
Is it possible that the istio gateway absorbs the certificates ?