Skip to content

raft: preserve self metadata during force-new-cluster recovery - #3316

Open
kairosci wants to merge 1 commit into
moby:masterfrom
kairosci:raft/restore-self-metadata
Open

kairosci wants to merge 1 commit into
moby:masterfrom
kairosci:raft/restore-self-metadata

Conversation

@kairosci

@kairosci kairosci commented Nov 24, 2026 •

Copy link
Copy Markdown

Related to: moby/moby#54214

- What I did

Preserve the local manager identity and VXLAN port during force-new-cluster recovery.

- How I did it

Reuse the local member metadata from the WAL and refresh the recovered manager node from the cluster's network configuration.

- How to test it

go test ./manager/state/raft -count=1

go test -p 1 -parallel 1 ./manager -count=1

- Description for the changelog

Preserve manager metadata and VXLAN settings during force-new-cluster recovery.

AI Usage: OpenAI Codex

When force-new-cluster recovery cannot find the local Raft ID in the restored configuration, it synthesizes an add-member entry using only the Raft ID. That leaves the member without its node ID and address, so manager status and remote manager discovery cannot identify it. Reuse the local member metadata read from the WAL.

Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
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