Repository navigation
install: name unavailable Substrate workloads in ax local status - #758
Merged
Merged
Conversation
`ax local status` looked only at ate-api-server and at the proxy_arp sysctl of the node. In google#754 the envoy container of atenet-router stayed unready, the atenet-router Service had no endpoints, and new workspaces hung, while the status still read "ate-api-server (1/1 available)". Status now reads every workload that Bootstrap installs, with one `kubectl get deployments,statefulsets,daemonsets -A`. When one of them has fewer available pods than it wants, the Substrate line names it instead of ate-api-server: Substrate: degraded: atenet-router (0/1 available), atenet-egress (0/1 available) A cluster where everything is available still prints "ate-api-server (1/1 available)". A workload that is scaled to zero, or that the cluster does not have, is not reported. The line names no command for an unavailable workload. Its pods are usually starting or being restarted, and `ax local start` does not restart a pod that stays unready. The sysctl warning keeps its words and follows the workloads. With an unavailable ate-api-server the line changes from ate-api-server (0/1 available) [degraded: node sysctls reset after restart; run 'ax local start' to restore] to degraded: ate-api-server (0/1 available); node sysctls reset after restart; run 'ax local start' to restore AX Studio reads the first "<n>/<m> available" of the line and the word "degraded", so it shows the Substrate layer as not ready in both forms. The list of workloads is in kind.go and has to follow the Substrate manifests. TestSubstrateWorkloadsMatchManifests compares the two, so a Substrate bump that adds, renames or removes a workload fails the test until the list is updated. skills/substrate names this step under "Bumping Substrate". Tested on a Kind cluster without the liveness probe of google#735: after SIGTERM to the router processes of atenet-router and atenet-egress, `ax local status` printed the line above, also with -o json. Updates google#754
rakyll
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #754
Problem
ax local statuslooked only atate-api-serverand at theproxy_arpsysctl of the node. In #754 theenvoycontainer ofatenet-routerstayed unready and theatenet-routerService had no endpoints, so new workspaces hung, while the status still read:Change
KindProvider.Statusnow reads every workload thatax local startinstalls for Agent Substrate, with onekubectl get deployments,statefulsets,daemonsets -A. When a workload has fewer available pods than it wants, theSubstrate:line names it instead ofate-api-server:Not in this PR
#754 also asks that a Workspace report the unreachable router as a condition instead of staying in
Preparingwith no conditions. Arguable if we should let workspace to report the underlying subtrate status especially we could potentially make workspace 100% declaritive.Test
On a Kind cluster built from this branch (no liveness probe from #735, so Envoy stays drained):