summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dent <chdent@redhat.com>2015-04-23 14:01:35 +0000
committerChris Dent <chdent@redhat.com>2015-04-23 14:58:06 +0000
commitb0447ed8e7bee371bf7095c86e47d717abe89edc (patch)
tree1b396a5c1e10e44f29281187b0b45ddb598c0570
parent34fafade49b22ba5fbbe9696277985185efc6268 (diff)
downloadceilometer-b0447ed8e7bee371bf7095c86e47d717abe89edc.tar.gz
Have eventlet monkeypatch the time module2015.1.0rc22015.1.0
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
-rw-r--r--ceilometer/cmd/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometer/cmd/__init__.py b/ceilometer/cmd/__init__.py
index 0f74ba24..99efcc46 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)