]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Ensure that the neutron server is properly monkey patched
authorJason Dillaman <dillaman@redhat.com>
Tue, 9 Jul 2013 14:22:05 +0000 (10:22 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Jul 2013 18:08:21 +0000 (14:08 -0400)
The legacy 'quantum-server' script will apply the eventlet
monkey patch whereas the new 'neutron-server' entry point
does not.  This prevents the server from properly handling
the REST interface.

Fixes bug #1199383

Change-Id: I498d2b02e6018425fc4538eff6803df8971f8e82

neutron/server/__init__.py

index aedd1d428f048499396fde07f8dfdc3dcd5fa721..72a52b22e0917872928e12ca01e7b4ae2455681a 100755 (executable)
@@ -19,6 +19,7 @@
 # If ../neutron/__init__.py exists, add ../ to Python search path, so that
 # it will override what happens to be installed in /usr/(local/)lib/python...
 
+import eventlet
 import sys
 
 from oslo.config import cfg
@@ -28,6 +29,8 @@ from neutron import service
 
 
 def main():
+    eventlet.monkey_patch()
+
     # the configuration will be read into the cfg.CONF global data structure
     config.parse(sys.argv[1:])
     if not cfg.CONF.config_file: