Skip to content

Commit 0879e5e

Browse files
authored
Merge pull request #56622 from lance5890/improve_cluster_restore_from_disater
add quorum guard instructions for etcd restoring from disaster
2 parents 24cce4d + 31c96aa commit 0879e5e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

modules/dr-restoring-cluster-state.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,16 @@ Perform the following step only if you are using `OVNKubernetes` network plugin.
301301
----
302302
$ oc delete node <non-recovery-controlplane-host-1> <non-recovery-controlplane-host-2>
303303
----
304+
305+
. Turn off the quorum guard by entering the following command:
306+
+
307+
[source,terminal]
308+
----
309+
$ oc patch etcd/cluster --type=merge -p '{"spec": {"unsupportedConfigOverrides": {"useUnsupportedUnsafeNonHANonProductionUnstableEtcd": true}}}'
310+
----
311+
+
312+
This command ensures that you can successfully re-create secrets and roll out the static pods.
313+
304314
. Restart the Open Virtual Network (OVN) Kubernetes pods on all the hosts.
305315
+
306316
[NOTE]
@@ -553,6 +563,20 @@ $ oc patch etcd cluster -p='{"spec": {"forceRedeploymentReason": "recovery-'"$(
553563
+
554564
When the etcd cluster Operator performs a redeployment, the existing nodes are started with new pods similar to the initial bootstrap scale up.
555565

566+
. Turn the quorum guard back on by entering the following command:
567+
+
568+
[source,terminal]
569+
----
570+
$ oc patch etcd/cluster --type=merge -p '\{"spec": {"unsupportedConfigOverrides": null}}
571+
----
572+
573+
. You can verify that the `unsupportedConfigOverrides` section is removed from the object by entering this command:
574+
+
575+
[source,terminal]
576+
----
577+
$ oc get etcd/cluster -oyaml
578+
----
579+
556580
. Verify all nodes are updated to the latest revision.
557581
+
558582
In a terminal that has access to the cluster as a `cluster-admin` user, run the following command:

0 commit comments

Comments
 (0)