keystone logging not configured correctly for OpenStack Icehouse

Bug #1433595 reported by Florian Ermisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystone (Ubuntu)
Fix Released
Low
Unassigned
Trusty
Triaged
Medium
Unassigned
Vivid
Fix Released
Low
Unassigned
Wily
Fix Released
Low
Unassigned

Bug Description

So my Keystone doesn't work because it can't connect to it's DB, understandable.

But why is its configured logfile empty and the error is only logged to stderr*?

root@hw-ctrl:~# grep log /etc/keystone/logging.conf
[loggers]
[logger_root]
args=('/var/log/keystone/keystone.log', 'a')
root@hw-ctrl:~# grep "Access denied" /var/log/upstart/keystone.log | tail -n 1
2015-03-18 14:31:38.633 9577 TRACE keystone.common.wsgi OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'192.168.2.10' (using password: YES)") None None
root@hw-ctrl:~# grep "Access denied" /var/log/upstart/keystone.log | wc -l
56
root@hw-ctrl:~# ls -al /var/log/keystone/
total 8
drwx------ 2 keystone keystone 4096 Mär 18 12:17 .
drwxrwxr-x 14 root syslog 4096 Mär 18 12:17 ..

*) and thus ends up in /var/log/upstart/keystone.log on Ubuntu

Revision history for this message
Florian Ermisch (0xf10e) wrote :

Ah, crap, forgot versions...

So, Icehouse on Ubuntu 14.04 with CloudArchive pkgs.
Keystone is version 2014.1.3-0ubuntu2.1.

Anything else you need to know?

Dolph Mathews (dolph)
affects: keystone → keystone (Ubuntu)
James Page (james-page)
Changed in keystone (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
James Page (james-page) wrote :

This is due to the fact that the keystone daemon is not started with a --log-file parameter like all other openstack daemons; this is fixed in release since Ubuntu vivid (and for OpenStack Kilo) but will cause /var/log/keystone/keystone.log to not be used for Icehouse/Juno.

Triaging accordingly

Changed in keystone (Ubuntu Wily):
status: Triaged → Fix Released
Changed in keystone (Ubuntu Vivid):
status: New → Fix Released
importance: Undecided → Low
Changed in keystone (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Medium
summary: - Keystone writes "Access denied" for DB-Connection to its configured
- logfile
+ keystone logging not configured correctly for OpenStack Icehouse
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.