service: re-enable eventlet just for sockets
This reenables eventlet monkey patching, but just for socket, as that should be enough to get oslo.rpc unblocked and have the event loop running. Change-Id: I5e9b77a7931ceb69eac458634acdc904e30f0e3d Fixes-Bug: #127460
This commit is contained in:
parent
0404ce744e
commit
bce0327485
@ -21,6 +21,7 @@ import os
|
||||
import socket
|
||||
import sys
|
||||
|
||||
import eventlet
|
||||
from oslo.config import cfg
|
||||
from stevedore import named
|
||||
|
||||
@ -107,6 +108,9 @@ class DispatchedService(object):
|
||||
|
||||
|
||||
def prepare_service(argv=None):
|
||||
# NOTE(jd) We need to monkey patch the socket module for, at least,
|
||||
# oslo.rpc, otherwise everything's blocked on its first read()
|
||||
eventlet.monkey_patch(socket=True)
|
||||
gettextutils.install('ceilometer', lazy=True)
|
||||
rpc.set_defaults(control_exchange='ceilometer')
|
||||
cfg.set_defaults(log.log_opts,
|
||||
|
Loading…
x
Reference in New Issue
Block a user