keystone modwsgi python file has import failures

Bug #1466681 reported by Eric Peterson
This bug report is a duplicate of:  Bug #1465341: WSGI script not kilo compatable. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-keystone
In Progress
Undecided
Matt Fischer

Bug Description

https://github.com/openstack/puppet-keystone/blob/master/files/httpd/keystone.py

has an import problem:

[Thu Jun 18 23:04:02.394635 2015] [:error] [pid 8408] [remote 10.10.1.28:19685] Traceback (most recent call last):
[Thu Jun 18 23:04:02.394673 2015] [:error] [pid 8408] [remote 10.10.1.28:19685] File "/usr/lib/cgi-bin/keystone/main", line 39, in <module>
[Thu Jun 18 23:04:02.394757 2015] [:error] [pid 8408] [remote 10.10.1.28:19685] from keystone.openstack.common import log
[Thu Jun 18 23:04:02.394801 2015] [:error] [pid 8408] [remote 10.10.1.28:19685] ImportError: cannot import name log

Revision history for this message
Eric Peterson (ericpeterson-l) wrote :

Easy fix is to remove:

from keystone.openstack.common import log

and change this:
if CONF.debug:
    CONF.log_opt_values(log.getLogger(CONF.prog), logging.DEBUG)
To be:
if CONF.debug:
    CONF.log_opt_values(logging.getLogger(CONF.prog), logging.DEBUG)

Matt Fischer (mfisch)
Changed in puppet-keystone:
assignee: nobody → Matt Fischer (mfisch)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-keystone (master)

Change abandoned by Matt Fischer (<email address hidden>) on branch: master
Review: https://review.openstack.org/193679
Reason: duplicate

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.