Skip to content

docs: add OVN Southbound cluster recovery solution (ACP-58919) - #873

Open
zhongxie1 wants to merge 1 commit into
mainfrom
docs/acp-58919-ovn-sb-recovery
Open

zhongxie1 wants to merge 1 commit into
mainfrom
docs/acp-58919-ovn-sb-recovery

Conversation

@zhongxie1

Copy link
Copy Markdown

Summary

Adds an ACP 4.5 Solution for rebuilding a three-member OVN Southbound cluster when all three SB database files are corrupted, no usable SB backup is available, and the original Northbound database still has quorum.

The procedure covers identifying the bootstrap node, validating the archived NB files offline, creating an empty SB cluster from the matching schema, and verifying Raft membership, NB-to-SB synchronization, and cross-node Pod connectivity.

Verification

  • Exercised the recovery procedure on a three-master development cluster running Kube-OVN v1.16.18.
  • Checked the syntax of all 29 Bash command blocks in the submitted article.

**Run on the management terminal.** Verify the current Kubernetes context and inspect the Deployment and Pods.

```bash
kubectl config current-context

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.

这个多余了吧

kind:
- Solution
ProductsVersion:
- '4.5.x'

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.

是否可以用于之前的版本比如 4.3 和 4.4 呢


## Resolution

The rebuild stops all `ovn-central` processes. New Pods and network configuration changes may fail during the outage. After the new SB cluster starts, `ovn-northd` uses NB to regenerate logical flows and port records. The `ovn-controller` on each node registers its Chassis and reestablishes port bindings. Network traffic repopulates dynamic MAC bindings. [OVN maintainers' guidance](https://mail.openvswitch.org/pipermail/ovs-dev/2020-July/373441.html) · [OVN architecture](https://www.ovn.org/support/dist-docs/ovn-architecture.7.html)

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.

可能需要把影响 Pod 创建的部分用更显眼的形式展现。 比如用警告的形式。 另外对于正常运行的 pod 如果没有影响,也请说明一下。


## Environment

- Alauda Container Platform (ACP) 4.5 with the three-replica `kube-system/ovn-central` Deployment, host networking, and host-local Raft database files. The procedure was exercised on a development cluster running Kube-OVN `v1.16.18`.

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.

如果其他版本ACP 也能支持,这里的版本号可能不要写这么具体, 另外 kube-ovn 我们也会频繁更新,版本太细会导致文档很快失效。

```bash
kubectl config current-context
kubectl -n kube-system get pods -l app=ovn-central -o wide
kubectl -n kube-system get deployment ovn-central -o yaml

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.

这个的目的是为了备份吗?

**Run as root in Bash on each Raft node.** Confirm that no `ovn-central` container is running and that no process is listening on the NB and SB ports. Replace the port numbers with the values recorded in step 1 if they differ.

```bash
crictl ps --name ovn-central

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.

不可变 OS 比如 coreOS 上不可行。它没有下面的命令

This branch was successfully deployed

1 active deployment
translate — c0cfd4f1 Deployed Nov 26, 2026 by zhongxie1 via build #2806
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.

2 participants