Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Configuring OVN gateways for a Red Hat OpenStack Services on OpenShift deployment
An OVN gateway connects the logical OpenStack tenant network to a physical external network. Many RHOSO environments have at least one OVN gateway and might have more than one physical external network and more than one OVN gateway.
Some environments do not include an OVN gateway. For example, an environment might not have an OVN gateway because connectivity is not required, because the environment does not use centralized floating IPs or routers and workloads directly connected to provider networks, or because some other connection method is used.
You can choose where OVN gateways are configured. OVN gateway location choices include the following:
- Control plane
- OVN gateways on RHOCP worker nodes that host the OpenStack controller services. Place the OVN gateway on a dedicated NIC whose sole purpose is to provide an interface to the OVN gateway.
- Data plane
- OVN gateways on dedicated Networker nodes on the data plane. For more information, see Configuring Networker nodes in Configuring networking services.
Control plane OVN gateways may be subject to more disruption than data plane OVN gateways.
The optional load-balancing service (octavia) requires the use of at least one control plane OVN gateway.
The optional BGP service is not presently supported in environments with control plane OVN gateways.
As a result, deployments that use both the load-balancing service and the BGP service are not presently supported. For more information, see link:https://issues.redhat.com/browse/OSPRH-10768.
3.1. Configuring a control plane OVN gateway with a dedicated NIC Link kopierenLink in die Zwischenablage kopiert!
You can place OVN gateways on dedicated NICs on the control plane nodes. This reduces the potential for interruption but requires an additional NIC.
Prerequisites
-
You have the
oc
command line tool installed on your workstation. -
You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-admin
privileges. - Each RHOCP worker node that hosts the RHOSO control plane has a NIC dedicated to an OVN gateway. Use the same NIC name for the dedicated NIC on each node. In addition, each worker node has at least the two NICs described in Red Hat OpenShift Container Platform cluster requirements.
- Your OpenStackControlPlane custom resource (CR) file, openstack_control_plane.yaml, exists on your workstation.
Procedure
-
Open the
OpenStackControlPlane
CR definition file,openstack_control_plane.yaml
. Add the following ovnController configuration, including
nicMappings
, to theovn
service configuration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Replace
<network_name>
with the name of the physical provider network your gateway is on. This should match the value of the--provider-physical-network
argument to theopenstack network create
command used to create the network. For example,datacentre
. -
Replace
<nic_name>
with the name of the NIC connecting to the gateway network, such asenp6s0
. -
Optional: Add additional
<network_name>:<nic_name>
pairs undernicMappings
as required.
-
Replace
Update the control plane:
oc apply -f openstack_control_plane.yaml -n openstack
$ oc apply -f openstack_control_plane.yaml -n openstack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
ovn-operator
creates the network attachment definitions, adds them to the pods, creates an external bridge, and configuresexternal-ids:ovn-bridge-mappings
. The settingexternal-ids:ovn-cms-options=enable-chassis-as-gw
is configured by default.Wait until RHOCP creates the resources related to the
OpenStackControlPlane
CR. Run the following command to check the status:oc get openstackcontrolplane -n openstack
$ oc get openstackcontrolplane -n openstack NAME STATUS MESSAGE openstack-control-plane Unknown Setup started
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
OpenStackControlPlane
resources are created when the status is "Setup complete".TipAppend the
-w
option to the end of the get command to track deployment progress.Confirm that the control plane is deployed by reviewing the pods in the
openstack
namespace:oc get pods -n openstack
$ oc get pods -n openstack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The control plane is deployed when all the pods are either completed or running. Verify that
ovn-controller
andovn-controller-ovs
pods are running, and that the number of running pods is equal to the number of OCP control plane nodes where OpenStack control plane services are running.
Verification
Run a remote shell command on the
OpenStackClient
pod to confirm that the OVN Controller Gateway Agents are running on the control plane nodes:oc rsh -n openstack openstackclient openstack network agent list
$ oc rsh -n openstack openstackclient openstack network agent list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Configuring RHOSO with no control plane OVN gateways Link kopierenLink in die Zwischenablage kopiert!
You can configure a deployment with no control plane OVN gateways. For example, you configure data plane OVN gateways only, or you do not configure any OVN gateways.
Configuring a deployment with no control plane OVN gateways requires omitting the ovnController configuration from the control plane custom resource (CR).
Prerequisites
- RHOSO 18.0.3 (Feature Release 1) or later.
-
You have the
oc
command line tool installed on your workstation. -
You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-admin
privileges.
Procedure
- Open your OpenStackControlPlane custom resource (CR) file, openstack_control_plane.yaml, on your workstation.
If there is an
ovnController
section:-
Remove the
ovnController
section. Update the control plane:
oc apply -f openstack_control_plane.yaml -n openstack
$ oc apply -f openstack_control_plane.yaml -n openstack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Remove the