Logging error after refresh from Oslo Logging repo

Bug #1287993 reported by Chad Lung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Critical
Chad Lung

Bug Description

A recent update of the Oslo Common code, in particular log.py is causing an issue when you run Barbican in both DevStack and standalone.

Ultimate the error boils down to:
oslo.config.cfg.NoSuchOptError: no such option: log_config

This is because of a naming change done to log.py back on Oct. 2013:
https://github.com/openstack/oslo-incubator/commit/5fef5a8105a85dd8ac07153c48f991fee9726260

When you attempt to start Barbican using the standard uWSGI command as noted in the wiki you will get the error.

Chad Lung (chad-lung)
Changed in barbican:
assignee: nobody → Chad Lung (chad-lung)
status: New → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

I wonder why import_opt wasn't throwing an error?

Revision history for this message
Chad Lung (chad-lung) wrote :

Hi Doug,

I didn't put the whole stack trace in, but I did capture the import_opt error I believe you are referring to.

More of the stack trace:

 from barbican.common import config

  File "/opt/stack/barbican/barbican/common/config.py", line 35, in <module>

    CONF.import_opt('log_config', 'barbican.openstack.common.log')

  File "/opt/stack/oslo.config/oslo/config/cfg.py", line 1765, in import_opt

    APP, pipeline[-1], global_conf)

  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in

Revision history for this message
John Vrbanac (john.vrbanac) wrote :

The devstack gate is no longer failing as a result of this change. This is evident in the following log: http://logs.openstack.org/57/78057/1/check/gate-barbican-devstack-dsvm/92409cb/console.html

Resolving bug...

Changed in barbican:
status: In Progress → Fix Released
importance: Undecided → Critical
milestone: none → icehouse-3
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.