microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Problem with starting agent #212

Open damian-krak opened 3 years ago

damian-krak commented 3 years ago

Describe the bug I am unable to start debugging my service deployed to aks in Visual studio 2019. No error message is shown - only Connecting to cluster window is visible for a very long time.

Logs In -deployment-restore- pod I can find following line multiple times:

2021-08-09T13:59:17.4227309Z | RestorationJob | WARNG | HttpRequestException pinging agent 'http://15.0.0.114:50051/api/connectedsessions': Connection refused

At the end there is:

2021-08-09T15:38:47.0561442Z | RestorationJob | ERROR | Failed to ping agent 12 times. Exiting...

Additional context I'm using Visual Studio 2019. Everything works fine when I'm replacing for example kibana service deployed to my cluster. It doesn't work only to services deployed using my helm charts. They are quite simple (see attachments) helm.zip Could you guide me on what can be wrong with that helm chart/deployment that is causing the problem?

daniv-msft commented 3 years ago

Thanks @damian-krak for opening this issue. I looked quickly at the helm charts you shared, and indeed nothing looks wrong to me. From what you describe, it sounds indeed like for some reasons our remote agent doesn't run properly, and so the restoration job fulfills its purpose: restoring the cluster in a correct state when it detects something is wrong.

Now, we need to understand why the remote agent doesn't start/run properly.