Import failure error does not appear in logfile

Bug #900451 reported by Lorin Hochstein
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Ziad Sawalha

Bug Description

If you try to run keystone and the passlib Python package isn't there, the error message appears on standard error instead of the log file:

$ sudo -u keystone /usr/bin/keystone --config-file=/etc/keystone/keystone.conf --log-file=/var/log/keystone/keystone.log
ERROR: Unable to load keystone-legacy-auth from configuration file /etc/keystone/keystone.conf.
Got: ImportError('No module named passlib.hash',)

This makes debugging more difficult if keystone is started in an init script, since this error message doesn't get logged anywhere.

Changed in keystone:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Rackspace Integration (rackspace-integration)
milestone: none → essex-3
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/2698

Changed in keystone:
status: Confirmed → In Progress
Joe Savak (jsavak)
Changed in keystone:
assignee: Rackspace Integration (rackspace-integration) → Ziad Sawalha (ziad-sawalha)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/2698
Committed: http://github.com/openstack/keystone/commit/105b90844af9ddd7bb25dab886a70c4887c66766
Submitter: Jenkins
Branch: master

commit 105b90844af9ddd7bb25dab886a70c4887c66766
Author: Ziad Sawalha <email address hidden>
Date: Fri Dec 30 13:06:36 2011 -0600

    Front-end logging

    - Added logging to Front-end components
    - Replaced console logging with log info events
    - Addresses some of bug 900451 (import exception
      mentioned will get logged to logger, but logger
      is not yet initialized by that time)
    - blueprint keystone-logging

    Change-Id: I1dce90b9876d7bc26c090d757b44f7321bc32f9d

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: essex-3 → 2012.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.