Skip to content

fix: refresh netmap error - #38

Merged
InftyAI-Agent merged 4 commits into
InftyAI:mainfrom
kerthcet:fix/resolve-refresh-map
Aug 4, 2026
Merged

fix: refresh netmap error#38
InftyAI-Agent merged 4 commits into
InftyAI:mainfrom
kerthcet:fix/resolve-refresh-map

Conversation

@kerthcet

@kerthcet kerthcet commented Aug 4, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

Does this PR introduce a user-facing change?


Signed-off-by: kerthcet <kerthcet@gmail.com>
Copilot AI lite review requested due to automatic review settings August 4, 2026 18:45
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates SandD’s Tailscale tunnel handling to reduce noisy logs from tailscaled and to recover faster when the daemon can’t reach a restarted controller due to stale netmap state.

Changes:

  • Pass the server verbose flag into the controller tunnel setup and optionally mute tailscaled output.
  • Add stale_netmap tracking in the daemon reconnect loop to force a tailscale down/up refresh after unreachable-controller failures.
  • Replace tailscale status-based “is tailscaled running” detection with a SOCKS5-port readiness probe and an active wait-for-ready loop.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
server/src/lib.rs Threads the verbose flag into controller tunnel setup and attempts to reduce tailscaled log noise.
sandd/src/main.rs Adds stale-netmap refresh logic and improves tunnel readiness detection/behavior in the reconnect loop.

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

Comment thread sandd/src/main.rs
Comment thread sandd/src/main.rs Outdated
Comment thread server/src/lib.rs Outdated
Signed-off-by: kerthcet <kerthcet@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
@kerthcet

kerthcet commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

/lgtm
/kind bug

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. bug Categorizes issue or PR as related to a bug. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Aug 4, 2026
Signed-off-by: kerthcet <kerthcet@gmail.com>
@InftyAI-Agent InftyAI-Agent removed the lgtm Looks good to me, indicates that a PR is ready to be merged. label Aug 4, 2026
@kerthcet

kerthcet commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

/lgtm

@InftyAI-Agent InftyAI-Agent added the lgtm Looks good to me, indicates that a PR is ready to be merged. label Aug 4, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved: PR has both lgtm and approved labels

@InftyAI-Agent
InftyAI-Agent merged commit 766160c into InftyAI:main Aug 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bug Categorizes issue or PR as related to a bug. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants