c-vol service not debuggable in PyCharm

Bug #1384872 reported by Clinton Knight
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Clinton Knight

Bug Description

Debugging the Cinder services in PyCharm works well, except for c-vol which yields the below error. Setting the binary name in the service launcher resolves the issue.

Connected to pydev debugger (build 135.1057)
pydev debugger: process 29350 is connecting

pydev debugger: warning: trying to add breakpoint to file that does not exist: /opt/stack/cinder/cinder/volume/drivers/netapp/dataontap/block_7mode.py (will have no effect)
2014-10-23 14:55:41.731 CRITICAL cinder [-] NoSuchOptError: no such option: pydevd.py_manager

2014-10-23 14:55:41.731 TRACE cinder Traceback (most recent call last):
2014-10-23 14:55:41.731 TRACE cinder File "/opt/pycharm-3.4.1/helpers/pydev/pydevd.py", line 1733, in <module>
2014-10-23 14:55:41.731 TRACE cinder debugger.run(setup['file'], None, None)
2014-10-23 14:55:41.731 TRACE cinder File "/opt/pycharm-3.4.1/helpers/pydev/pydevd.py", line 1226, in run
2014-10-23 14:55:41.731 TRACE cinder pydev_imports.execfile(file, globals, locals) # execute the script
2014-10-23 14:55:41.731 TRACE cinder File "/opt/stack/cinder/bin/cinder-volume", line 74, in <module>
2014-10-23 14:55:41.731 TRACE cinder service_name=backend)
2014-10-23 14:55:41.731 TRACE cinder File "/opt/stack/cinder/cinder/service.py", line 231, in create
2014-10-23 14:55:41.731 TRACE cinder manager = CONF.get('%s_manager' % subtopic, None)
2014-10-23 14:55:41.731 TRACE cinder File "/usr/lib/python2.7/_abcoll.py", line 363, in get
2014-10-23 14:55:41.731 TRACE cinder return self[key]
2014-10-23 14:55:41.731 TRACE cinder File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1689, in __getitem__
2014-10-23 14:55:41.731 TRACE cinder return self.__getattr__(key)
2014-10-23 14:55:41.731 TRACE cinder File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1685, in __getattr__
2014-10-23 14:55:41.731 TRACE cinder raise NoSuchOptError(name)
2014-10-23 14:55:41.731 TRACE cinder NoSuchOptError: no such option: pydevd.py_manager
2014-10-23 14:55:41.731 TRACE cinder
Unhandled exception in thread started by <bound method WriterThread.__bootstrap of <WriterThread(pydevd.Writer, started 140348862347008)>>
Error in sys.excepthook:
Traceback (most recent call last):
  File "/opt/stack/cinder/cinder/openstack/common/log.py", line 390, in logging_excepthook
    getLogger(product_name).critical(
TypeError: 'NoneType' object is not callable

Changed in cinder:
assignee: nobody → Clinton Knight (clintonk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/131262
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=fd6d2f289f017d7b74a25b329cbf789695aa1b86
Submitter: Jenkins
Branch: master

commit fd6d2f289f017d7b74a25b329cbf789695aa1b86
Author: Clinton Knight <email address hidden>
Date: Thu Oct 23 15:46:29 2014 -0400

    Fix for debugging c-vol in PyCharm

    Change-Id: I76a6bf44630d33fbc9e33cf79ab859621d215599
    Closes-bug: 1384872

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-1 → 2015.1.0
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.