Merge "Implements support for OVS+DVR in an MNAIO"

This commit is contained in:
Zuul 2020-06-17 14:38:15 +00:00 committed by Gerrit Code Review
commit 97c1326693
5 changed files with 39 additions and 2 deletions

View File

@ -62,6 +62,7 @@ at this time include:
* ML2/LinuxBridge
* ML2/Open Virtual Network (OVN)
* ML2/Open vSwitch w/ DVR (OVS)
To deploy an MNAIO with support for OVN, set the following parameter(s) prior
to executing the build:
@ -71,6 +72,14 @@ to executing the build:
export MNAIO_ANSIBLE_PARAMETERS="-e osa_enable_networking_ovn=true"
./build.sh
To deploy an MNAIO with support for OVS+DVR, set the following parameter(s) prior
to executing the build:
.. code-block:: bash
export MNAIO_ANSIBLE_PARAMETERS="-e osa_enable_networking_ovs_dvr=true"
./build.sh
When your ready, run the build script by executing ``bash ./build.sh``. The
build script current executes a deployment of OpenStack Ansible using the master
branch. If you want to do something other than deploy master you can set the

View File

@ -117,7 +117,8 @@
group: root
when:
- pre_config_osa | default(true) | bool
- osa_enable_networking_ovn | default(false) | bool
- (osa_enable_networking_ovn | default(false) | bool) or
(osa_enable_networking_ovs_dvr | default(false) | bool)
- name: Drop NEUTRON OVN env.d config
template:

View File

@ -158,6 +158,7 @@ osa_enable_orchestration: true
osa_enable_dashboard: true
osa_enable_network: true
osa_enable_networking_ovn: false
osa_enable_networking_ovs_dvr: false
osa_enable_meter: false
osa_enable_object_storage: "{{ not (enable_ceph_storage | bool) }}"
osa_enable_legacy_os_infra: "{{ (osa_enable_image | bool) and (osa_enable_orchestration | bool) and (osa_enable_dashboard | bool) and (osa_enable_compute | bool) }}"

View File

@ -60,6 +60,27 @@ global_overrides:
net_name: "flat"
group_binds:
- neutron_ovn_controller
{% elif osa_enable_networking_ovs_dvr | bool %}
- network:
container_bridge: "br-vxlan"
container_type: "veth"
container_interface: "eth10"
ip_from_q: "tunnel"
type: "vxlan"
range: "1:1000"
net_name: "vxlan"
group_binds:
- neutron_openvswitch_agent
- network:
container_bridge: "br-provider"
container_type: "veth"
container_interface: "eth11"
network_interface: "br-vlan"
type: "vlan"
range: "1:1"
net_name: "vlan"
group_binds:
- neutron_openvswitch_agent
{% else %}
- network:
container_bridge: "br-vxlan"

View File

@ -196,7 +196,11 @@ magnum_api_uwsgi_ini_overrides:
stats: "/tmp/magnum-api-uwsgi-stats.sock"
{% endif %}
{% if osa_enable_networking_ovn | bool %}
{% if osa_enable_networking_ovs_dvr | bool %}
neutron_plugin_type: ml2.ovs.dvr
neutron_ml2_drivers_type: "vlan,local,flat,vxlan"
{% elif osa_enable_networking_ovn | bool %}
neutron_plugin_type: ml2.ovn
neutron_plugin_base:
@ -204,3 +208,4 @@ neutron_plugin_base:
neutron_ml2_drivers_type: "vlan,local,flat,geneve"
{% endif %}