microsoft / mindaro

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

BtK extension failing to connect to AKS cluster "Failed to get routing manager deployment status" #137

Closed jonny-scott80 closed 3 years ago

jonny-scott80 commented 3 years ago

Describe the bug Since yesterday none of the developers on the team have been able to connect in isolated mode using BtK extension. Any attempt to connect fails with following error in the extension:

Error: Failed to establish a connection. Error: Connect operation failed. An unexpected error occurred: 'Failed to get routing manager deployment status'

In the routing manger logs we are seeing the followoing exception: 2021-03-23T12:59:25.9754617Z | RoutingManager | ERROR | Logging handled exception: System.InvalidOperationException: {"ClassName":"System.InvalidOperationException","Message":"Number of expected ingresses is 0, but number of (user ingresses * pod triggers) is 1 ","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Microsoft.BridgeToKubernetes.RoutingManager.RoutingStateEstablisher.RunAsync(IDictionary`2 inputs, CancellationToken cancellationToken) in /src/routingmanager/RoutingStateEstablisher.cs:line 92\n at Microsoft.BridgeToKubernetes.RoutingManager.RoutingManagerApp.RefreshAsync(CancellationToken cancellationToken) in /src/routingmanager/RoutingManagerApp.cs:line 247\n at Microsoft.BridgeToKubernetes.RoutingManager.RoutingManagerApp.RefreshLoopAsync(CancellationToken cancellationToken) in /src/routingmanager/RoutingManagerApp.cs:line 184","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233079,"Source":"Microsoft.BridgeToKubernetes.RoutingManager","WatsonBuckets":null}

To Reproduce Any attempt to start debugging a service in isolated mode .

Logs Attach logs from the following directory: For OSX/Linux: $TMPDIR/Bridge to Kubernetes Bridge To Kubernetes.zip Routing manger logs routingmanager.txt

Environment Details Client used (VS Code/Visual Studio):VS Code - Version: 1.54.1

Client's version: mindaro.mindaro@1.0.120210322 Operating System: macOS 11.2
amsoedal commented 3 years ago

@jonny-scott80 Hi, thank you for reporting this! We're aware of this issue and currently working to get a fix out. Thank you for your patience!

daniv-msft commented 3 years ago

@jonny-scott80 We just released a new version that mitigates this. Please let us know if you still encounter an issue.

jonny-scott80 commented 3 years ago

Looks like the new version has resolved the issue. Thanks.