diff --git a/dcdbsync/cmd/api.py b/dcdbsync/cmd/api.py index 898891c87..251610a34 100644 --- a/dcdbsync/cmd/api.py +++ b/dcdbsync/cmd/api.py @@ -25,6 +25,8 @@ import sys import eventlet +eventlet.monkey_patch(os=False) + from oslo_config import cfg from oslo_log import log as logging from oslo_service import systemd @@ -41,7 +43,6 @@ from dcdbsync.common import messaging CONF = cfg.CONF config.register_options() LOG = logging.getLogger('dcdbsync.api') -eventlet.monkey_patch(os=False) def main(): diff --git a/dcmanager/cmd/api.py b/dcmanager/cmd/api.py index 2f3bba76f..d62912fa3 100644 --- a/dcmanager/cmd/api.py +++ b/dcmanager/cmd/api.py @@ -27,6 +27,8 @@ import sys import eventlet +eventlet.monkey_patch(os=False) + from oslo_config import cfg from oslo_log import log as logging from oslo_service import systemd @@ -43,7 +45,6 @@ from dcorch.common import messaging as dcorch_messaging CONF = cfg.CONF config.register_options() LOG = logging.getLogger('dcmanager.api') -eventlet.monkey_patch(os=False) def main(): diff --git a/dcorch/cmd/api.py b/dcorch/cmd/api.py index fcfc60e23..3fd66ce3e 100644 --- a/dcorch/cmd/api.py +++ b/dcorch/cmd/api.py @@ -20,6 +20,8 @@ import sys import eventlet +eventlet.monkey_patch(os=False) + from oslo_config import cfg from oslo_log import log as logging from oslo_service import systemd @@ -36,7 +38,6 @@ from dcorch.common import messaging CONF = cfg.CONF config.register_options() LOG = logging.getLogger('dcorch.api') -eventlet.monkey_patch(os=False) def main(): diff --git a/dcorch/cmd/api_proxy.py b/dcorch/cmd/api_proxy.py index 74229a0dd..4df471f96 100644 --- a/dcorch/cmd/api_proxy.py +++ b/dcorch/cmd/api_proxy.py @@ -20,6 +20,8 @@ import sys import eventlet +eventlet.monkey_patch(os=False) + from oslo_config import cfg from oslo_log import log as logging from oslo_service import systemd @@ -58,7 +60,6 @@ config.register_options() CONF.register_cli_opts(proxy_cli_opts) LOG = logging.getLogger('dcorch.api.proxy') -eventlet.monkey_patch(os=False) def main():