]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add catch-call try/catch within rpc_loop in ovs plugin agent
authorDan Wendlandt <dan@nicira.com>
Fri, 21 Sep 2012 04:49:51 +0000 (21:49 -0700)
committerDan Wendlandt <dan@nicira.com>
Fri, 21 Sep 2012 04:49:51 +0000 (21:49 -0700)
commita13a5737cde4f81e51a2f939f77fdd35d8ab483e
tree0f63042100b41c2d0c9c86f6d7d885f624798afc
parent3fecbfe002304a96637ea8e81d8eaf881a651245
Add catch-call try/catch within rpc_loop in ovs plugin agent

related to bug 1050512

when running in db-mode, the ovs plugin agent will catch any unexpected
exceptions generated during processing.  However, in rpc-mode, this
does not happen, meaning a small error, even a transient one, causes the
agent to exit completely.  Thic change adds a try-catch block to the
rcp_loop(), causing the agent to log any unexpected exception, wait for
the polling period, then retry the loop after resetting all state.

Change-Id: I76eae1800831e59c5078c4be8fa5ca22298bfb0a
quantum/plugins/openvswitch/agent/ovs_quantum_agent.py