neutron/neutron/plugins/ml2/drivers/openvswitch
Rodolfo Alonso Hernandez 63ff0486a2 Remove sleep command when retrieving OVS dp
OVS agent is a single thread module executed on a os-ken AppManager
context. os-ken uses, by default (and no other implementation is
available today [1]), "eventlet" threads. Those threads are scheduled
manually by the code itself; the context switch is done through
yielding. The easiest way to do this is by executing:
  eventlet.sleep()

If the assigned thread is not ready to take the GIL and do not yield
back the executor, other threads will starve and eventually will
timeout.

This patch removes the "sleep" command during the DP retrieval. This
will keep the executor on the current thread and will prevent the
execution timeouts, as seen in the bug related.

[1]1f751b2d7d/os_ken/lib/hub.py

Closes-Bug: #1861269

Change-Id: I19e1af1bda788ed970d30ab251e895f7daa11e39
(cherry picked from commit 740741864a)
2020-02-03 09:38:44 +00:00
..
agent Remove sleep command when retrieving OVS dp 2020-02-03 09:38:44 +00:00
mech_driver Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00