Duplicated eventlet.wsgi.server log entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Paul Voccio |
Bug Description
Every entry in the keystone logs, at least those produced by ./run_tests.sh, are duplicated three times each:
I don't see any reason why this is occurring. The logger is also inappropriately promoting INFO events to WARNING's.
Sample log (line breaks added for emphasis):
2011-09-08 11:00:35 WARNING [eventlet.
2011-09-08 11:00:35 WARNING [eventlet.
2011-09-08 11:00:35 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
2011-09-08 11:00:36 WARNING [eventlet.
description: | updated |
description: | updated |
tags: | added: diablo-backport |
Changed in keystone: | |
milestone: | none → essex-1 |
Changed in keystone: | |
assignee: | nobody → Paul Voccio (pvo) |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
status: | Fix Released → Confirmed |
milestone: | essex-1 → essex-3 |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | essex-3 → 2012.1 |
It seems the load_paste_app method is being called twice from bin/keystone. This causes two log handlers to open the same file, keystone.log, and write the same information to the file.
# Start services load_paste_ app(
'keystone- legacy- auth', options, args) load_paste_ app(
'admin' , options, args)
try:
# Load Service API server
conf, app = config.
admin_conf, admin_app = config.
if I add the options['log_file'] line below, logging returns to "normal" though the log files are exactly the same.
In keystone/ common/ config. py: 321
options[ 'log_file' ] = "%s.log" % app_name
setup_ logging( options, conf)
try:
# Setup logging early, supplying both the CLI options and the
# configuration mapping from the config file