Skip to content

Commit c431313

Browse files
authored
Merge pull request #142 from stackhpc/neutron-dhcp-agent-victoria
Add Neutron DHCP agent in OVN networking (Victoria)
2 parents deabfee + f100062 commit c431313

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

ansible/roles/neutron/defaults/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ neutron_services:
7171
container_name: "neutron_dhcp_agent"
7272
image: "{{ neutron_dhcp_agent_image_full }}"
7373
privileged: True
74-
enabled: "{{ neutron_plugin_agent not in ['ovn', 'vmware_nsxv', 'vmware_nsxv3'] }}"
74+
enabled: "{{ neutron_plugin_agent not in ['ovn', 'vmware_nsxv', 'vmware_nsxv3'] or neutron_ovn_dhcp_agent | bool }}"
7575
group: "neutron-dhcp-agent"
7676
host_in_groups: "{{ inventory_hostname in groups['neutron-dhcp-agent'] }}"
7777
volumes: "{{ neutron_dhcp_agent_default_volumes + neutron_dhcp_agent_extra_volumes }}"
@@ -730,6 +730,11 @@ notification_drivers: []
730730

731731
neutron_notification_drivers: "{{ notification_drivers | selectattr('enabled', 'equalto', true) | list }}"
732732

733+
######################
734+
# OVN
735+
######################
736+
neutron_ovn_dhcp_agent: "no"
737+
733738
####################
734739
# Kolla
735740
####################

ansible/roles/neutron/templates/neutron.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rpc_state_report_workers = {{ openstack_service_rpc_workers }}
2727
# in it is because we are sharing this socket in a volume which is it's own dir
2828
metadata_proxy_socket = /var/lib/neutron/kolla/metadata_proxy
2929

30-
{% if neutron_plugin_agent == "openvswitch" %}
30+
{% if neutron_plugin_agent == "openvswitch" or (neutron_plugin_agent == "ovn" and neutron_ovn_dhcp_agent | bool) %}
3131
interface_driver = openvswitch
3232
{% elif neutron_plugin_agent == "linuxbridge" %}
3333
interface_driver = linuxbridge

doc/source/reference/networking/neutron.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ To change this behaviour you need to set the following:
8080
8181
neutron_ovn_distributed_fip: "yes"
8282
83+
Similarly - in order to have Neutron DHCP agents deployed in OVN networking
84+
scenario, use:
85+
86+
.. path /etc/kolla/globals.yml
87+
.. code-block:: yaml
88+
89+
neutron_ovn_dhcp_agent: "yes"
90+
91+
This might be desired for example when Ironic bare metal nodes are
92+
used as a compute service. Currently OVN is not able to answer DHCP
93+
queries on port type external, this is where Neutron agent helps.
94+
8395
Mellanox Infiniband (ml2/mlnx)
8496
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8597

etc/kolla/globals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@
561561
# Enable distributed floating ip for OVN deployments
562562
#neutron_ovn_distributed_fip: "no"
563563

564+
# Enable DHCP agent(s) to use with OVN
565+
#neutron_ovn_dhcp_agent: "no"
566+
564567
#############################
565568
# Horizon - Dashboard Options
566569
#############################
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
It is now possible to use Neutron DHCP agent together with OVN
5+
networking. New variable is added to control this feature:
6+
``neutron_ovn_dhcp_agent``, defaulting to ``no``.

0 commit comments

Comments
 (0)