neutron l3-agent-router-remove is not unscheduling dvr routers from L3-agents
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Stephen Ma |
Bug Description
In my environment where there is a compute node and a controller node.
On the compute node the L3-agent mode is 'dvr'.
On the controller node the L3-agent mode is 'dvr-snat'.
Nova-compute is only running on the compute node.
Start: the compute node has no VMs running, there are no namespaces on the compute node.
1. Created a network and a router
neutron net-create my-net
neutron subnet-create sb-my-net my-net 10.1.2.0/24
neutron router-create my-router
neutron router-
neutron router-gateway-set my-router public
my-net's UUID is 1162f283-
my-router's UUID is 4f357733-
2. Boot a VM
nova boot --flavor 1 --image <IMAGE> --nic net-id=
- The VM is hosted on the compute node.
3. Assign a floating IP to the VM
neutron port-list --device-id <vm-uuid>
neutron floatingip-create --port-id <vm-port-uuid> public
The fip namespace and the qrouter- 4f357733-
4. Delete the VM. On the compute node, the fip namespace went away as expected. But the qrouter namespace is left behind, but it should have been deleted. Neutron l3-agent-
stack@Dvr-
+----+-
| ID | Name | Status | Task State | Power State | Networks |
+----+-
+----+-
stack@Dvr-
+------
| id | host | admin_state_up | alive | ha_state |
+------
| 4fb0bc93-
| 733e31eb-
+------
5. Attempt to use neutron l3-agent-
stack@Dvr-
Removed router 4f357733-
stack@Dvr-
+------
| id | host | admin_state_up | alive | ha_state |
+------
| 4fb0bc93-
| 733e31eb-
+------
The errors in (4) and (5) did not happen on the stable/kilo or the stable/juno code:
i.) In (4) the router should no longer be scheduled on the compute node's L3 agent.
ii.) In (5) neutron l3-agent-
Both (4) and (5) indicates that no notification to remove the router is sent to the L3-agent on the compute node. They represent regressions in the latest neutron code.
description: | updated |
Changed in neutron: | |
assignee: | nobody → Stephen Ma (stephen-ma) |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
milestone: | none → liberty-rc1 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-rc1 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/217516
Review: https:/