Start keyston with debug host and port fails

Bug #1135306 reported by Nachiappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Nachiappan

Bug Description

When i start keystone with the following command
keystone-all --pydev-debug-host localhost --pydev-debug-port 5678 --config-dir "./etc"

i get the below trace.

2013-02-27 22:25:36 ERROR [keystone.common.utils] Error setting up the debug environment. Verify that the option --debug-url has the format <host>:<port> and that a debugger processes is listening on that port.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/keystone-2013.1.a199.ge865b97-py2.7.egg/keystone/common/utils.py", line 304, in setup_remote_pydev_debug
    from pydev import pydevd
ImportError: No module named pydev
Traceback (most recent call last):
  File "/usr/local/bin/keystone-all", line 5, in <module>
    pkg_resources.run_script('keystone==2013.1.a199.ge865b97', 'keystone-all')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 1239, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/keystone-2013.1.a199.ge865b97-py2.7.egg/EGG-INFO/scripts/keystone-all", line 99, in <module>
    pydev_debug_url = utils.setup_remote_pydev_debug()
  File "/usr/local/lib/python2.7/dist-packages/keystone-2013.1.a199.ge865b97-py2.7.egg/keystone/common/utils.py", line 304, in setup_remote_pydev_debug
    from pydev import pydevd
ImportError: No module named pydev

I followed the instructions given in jetbrains web help to set up the debugger to connect with pycharm
http://www.jetbrains.com/pycharm/webhelp/remote-debugging-2.html

The reason for keystone not able to start in debug mode is that pydev package in pycharm-debug.egg is removed. Looks like this issue is also tracked in jetbrains http://youtrack.jetbrains.com/issue/PY-8824

Nachiappan (nachiappan)
Changed in keystone:
assignee: nobody → Nachiappan (nachiappan-veerappan-nachiappan)
Guang Yee (guang-yee)
Changed in keystone:
milestone: none → grizzly-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23663

Changed in keystone:
status: New → In Progress
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/23663
Committed: http://github.com/openstack/keystone/commit/6308bf1c715e3ae5b737c5a38f9676414c978bad
Submitter: Jenkins
Branch: master

commit 6308bf1c715e3ae5b737c5a38f9676414c978bad
Author: Nachiappan VR N <email address hidden>
Date: Tue Mar 5 21:37:05 2013 -0800

    Run keystone server in debug mode.

    keystone currently not able be to started in
    debug mode because pydev package in
    pycharm-debug.egg is removed. Fix is provided
    with the correct import statement.

    Fixes Bug #1135306

    Change-Id: I5588b768a4807b79ae1dabd7550cbee7d2c7505e

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-rc1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.