Skip to content

Commit 7da922e

Browse files
authored
Merge pull request #97991 from lahinson/ocpbugs-60700-hcp-etcd-restore
[OCPBUGS-60700]: Adding steps to proc to restore etcd for a hosted cluster
2 parents 119546e + 3a9aadc commit 7da922e

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

modules/hosted-cluster-etcd-backup-restore-on-premise.adoc

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,39 @@ $ oc get -n ${CONTROL_PLANE_NAMESPACE} pods -l app=etcd -w
258258
----
259259
$ oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} \
260260
-p '{"spec":{"pausedUntil":"null"}}' --type=merge
261-
----
261+
----
262+
263+
. Manually roll out the hosted cluster by entering the following command:
264+
+
265+
[source,terminal]
266+
----
267+
$ oc annotate hostedcluster -n \
268+
<hosted_cluster_namespace> <hosted_cluster_name> \
269+
hypershift.openshift.io/restart-date=$(date --iso-8601=seconds)
270+
----
271+
+
272+
The Multus admission controller and network node identity pods do not start yet.
273+
274+
. Delete the pods for the second and third members of etcd and their PVCs by entering the following commands:
275+
+
276+
[source,terminal]
277+
----
278+
$ oc delete -n ${CONTROL_PLANE_NAMESPACE} pvc/data-etcd-1 pod/etcd-1 --wait=false
279+
----
280+
+
281+
[source,terminal]
282+
----
283+
$ oc delete -n ${CONTROL_PLANE_NAMESPACE} pvc/data-etcd-2 pod/etcd-2 --wait=false
284+
----
285+
286+
. Manually roll out the hosted cluster again by entering the following command:
287+
+
288+
[source,terminal]
289+
----
290+
$ oc annotate hostedcluster -n \
291+
<hosted_cluster_namespace> <hosted_cluster_name> \
292+
hypershift.openshift.io/restart-date=$(date --iso-8601=seconds) \
293+
--overwrite
294+
----
295+
+
296+
After a few minutes, the control plane pods start running.

0 commit comments

Comments
 (0)