Skip to content

fix(volume): retry salvage on unreachable backends - #5537

Open
guolxingxing wants to merge 1 commit into
longhorn:masterfrom
guolxingxing:dev/connectivity-aware-salvage
Open

guolxingxing wants to merge 1 commit into
longhorn:masterfrom
guolxingxing:dev/connectivity-aware-salvage

Conversation

@guolxingxing

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:

Issue longhorn/longhorn#14662

What this PR does / why we need it:

Recognize an engine startup failure reported as EHOSTUNREACH as a backend connectivity failure and enter auto-salvage even when replicas are not all marked failed.

For this connectivity-only path, previously healthy failed replicas on available nodes and disks can be retried without the ordinary one-minute FailedAt window. The failed engine is stopped after expanding the candidate set so it can restart and determine which candidate backends are actually reachable.

Special notes for your reviewer:

This PR depends on longhorn/longhorn-engine#2172 for the EHOSTUNREACH classification.

The ordinary auto-salvage path keeps its existing one-minute window and detach requirement. Auto-salvage must still be enabled, and standby or restore-required volumes remain excluded.

Additional documentation or context

N/A

@mergify

mergify Bot commented Nov 26, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

Require Engine.Spec.SalvageRequested to be observed from an earlier reconciliation before automatic salvage clears Replica.Spec.FailedAt. This preserves the Replica-to-Engine CR update ordering and the existing Detached barrier.

Keep the auto-salvage setting, standby and restore exclusions, node and disk filters, and the one-minute FailedAt window. EHOSTUNREACH no longer bypasses the window or promotes historical replicas that may be older than an unreachable replica containing acknowledged writes.

Issue longhorn/longhorn#14662

Co-authored-by: Codex GPT-5 <noreply@openai.com>
Signed-off-by: guolingxing <guolingxing@tju.edu.cn>
@guolxingxing
guolxingxing force-pushed the dev/connectivity-aware-salvage branch from 455405c to ff7e337 Compare November 27, 2026 05:47

This branch has not been deployed

No deployments
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.

1 participant