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
- add octavia to the list of services to remove from the old control
plane
- remove SSL certificates adoption, keep the migration of the passphrase
- remove SSH key migration adoption
- add an option (prelaunch_octavia_workload) that creates a load
balancer on the source cloud and check its availability before and
after the adoption
- trigger failover of the existing load balancer after the adoption of
the dataplane (use the new VM image)
- move clean up tasks after the load balancer migrated
- update documentation
JIRA: OSPRH-25502
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 VMs to use the new image and 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:
@@ -104,7 +67,7 @@ Specifies the `mtu` value in your environment.
104
67
. 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:
. Change the `ONBOOT` option in the network script for the management interface to `no` to ensure that the interface is disabled on reboot:
149
+
.Post-adoption cleanup
184
150
185
-
.. Connect to each of the Controller nodes on the old control plane, for example, `overcloud-controller-0`.
151
+
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`.
186
152
187
-
.. Open the management interface configuration file in a text editor such as `vi`:
188
-
+
189
153
----
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.
194
-
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
159
231
-
. Delete old flavor profiles that are migrated to the new control plane:
160
+
. Trigger a failover for all existing load balancers to upgrade the amphorae virtual machines to use the new image and 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:
167
+
. Delete old flavors that were migrated to the new control plane:
253
168
+
254
169
----
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
170
+
$ openstack flavor delete octavia_65
171
+
# The following flavors might not exist in OSP 17.1 deployments
172
+
$ openstack flavor show octavia_amphora-mvcpu-ha && \
173
+
openstack flavor delete octavia_amphora-mvcpu-ha
174
+
$ openstack loadbalancer flavor show octavia_amphora-mvcpu-ha && \
- name: delete old mangement network ports and network
78
+
ansible.builtin.shell: |
79
+
{{ shell_header }}
80
+
{{ octavia_header }}
81
+
for net_id in $(${BASH_ALIASES[openstack]} network list -f value -c ID --name lb-mgmt-net); do desc=$(${BASH_ALIASES[openstack]} network show "$net_id" -f value -c description); [ -z "$desc" ] && WALLABY_LB_MGMT_NET_ID="$net_id" ; done
82
+
for id in $(${BASH_ALIASES[openstack]} port list --network "$WALLABY_LB_MGMT_NET_ID" -f value -c ID) ; do ${BASH_ALIASES[openstack]} port delete "$id" ; done
0 commit comments