Multiple dhcp agents are scheduled to host one network automatically if multiple subnets are created at the same time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Oleg Bondarev |
Bug Description
I have three all-in-one controller nodes deployed by DevStack with the latest codes. Neutron servers on these controllers are set behind Pacemaker and HAProxy to realize active/active HA. MariaDB Galera cluster is used as my database backend.
In neutron.conf, I have made the following changes:
dhcp_agents_
network_
Since I only allow one dhcp agent per tenant on each controller, now I have three dhcp agents in total for a given tenant. After I created one network within this given tenant, before I add any subnets to this network, no dhcp agents would be scheduled to host this network. If I run multiple commands at the same time to add subnets to the network, we may end up with more than one dhcp agents hosting the network.
It is not easy to re-produce the bug. You might need to repeat the following steps multiple times.
How to reproduce:
Prerequisite
make the following changes in neutron.conf
[DEFAULT]
dhcp_agents_
network_
Step 1: Confirm multiple dhcp agents are running
$ neutron agent-list --agent_type='DHCP agent'
my result is shown http://
Step 2: Create a network
$ neutron net-create net-dhcptest
Step 3: Create multiple subnets on the network at the same time
On controller1:
$ neutron subnet-create --name subnet-dhcptest-1 net-dhcptest 192.162.101.0/24
On controller2:
$ neutron subnet-create --name subnet-dhcptest-2 net-dhcptest 192.162.102.0/24
Step 4: Check which dhcp agent(s) is/are hosting the network
$ neutron dhcp-agent-
my result is shown http://
If you end up with only one dhcp agent, please delete the subnets and network. Then repeat Step 1-4 several times.
Changed in neutron: | |
assignee: | nobody → Lujin Luo (luo-lujin) |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → Low |
Changed in neutron: | |
assignee: | Lujin Luo (luo-lujin) → Oleg Bondarev (obondarev) |
Fix proposed to branch: master /review. openstack. org/288271
Review: https:/