OVS Neutron agent is marking port as dead before they are deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Ramu Ramamurthy |
Bug Description
The situation is happening on Liberty-3.
When trying to clear the gateway port and tenant network interface delete in router, the OVS agent is marking the port as dead instead of treat them as removed: security group removed and port_unbound
This is causing to left stale OVS flows in br-int, and it may affect the port_unbound() logic in ovs_neutron_
The ovs_neutron_agent is in one iteration of rpc_loop processing the deleted port via process_
In first iteration, the port deleting is triggered by port_delete() method:
2015-09-04 14:16:20.337 DEBUG neutron.
and in second iteration, the device removed is triggered by ovsdb:
2015-09-04 14:16:20.848 DEBUG neutron.
from (pid=136030) _read_stdout /opt/openstack/
Log from ovs neutron agent:
http://
Steps to reproduce:
1. Create router
2. Add tenant network interface to the router
3. Launch a VM
4. Add external network gateway to created router
5. Check the br-int for current port numbers
6. Remove external network gateway
7. Check the br-int for dead port flows (removed port qg-)
8. Remove the network interface from tenant network
9. Check the br-int for dead port flows.
Repeat the steps 4-9 few times to see if dead port flows will appear in br-int.
This is affecting the legacy, dvr and HA router.
Changed in neutron: | |
assignee: | nobody → Nandini (nandini-tata) |
Changed in neutron: | |
status: | In Progress → Fix Committed |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
tags: | removed: in-stable-liberty |
I can confirm that this reproduced for me.