From 0f225743e8644416df2f200d710912c40b7acd47 Mon Sep 17 00:00:00 2001 From: John Bresnahan Date: Wed, 19 Dec 2012 07:13:24 -1000 Subject: Adding a means to connect back to a pydevd debugger. That patch allows a developer to remotely run a pydev debugger and have the keystone-all process connect back to it. Two command line options are introduced: --pydev-debug-host --pydev-debug-port both of the above options are required to enable this behavior. This patch only enables this behavior when the service is started with keystone-all. In the future parts of this patch can be used to enable this behavior when running in Apache. Change-Id: I92f99fa34112336a96e42e8261b7313f23ee994e --- bin/keystone-all | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/keystone-all b/bin/keystone-all index bcb9f4f9..ca700110 100755 --- a/bin/keystone-all +++ b/bin/keystone-all @@ -91,6 +91,13 @@ if __name__ == '__main__': sys.exit(1) monkeypatch_thread = not CONF.standard_threads + pydev_debug_url = utils.setup_remote_pydev_debug() + if pydev_debug_url: + # in order to work around errors caused by monkey patching we have to + # set the thread to False. An explanation is here: + # http://lists.openstack.org/pipermail/openstack-dev/2012-August/ + # 000794.html + monkeypatch_thread = False eventlet.patcher.monkey_patch(all=False, socket=True, time=True, thread=monkeypatch_thread) -- cgit