separate the dhcp_agents_per_network and enable_neutron_agent_ha parameters

Bug #2020341 reported by Yusuf Güngör
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

Hi everyone,

./ansible/roles/neutron/templates/neutron.conf.j2 file contains these parameters like:

{% if enable_neutron_agent_ha | bool %}
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
l3_ha = true
max_l3_agents_per_router = {{ max_l3_agents_per_router }}
{% endif %}

But we do not need to set l3_ha=True to use dhcp_agents_per_network parameter.

Can we seperate these parameters? It is enough to move the "dhcp_agents_per_network" config to out of the if block.

What happened: dhcp_agents_per_network config parameter is not added to neutron.conf if enable_neutron_agent_ha is not set to True

What you expected to happen: dhcp_agents_per_network config parameter should be added to neutron.conf regardless of enable_neutron_agent_ha value.

How to reproduce it (minimal and precise): Set the enable_neutron_agent_ha:False and dhcp_agents_per_network:2. Check the neutron.conf after reconfigure.

**Environment**:
* Kolla-Ansible version: wallaby, xena, yoga, zed

Revision history for this message
Michal Nasiadka (mnasiadka) wrote :

Why do you think it should be added regardless of enable_neutron_agent_ha? Isn't that DHCP agent HA?

Changed in kolla-ansible:
status: New → Incomplete
Revision history for this message
Yusuf Güngör (yusuf2) wrote (last edit ):

Hi Michal, thanks for your reply.

According to the neutron config reference doc, l3_ha and max_l3_agents_per_router is router HA related config variables. But dhcp_agents_per_network is only related to dhcp agent HA.

l3_ha : https://docs.openstack.org/neutron/latest/configuration/neutron.html#DEFAULT.l3_ha

dhcp_agents_per_network: https://docs.openstack.org/neutron/latest/configuration/neutron.html#DEFAULT.dhcp_agents_per_network

max_l3_agents_per_router : https://docs.openstack.org/neutron/latest/configuration/neutron.html#DEFAULT.max_l3_agents_per_router

According to the RedHat docs when using DVR l3_ha is not supported: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/networking_guide/sec-dvr#:~:text=DVR%20is%20not,a%20different%20node.

Our setup is dvr and we want to use the dhcp agent HA but could not use l3_ha. We have to override the l3_ha=False

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kolla-ansible because there has been no activity for 60 days.]

Changed in kolla-ansible:
status: Incomplete → Expired
Revision history for this message
Mesut Muhammet Şahin (messah) wrote :

Hi,

Is there any updates?

Yusuf Güngör (yusuf2)
Changed in kolla-ansible:
status: Expired → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.