Repository navigation
Fix transient API failures in node validation - #1152
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens the large-cluster ClusterLoader2 validation step against transient Kubernetes API failures during the node readiness check, reducing flaky pipeline failures on very large clusters.
Changes:
- Wraps
KubernetesClient.get_ready_nodes()invalidate_clusterloader2with a retry-on-exception loop. - Logs transient query failures and waits before retrying within the existing overall timeout window.
Vittoria (vittoriasalim)
approved these changes
Apr 28, 2026
Vittoria (vittoriasalim)
approved these changes
Apr 28, 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.
The
validate_clusterloader2function in large_cluster.py crashes on transient Kubernetes API errors (503, 504, connection timeouts) during the node readiness check. This causes entire pipeline runs to fail even when the cluster is nearly ready.Example from the
cnl-observabilityscheduled run on 2026-04-27: the cluster had 1003/1006 nodes ready when a single 503 Service Unavailable (upstream connect error or disconnect/reset before headers. reset reason: connection timeout) killed the run.Root Cause
get_ready_nodes()was called without exception handling. At large scale (1000+ nodes), transient API server errors are expected. The API server may briefly become unavailable due to load, connection resets, or upstream proxy timeouts.Fix
Wrap
get_ready_nodes()in a try/except block that catches transient exceptions, logs them, and retries after a short sleep. The existing timeout loop already provides a natural retry boundary — if the API stays down beyond the configured timeout, the function still fails as expected.Impact
validate_clusterloader2only; execute/collect phases are unchangedTest run for this change https://dev.azure.com/akstelescope/telescope/_build/results?buildId=65283&view=results