neutron/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native
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
..
__init__.py OVS-agent: Introduce Ryu based OpenFlow implementation 2015-09-02 14:05:18 +09:00
br_dvr_process.py OVS-agent: Introduce Ryu based OpenFlow implementation 2015-09-02 14:05:18 +09:00
br_int.py Change the order of installing flows for br-int 2017-01-19 16:35:34 +08:00
br_phys.py Cleanup stale OVS flows for physical bridges 2016-03-31 12:30:23 +00:00
br_tun.py Fix useless use of _nxm variant in an OVS field name 2016-09-16 18:15:44 +00:00
main.py OVS-agent: Introduce Ryu based OpenFlow implementation 2015-09-02 14:05:18 +09:00
ofswitch.py Adding the appropriate log hints where needed 2016-06-30 07:35:24 +00:00
ovs_bridge.py OVS agent: configure both OF10 and OF13 2016-09-21 11:41:19 +00:00
ovs_ryuapp.py ovs: bubble up failures into main thread in native ofctl mode 2017-05-31 07:06:21 -07:00