-
Notifications
You must be signed in to change notification settings - Fork 723
Open
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationarea-orchestrator
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
In 13.0.0-preview.1.25558.3 (which I believe is latest at the time of writing), Trying to start my apphost with ASPIRE_ENABLE_CONTAINER_TUNNEL set in launch settings causes the App Host to hang before the dashboard shows up.
If I look in docker desktop, I can see an aspire-container-network-tunnelproxy resource briefly show up, but it almost immediately exists. I have tried to capture logs for this, but the container gets deleted almost instantly before I can capture them.
Expected Behavior
- I expect the tunnel to start, and for hte app host to follow
- If the tunnel does fail to start, I'd expect some kind of error to be forwarded to the app host, and the app host to throw an exception almost immediately rather than hanging indefinitely.
Steps To Reproduce
info: Aspire.Hosting.DistributedApplication[0]
Aspire version: 13.0.0-preview.1.25558.3+b420c735e38d4fc22cf9bebfafc952308d68c5ff
info: Aspire.Hosting.DistributedApplication[0]
Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
Application host directory is: S:\Trayport.Aspire\src\Trayport.Aspire.AppHost
info: Aspire.Hosting.Dcp.DcpHost[0]
Starting DCP with arguments: start-apiserver --monitor 51088 --detach --kubeconfig "C:\Users\alexanderc\AppData\Local\Temp\aspire.zqcbrogd.kub\kubeconfig"
dbug: Aspire.Hosting.Dcp.DcpExecutor[0]
Watching over DCP Endpoint resources.
dbug: Aspire.Hosting.Dcp.DcpExecutor[0]
Watching over DCP Executable resources.
dbug: Aspire.Hosting.Dcp.DcpExecutor[0]
Watching over DCP Container resources.
dbug: Aspire.Hosting.Dcp.DcpExecutor[0]
Watching over DCP ContainerExec resources.
dbug: Aspire.Hosting.Dcp.DcpExecutor[0]
Watching over DCP Service resources.
dbug: Aspire.Hosting.Dcp.dcp.start-apiserver.api-server[0]
Starting API server...
dbug: Aspire.Hosting.Dcp.dcp.start-apiserver.api-server[0]
API server started {"Address": "127.0.0.1", "Port": 54819}
dbug: Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host[0]
Starting DCP controller host
dbug: Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host[0]
Started all services {"count": 1}
dbug: Aspire.Hosting.Dcp.KubernetesService[0]
Successfully read Kubernetes configuration from 'C:\Users\alexanderc\AppData\Local\Temp\aspire.zqcbrogd.kub\kubeconfig' after 1170 milliseconds.
dbug: Aspire.Hosting.Dcp.dcpctrl[0]
Starting controller manager
info: Aspire.Hosting.Dcp.DcpExecutor[0]
Waiting for container network 'aspire-container-network' tunnel initialization...
dbug: Aspire.Hosting.Dcp.dcpctrl.dcpctrl.NetworkReconciler[0]
Network created {"ContainerNetwork": "/aspire-container-network", "Reconciliation": 2, "NetworkName": "aspire-session-network-yeemfcxr-Trayport.Aspire"}
dbug: Aspire.Hosting.Dcp.dcpctrl.dcpctrl.NetworkReconciler[0]
All expected containers are connected to the network {"ContainerNetwork": "/aspire-container-network", "Reconciliation": 4, "NetworkName": "aspire-session-network-yeemfcxr-Trayport.Aspire", "NetworkID": "4a57ce157386", "Expected": 1, "Found": 1}
dbug: Aspire.Hosting.Dcp.dcpctrl.dcpctrl.TunnelProxyReconciler[0]
No more ContainerNetworkTunnelProxy resources are being watched, cancelling container watch {"ContainerNetworkTunnelProxy": "/aspire-container-network-tunnelproxy", "Reconciliation": 6}
dbug: Aspire.Hosting.Dcp.dcpctrl.dcpctrl.os-executor[0]
Context expired, stopping process... {"PID": 29272, "Command": "C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe", "Args": ["events", "--filter", "type=container", "--format", "{{json .}}"]}
dbug: Aspire.Hosting.Dcp.dcpctrl.dcpctrl.os-executor[0]
Root process has stopped {"Root": 29272}
dbug: Aspire.Hosting.Dcp.dcpproc.dcpproc.ProcessMonitor[0]
Monitor process exited, shutting down {"MonitorPID": 49668, "ChildPID": 29272, "PID": 29272}
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response
danegsta
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationarea-orchestrator