Skip to content

Don't die if you can't reach a single Rancher server.#28

Merged
ikogan merged 2 commits into
mainfrom
cs/adp-connect-resiliency
May 14, 2026
Merged

Don't die if you can't reach a single Rancher server.#28
ikogan merged 2 commits into
mainfrom
cs/adp-connect-resiliency

Conversation

@ikogan
Copy link
Copy Markdown
Contributor

@ikogan ikogan commented May 14, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a lightweight reachability probe before validating each configured Rancher server, so that a single unreachable Rancher no longer aborts the entire adp-connect.sh flow. When curl to https://${SERVER}/ping fails with a "host unreachable"-style exit code, the script now warns and skips that server instead of letting rancher project list hang or error out.

Changes:

  • Probe each Rancher server with curl -s --max-time 10 .../ping inside the validation loop.
  • Treat curl exit codes 6 (DNS) and 7 (connect) as unreachable, emit a warning, and continue to the next server.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adp-connect.sh Outdated
Comment thread adp-connect.sh Outdated
deadwanderer
deadwanderer previously approved these changes May 14, 2026
phinphan20
phinphan20 previously approved these changes May 14, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ikogan ikogan dismissed stale reviews from phinphan20 and deadwanderer via 7143ada May 14, 2026 15:08
@ikogan ikogan merged commit dc44a27 into main May 14, 2026
3 of 4 checks passed
@ikogan ikogan deleted the cs/adp-connect-resiliency branch May 14, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants