]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
OVS agent: handle deleted ports on each rpc_loop iteration
authorOleg Bondarev <obondarev@mirantis.com>
Thu, 3 Sep 2015 13:31:33 +0000 (16:31 +0300)
committergongysh <gong.yongsheng@99cloud.net>
Sat, 5 Sep 2015 05:06:06 +0000 (05:06 +0000)
commit6d51ef5d2e275d0d260a592d3ab8ed8a76a63421
tree63349b572655f256566f1f8d1f872079082eddfa
parent8bd64edbd71031de4214e5cc61c91c599ea8aef4
OVS agent: handle deleted ports on each rpc_loop iteration

Currently rpc loop processes ports only in case polling is required
(message from ovsdb monitor) or there are port_updated notifications from
server or security group notifications.
In case of just port_deleted notifications port processing is not
triggered during rpc loop.
This may lead to agent accumulating a big amount of deleted ports
and processing all of them at once during next iteration when polling is
required or any notification from server, which might be quite tough for
the agent. Tough means agent will be irresponsive while processing deleted
ports.
The patch makes port deletion processing more gradual.

Closes-Bug: #1491922
Change-Id: I0e1f6dfbf5b56fb18a978d6214e1768560d8ac98
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py