Multiple l3 agents are scheduled to host one newly created router if multiple interfaces are added at the same time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
John Schwarz |
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:
router_
When we add interfaces of multiple subnets to a newly created router, we might end up with more than one l3 agents hosting this router. This bug is not easy to reproduce. You may need to repeat the following steps several times.
How to reproduce:
Prerequisite
make the following changes in neutron.conf
[DEFAULT]
router_
Step 0: Confirm multiple l3 agents are running
$ neutron agent-list --agent_type='L3 agent'
my result is shown http://
Step 1: Create two networks
$ neutron net-create net-l3agent-test-1
$ neutron net-create net-l3agent-test-2
Step 2: Add one subnet to each of the two networks
$ neutron subnet-create --name subnet-
$ neutron subnet-create --name subnet-
Step 3: Create a router
$ neutron router-create router-l3agent-test
Step 4: Add the two subnets as the router's interfaces immediately after creating the router at the same time
On controller1:
$ neutron router-
On controller2:
$ neutron router-
Step 5: Check which l3 agent(s) is/are hosting the router
$ neutron l3-agent-
my result is shown http://
If you end up with only one l3 agent, please proceed as follows
Step 6: Clear interfaces on the router
$ neutron router-
$ neutron router-
Step 7: Delete the router
$ neutron router-delete router-l3agent-test
Go back to Step 3-5
Changed in neutron: | |
assignee: | nobody → Lujin Luo (luo-lujin) |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → Medium |
What's kind of router in the issue? Legacy? HA?