Allow overriding firewall_driver for ovs

By setting neutron_firewall_driver in user_variables.yml
you can set it to openvswitch even if not using dpdk.

Change-Id: I9301ba7f962a644631a300337b626d7652e43f63
This commit is contained in:
Erik Berg 2020-12-23 09:36:48 +01:00
parent 3e7d7f3a11
commit 5dddaa2cfa
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,24 @@
---
prelude: >
Historically, Open vSwitch (OVS) could not interact directly with iptables
to implement security groups. Thus, the OVS agent and Compute service use a
Linux bridge between each instance (VM) and the OVS integration bridge
br-int to implement security groups. Now the OVS agent includes an optional
firewall driver that natively implements security groups as flows in OVS
rather than the Linux bridge device and iptables. This increases
scalability and performance.
features:
- |
You can override the default ``iptables_hybrid`` firewall driver for Open
vSwitch by setting ``neutron_firewall_driver: openvswitch``
upgrade:
- |
Introduce this feature to empty compute nodes, and migrate VMs over once
the agents have been restarted.
critical:
- |
This feature requires kernel and user space support for conntrack, thus
requiring minimum versions of the Linux kernel and Open vSwitch. All cases
require Open vSwitch version 2.5 or newer. Kernel version 4.3 or newer
includes conntrack support. Kernel version 3.3, but less than 4.3, does not
include conntrack support and requires building the OVS modules.

View File

@ -161,7 +161,7 @@ neutron_plugins:
plugin_core: ml2
plugin_ini: plugins/ml2/ml2_conf.ini
ml2.ovs:
driver_firewall: iptables_hybrid
driver_firewall: "{{ neutron_firewall_driver | default('iptables_hybrid') }}"
driver_interface: openvswitch
drivers_type: "{{ neutron_ml2_drivers_type }}"
l2_population: "{{ neutron_l2_population }}"
@ -171,7 +171,7 @@ neutron_plugins:
plugin_core: ml2
plugin_ini: plugins/ml2/ml2_conf.ini
ml2.ovs.dvr:
driver_firewall: iptables_hybrid
driver_firewall: "{{ neutron_firewall_driver | default('iptables_hybrid') }}"
driver_interface: openvswitch
drivers_type: "{{ neutron_ml2_drivers_type }}"
l2_population: "{{ neutron_l2_population }}"