Cannot debug with barbican-api

Bug #1670566 reported by Nam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Undecided
Nam

Bug Description

Currently, Barbican has a barbican/bin/barbican-api.py file to support debug. For example, we can use the file to debug with Pycharm.

But there is a problem when we run the file by python.

Here is log:

Traceback (most recent call last):
  File "./barbican-api", line 17, in <module>
    run()
  File "./barbican-api", line 12, in run
    relative_to='.')
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
    global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 317, in _loadconfig
    loader = ConfigLoader(path)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 393, in __init__
    with open(filename) as f:
IOError: [Errno 2] No such file or directory: './etc/barbican/barbican-api-paste.ini'

Nam (namnh)
Changed in barbican:
assignee: nobody → Nam (namnh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

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

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

Reviewed: https://review.openstack.org/442267
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=a740183e0822ea72b3fb79e7b3b1957307101fa3
Submitter: Jenkins
Branch: master

commit a740183e0822ea72b3fb79e7b3b1957307101fa3
Author: Nam Nguyen Hoai <email address hidden>
Date: Wed Mar 8 11:28:04 2017 +0700

    Debug with barbican-api

    This patch set will fix a bug related to
    debuging Barbican-api.

    Change-Id: I4513148e36c815679fb7240c215940aa4ef3fd3f
    Closes-Bug: #1670566

Changed in barbican:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/barbican 5.0.0.0b1

This issue was fixed in the openstack/barbican 5.0.0.0b1 development milestone.

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.