Have eventlet monkeypatch the time module

Without this, mongod retry logic in the various services started as
commands fails to behave as expected and does not reconnect as soon as
the mongod service has returned to availability.

In addition to the mongod sleep there are two other time.sleep calls
that may be reached by this change. Review and discussion with others
indicates that their behavior will continue to be correct with the
monkeypatch in place.

Cherry-pick from https://review.openstack.org/#/c/176751/

Change-Id: I4eca290acc3b06658951f070935ebb39936e13d3
Closes-Bug: #1447599
This commit is contained in:
Chris Dent 2015-04-23 14:01:35 +00:00
parent 34fafade49
commit b0447ed8e7
1 changed files with 1 additions and 1 deletions

View File

@ -19,4 +19,4 @@ import eventlet
# at least, oslo.messaging, otherwise everything's blocked on its
# first read() or select(), thread need to be patched too, because
# oslo.messaging use threading.local
eventlet.monkey_patch(socket=True, select=True, thread=True)
eventlet.monkey_patch(socket=True, select=True, thread=True, time=True)