Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ Topics:
- Name: Configuring a custom PKI
File: configuring-a-custom-pki
Distros: openshift-enterprise,openshift-webscale,openshift-origin
- Name: Load balancing on OpenStack
File: load-balancing-openstack
---
Name: Storage
Dir: storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ include::modules/installation-osp-default-kuryr-deployment.adoc[leveloffset=+1]
include::modules/installation-osp-kuryr-increase-quota.adoc[leveloffset=+2]
include::modules/installation-osp-kuryr-neutron-configuration.adoc[leveloffset=+2]
include::modules/installation-osp-kuryr-octavia-configuration.adoc[leveloffset=+2]

You can xref:../../networking/load-balancing-openstack.adoc#installation-osp-kuryr-octavia-configure[configure your cluster to use the Octavia OVN driver] after your RHOSP cloud is upgraded from version 13 to version 16.
Comment thread
maxwelldb marked this conversation as resolved.
Outdated

include::modules/installation-osp-kuryr-known-limitations.adoc[leveloffset=+2]
include::modules/installation-osp-control-compute-machines.adoc[leveloffset=+2]
include::modules/installation-osp-bootstrap-machine.adoc[leveloffset=+2]
Expand Down
2 changes: 1 addition & 1 deletion modules/installation-osp-kuryr-octavia-configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ If Kuryr uses `ovn` instead of Amphora, it offers the following benefits:
* Decreased resource requirements. Kuryr does not require a load balancer VM for each Service.
* Reduced network latency.
* Increased service creation speed by using OpenFlow rules instead of a VM for each Service.
* Distributed load balancing actions across all nodes instead of centralized on Amphora VMs.
* Distributed load balancing actions across all nodes instead of centralized on Amphora VMs.
99 changes: 99 additions & 0 deletions modules/installation-osp-kuryr-octavia-upgrade.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
// Module included in the following assemblies:
//
// * networking/openstack/load-balancing-openstack.adoc

[id="installation-osp-kuryr-octavia-configure_{context}"]
= Using the Octavia OVN load balancer provider driver with Kuryr SDN

If your {product-title} cluster uses Kuryr and was installed on a {rh-openstack-first} 13 cloud
that was later upgraded to {rh-openstack} 16, you can configure it to use the Octavia OVN provider driver.

[CAUTION]
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
====
Kuryr replaces existing load balancers after you change provider drivers. This process
results in some downtime.
====

.Prerequisites

* Install the {rh-openstack} CLI, `openstack`.

* Install the {product-title} CLI, `oc`.

* Verify that the Octavia OVN driver on {rh-openstack} is enabled.
+
[TIP]
Comment thread
maxwelldb marked this conversation as resolved.
====
To view a list of available Octavia drivers, on a command line, enter link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/command_line_interface_reference/loadbalancer#loadbalancer_provider_list[`openstack loadbalancer provider list`].
Comment thread
maxwelldb marked this conversation as resolved.
Outdated

You should see the `ovn` driver in the command's output.
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
====

.Procedure

To change from the Octavia Amphora provider driver to Octavia OVN:

. Open the `kuryr-config` ConfigMap. On a command line, enter:
+
----
$ oc -n openshift-kuryr edit cm kuryr-config
----

. In the ConfigMap, delete the line that contains `kuryr-octavia-provider: default`. For example:
+
----
...
kind: ConfigMap
metadata:
annotations:
networkoperator.openshift.io/kuryr-octavia-provider: default <1>
...
----
<1> Delete this line. The cluster will regenerate it with `ovn` as the value.
+
Wait for the Cluster Network Operator detects the modification and redeploys the `kuryr-controller` and `kuryr-cni` pods. This process may take several minutes.
Comment thread
maxwelldb marked this conversation as resolved.
Outdated

. Verify that the `kuryr-config` ConfigMap annotation is present with `ovn` as its value. On a command line, enter:
+
----
$ oc -n openshift-kuryr edit cm kuryr-config
----
+
The `ovn` provider value should be present in the output:
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
+
----
...
kind: ConfigMap
metadata:
annotations:
networkoperator.openshift.io/kuryr-octavia-provider: ovn
...
----

. Verify that {rh-openstack} recreated its load balancers.

.. On a command line, type:
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
+
----
$ openstack loadbalancer list | grep amphora
----
+
You should see a single Amphora load balancer. For example:
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
+
----
a4db683b-2b7b-4988-a582-c39daaad7981 | ostest-7mbj6-kuryr-api-loadbalancer | 84c99c906edd475ba19478a9a6690efd | 172.30.0.1 | ACTIVE | amphora
----

.. Then, type:
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
+
----
$ openstack loadbalancer list | grep ovn
----
+
The remaining load balancers should be the `ovn` type. For example:
Comment thread
maxwelldb marked this conversation as resolved.
Outdated
+
----
2dffe783-98ae-4048-98d0-32aa684664cc | openshift-apiserver-operator/metrics | 84c99c906edd475ba19478a9a6690efd | 172.30.167.119 | ACTIVE | ovn
0b1b2193-251f-4243-af39-2f99b29d18c5 | openshift-etcd/etcd | 84c99c906edd475ba19478a9a6690efd | 172.30.143.226 | ACTIVE | ovn
f05b07fc-01b7-4673-bd4d-adaa4391458e | openshift-dns-operator/metrics | 84c99c906edd475ba19478a9a6690efd | 172.30.152.27 | ACTIVE | ovn
----
8 changes: 8 additions & 0 deletions networking/load-balancing-openstack.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[id="load-balancing-openstack"]
= Load balancing on {rh-openstack}
include::modules/common-attributes.adoc[]
:context: load-balancing-openstack

toc::[]

include::modules/installation-osp-kuryr-octavia-upgrade.adoc[leveloffset=+1]