diff --git a/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py b/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py index 3ca24d8980..5b467a86e7 100755 --- a/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py +++ b/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py @@ -761,6 +761,7 @@ class LinuxBridgeQuantumAgentRPC: def main(): + eventlet.monkey_patch() cfg.CONF(args=sys.argv, project='quantum') # (TODO) gary - swap with common logging @@ -798,5 +799,4 @@ def main(): sys.exit(0) if __name__ == "__main__": - eventlet.monkey_patch() main() diff --git a/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py b/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py index 301b186183..cde15a80b7 100755 --- a/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py +++ b/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py @@ -727,6 +727,7 @@ class OVSQuantumAgent(object): def main(): + eventlet.monkey_patch() cfg.CONF(args=sys.argv, project='quantum') # (TODO) gary - swap with common logging @@ -765,5 +766,4 @@ def main(): sys.exit(0) if __name__ == "__main__": - eventlet.monkey_patch() main()