Skip to content

Commit 2d426ba

Browse files
authored
Merge pull request #70698 from kowen-rh/ocpbugs-18942
OCPBUGS#18942: Update etcd restore procedure for Keepalived
2 parents 7b3de0d + efa7b89 commit 2d426ba

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

modules/dr-restoring-cluster-state.adoc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,51 @@ If the output of this command is not empty, wait a few minutes and check again.
127127
$ sudo mv /var/lib/etcd/ /tmp
128128
----
129129

130+
.. If the `/etc/kubernetes/manifests/keepalived.yaml` file exists, follow these steps:
131+
132+
... Move the `/etc/kubernetes/manifests/keepalived.yaml` file out of the kubelet manifest directory:
133+
+
134+
[source,terminal]
135+
----
136+
$ sudo mv /etc/kubernetes/manifests/keepalived.yaml /tmp
137+
----
138+
139+
... Verify that any containers managed by the `keepalived` daemon are stopped:
140+
+
141+
[source,terminal]
142+
----
143+
$ sudo crictl ps --name keepalived
144+
----
145+
+
146+
The output of this command should be empty. If it is not empty, wait a few minutes and check again.
147+
148+
... Check if the control plane has any Virtual IPs (VIPs) assigned to it:
149+
+
150+
[source,terminal]
151+
----
152+
$ ip -o address | egrep '<api_vip>|<ingress_vip>'
153+
----
154+
155+
... For each reported VIP, run the following command to remove it:
156+
+
157+
[source,terminal]
158+
----
159+
$ sudo ip address del <reported_vip> dev <reported_vip_device>
160+
----
161+
130162
.. Repeat this step on each of the other control plane hosts that is not the recovery host.
131163

132164
. Access the recovery control plane host.
133165

166+
. If the `keepalived` daemon is in use, verify that the recovery control plane node owns the VIP:
167+
+
168+
[source,terminal]
169+
----
170+
$ ip -o address | grep <api_vip>
171+
----
172+
+
173+
The address of the VIP is highlighted in the output if it exists. This command returns an empty string if the VIP is not set or configured incorrectly.
174+
134175
. If the cluster-wide proxy is enabled, be sure that you have exported the `NO_PROXY`, `HTTP_PROXY`, and `HTTPS_PROXY` environment variables.
135176
+
136177
[TIP]

0 commit comments

Comments
 (0)