neutron/neutron/plugins/ml2/drivers/openvswitch
Ihar Hrachyshka d54fc45d3e ovs: bubble up failures into main thread in native ofctl mode
When native ofctl interface is used (the default), the agent main() is
running in a separate gevent thread. Unless we explicitly request from
ryu to raise errors that may have happened in the agent app, it will
ignore them (only logging a warning message). This may interfere with
service management software like systemd that may use the return code to
decide whether to restart the dead service.

This patch makes ryu raise any uncaught errors happening inside the
agent. It also makes the agent 'wrapper' helper function not to swallow
raised exceptions on logging the error. Those two changes combined make
the agent exit with rc=1 if an exception happens inside the main()
function when in native mode.

This patch doesn't include any unit tests because those would be very
silly (like checking that we indeed pass the needed arguments to ryu).

Change-Id: Ic86b5eeae25a916c3c51f21e6820f5b0212dd5f8
Closes-Bug: #1694505
(cherry picked from commit f79ce2d272)
2017-05-31 07:06:21 -07:00
..
agent ovs: bubble up failures into main thread in native ofctl mode 2017-05-31 07:06:21 -07:00
mech_driver Set bridge_name in OVS trunk port's vif_details 2016-08-08 18:35:18 -06:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00