]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add eventlet monkey_patch helper
authorAdelina Tuvenie <atuvenie@cloudbasesolutions.com>
Tue, 24 Mar 2015 10:06:21 +0000 (03:06 -0700)
committerAdelina Tuvenie <atuvenie@cloudbasesolutions.com>
Tue, 24 Mar 2015 15:44:00 +0000 (08:44 -0700)
commit8a3942d64a83d06aaaa23c1c3a0a9ad1e393f9c6
tree5c541beee3d8750c1fcc7692814b6c2a400f8178
parent97372fe6ff1ac620927bba0c2e9d0dfdb012c93d
Add eventlet monkey_patch helper

Eventlet monkey patching the os and thread modules causes subprocess.Popen
to fail on Windows when using pipes due to missing non-blocking IO support.
There is an reported bug on eventlet [1] with this issue. The solution
for this issue is to not monkey_patch os and thread.

This change is needed in order to run ovs_neutron_agent on Windows platforms.

[1] https://bitbucket.org/eventlet/eventlet/issue/132/eventletmonkey_patch-breaks

Partially implements blueprint: hyper-v-ovs-agent

Change-Id: I73f5dfc16563da2c09b5440a687484ba5a1fc2de
neutron/cmd/eventlet/__init__.py
neutron/cmd/eventlet/plugins/ovs_neutron_agent.py [new file with mode: 0644]
neutron/common/eventlet_utils.py [new file with mode: 0644]
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/__init__.py
setup.cfg