]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Monkey patch threading module as early as possible
authorIhar Hrachyshka <ihrachys@redhat.com>
Fri, 30 May 2014 13:53:25 +0000 (15:53 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 9 Jun 2014 14:42:47 +0000 (16:42 +0200)
commit6ca8cb84fd8f703367e1bd8ee1a2f26071116725
treef3b632be5511e743d4d7ac6a9ab4d5ee66db7e5b
parentf003fe27cbf95fb127a8c5f7bf5ab1ea0362ba9f
Monkey patch threading module as early as possible

In oslo.messaging, local thread store is used to pass RPC request
context [1]. If we try to import oslo.messaging before monkey patching
threading library, it attempts to access unpatched storage and fails
with AttributeError.

[1]: oslo/messaging/localcontext.py#L26

blueprint oslo-messaging

Change-Id: Ied7302fcb1d3e14428540e39e3db704550027890
27 files changed:
neutron/agent/dhcp_agent.py
neutron/agent/l3_agent.py
neutron/agent/metadata/agent.py
neutron/agent/metadata/namespace_proxy.py
neutron/agent/netns_cleanup_util.py
neutron/plugins/bigswitch/agent/restproxy_agent.py
neutron/plugins/hyperv/agent/hyperv_neutron_agent.py
neutron/plugins/ibm/agent/sdnve_neutron_agent.py
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/mlnx/agent/eswitch_neutron_agent.py
neutron/plugins/nec/agent/nec_neutron_agent.py
neutron/plugins/oneconvergence/agent/nvsd_neutron_agent.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/plugins/ryu/agent/ryu_neutron_agent.py
neutron/plugins/vmware/api_client/eventlet_client.py
neutron/server/__init__.py
neutron/services/firewall/agents/varmour/varmour_router.py
neutron/services/loadbalancer/agent/agent.py
neutron/services/loadbalancer/drivers/radware/driver.py
neutron/services/metering/agents/metering_agent.py
neutron/tests/unit/hyperv/test_hyperv_neutron_agent.py
neutron/tests/unit/nec/test_nec_agent.py
neutron/tests/unit/oneconvergence/test_nvsd_agent.py
neutron/tests/unit/services/loadbalancer/agent/test_agent.py
neutron/tests/unit/test_metadata_agent.py
neutron/tests/unit/test_metadata_namespace_proxy.py
neutron/wsgi.py