From 11ade403b12c3941b43cd8f26b7d765541707c86 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Thu, 23 Apr 2015 14:01:35 +0000 Subject: [PATCH] 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. Change-Id: I4eca290acc3b06658951f070935ebb39936e13d3 Closes-Bug: #1447599 --- ceilometer/cmd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceilometer/cmd/__init__.py b/ceilometer/cmd/__init__.py index 0f74ba241..99efcc467 100644 --- a/ceilometer/cmd/__init__.py +++ b/ceilometer/cmd/__init__.py @@ -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)