diff options
author | John Bresnahan <jbresnah@redhat.com> | 2012-12-19 07:13:24 -1000 |
---|---|---|
committer | John Bresnahan <jbresnah@redhat.com> | 2012-12-21 04:57:41 -1000 |
commit | 0f225743e8644416df2f200d710912c40b7acd47 (patch) | |
tree | 334effb31a6698aa79d79077e5c522aad733f9ca /bin | |
parent | ac2d92ca2eea1070f765be320acb62fd5bef6dd3 (diff) | |
download | keystone-0f225743e8644416df2f200d710912c40b7acd47.tar.gz keystone-0f225743e8644416df2f200d710912c40b7acd47.tar.xz keystone-0f225743e8644416df2f200d710912c40b7acd47.zip |
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 <host>
--pydev-debug-port <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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/keystone-all | 7 |
1 files changed, 7 insertions, 0 deletions
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) |