You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To adopt the {loadbalancer_first_ref}, you patch an existing `OpenStackControlPlane` custom resource (CR) where the {loadbalancer_service} is disabled. The patch starts the service with the configuration parameters that are provided by the {rhos_prev_long} ({OpenStackShort}) environment. Existing load balancers fail over after the adoption process to upgrade their image, and set up a network connection with the new control plane.
7
+
To adopt the {loadbalancer_first_ref}, you patch an existing `OpenStackControlPlane` custom resource (CR) where the {loadbalancer_service} is disabled. The patch starts the service with the configuration parameters that are provided by the {rhos_prev_long} ({OpenStackShort}) environment. After completing the data plane adoption, you must trigger a failover of existing load balancers to upgrade their amphora virtual machines to use the new image and to establish connectivity with the new control plane.
8
8
9
9
.Procedure
10
10
11
-
. Create an alias for the `openstack` command:
11
+
. Migrate the server certificate authority (CA) passphrase from the previous deployment:
12
12
+
13
13
----
14
-
$ alias openstack="oc exec -t openstackclient -- openstack"
15
-
----
16
-
. Use the `CONTROLLER1_SCP` shell variable to set the value of the existing
17
-
`CONTROLLER1_SSH` variable:
18
-
+
19
-
----
20
-
$ CONTROLLER1_SCP=$(echo "$CONTROLLER1_SSH" | sed 's/^ssh/scp/g')
21
-
----
22
-
23
-
. Run the following set of commands to regenerate the keys and certificates and install the data in {rhocp_long}. Convert the existing single certificate authority (CA) configuration into a dual CA configuration. You can use these commands to regenerate the keys and certificates and insert them into {OpenShiftShort}:
* Replace `<octavia_ssh_pubkey_path>` with the path that you configured by using the `OctaviaAmphoraSshKeyFile` parameter in the previous deployment. The default path is `/etc/octavia/ssh/octavia_id_rsa`. For example:
. To isolate the management network, add the network interface for the VLAN base interface:
@@ -101,10 +64,10 @@ Specifies the name of the network interface in your {OpenShiftShort} setup.
101
64
<mtu>::
102
65
Specifies the `mtu` value in your environment.
103
66
104
-
. To connect pods that manage load balancer virtual machines (amphorae) and the OpenvSwitch pods that are managed by the OVN operator, configure the {loadbalancer_service} network attachment definition:
67
+
. To connect pods that manage load balancer virtual machines (amphorae) and the OpenvSwitch pods the OVN operator manages, configure the {loadbalancer_service} network attachment definition:
. Change the `ONBOOT` option in the network script for the management interface to `no` to ensure that the interface is disabled on reboot:
184
-
185
-
.. Connect to each of the Controller nodes on the old control plane, for example, `overcloud-controller-0`.
154
+
.Post-adoption cleanup
186
155
187
-
.. Open the management interface configuration file in a text editor such as `vi`:
188
-
+
189
-
----
190
-
$ sudo vi /etc/sysconfig/network-scripts/ifcfg-o-hm0
191
-
----
192
-
+
193
-
The script name is based on the previous `OctaviaMgmtPortDevName` setting and might differ in your environment.
156
+
Before running the post-adoption cleanup, you can ensure that the connectivty between the new control plane and the adopted Compute nodes is functional by creating a new load balancer and checking that its `provisioning_status` becomes `ACTIVE`.
194
157
195
-
. Delete old flavors that are migrated to the new control plane:
After you complete the data plane adoption, perform the following cleanup steps to upgrade existing load balancers and remove old resources.
230
164
231
-
. Delete old flavor profiles that are migrated to the new control plane:
165
+
. Trigger a failover for all existing load balancers to upgrade the amphorae virtual machines to use the new image and to establish connectivity with the new control plane:
. Delete the old management network ports. Store the network ID of the old management network in the variable `WALLABY_LB_MGMT_NET_ID` to use later:
172
+
. Delete old flavors that were migrated to the new control plane:
253
173
+
254
174
----
255
-
$ for net_id in $(openstack network list -f value -c ID --name lb-mgmt-net); do desc=$(openstack network show "$net_id" -f value -c description); [ -z "$desc" ] && WALLABY_LB_MGMT_NET_ID="$net_id" ; done
256
-
$ echo $WALLABY_LB_MGMT_NET_ID
257
-
1e21f9c1-7485-4104-a2f3-eed098ab9cad
175
+
$ openstack flavor delete octavia_65
176
+
# The following flavors might not exist in OSP 17.1 deployments
177
+
$ openstack flavor show octavia_amphora-mvcpu-ha && \
178
+
openstack flavor delete octavia_amphora-mvcpu-ha
179
+
$ openstack loadbalancer flavor show octavia_amphora-mvcpu-ha && \
0 commit comments