[Openstack] Keystone Not Logging

Adam Gandelman adamg at canonical.com
Mon Mar 19 19:03:32 UTC 2012


Kevin, Dolph--

Getting this working out-of-the-box has been a TODO of mine for a 
while.  I've filed https://bugs.launchpad.net/keystone/+bug/959610  to 
track.    Adding the example dolph mentioned did not seem to get any log 
output generated.

@Kevin- The logging.conf installed in the current Ubuntu packages is the 
logging.conf that was previously shipped in the pre-KSL keystone 
branch.  The current logging.conf.sample in the source tree seems to be 
copied from glance.  This is also installed at 
/etc/keystone/logging.conf.sample alongside the version we maintain in 
packaging.

Adam


On 03/18/2012 01:03 PM, Kevin Jackson wrote:
> Hi,
> I have Keystone set up (2012.1~rc1~20120316.2145-0ubuntu1) on Ubuntu 
> 12.04 B1 and it isn't logging.
> Only when stopping the keystone service then running 'keystone-all' in 
> a terminal do I get to see all the debug output.
> I've checked permissions (/var/log/keystone and keystone.log are owned 
> by keystone user/group) and I've tried the packaged 
> logging.conf.sample (note the ubuntu package ships with this 
> referencing 'glance') to no avail.
>
> /etc/keystone/keystone.conf
> ...
> verbose = True
> debug = True
> log_config = /etc/keystone/logging.conf
> ...
>
>
> /etc/keystone/logging.conf
> [loggers]
> keys=root,keystone,combined
>
> [formatters]
> keys=normal,normal_with_name,debug
>
> [handlers]
> keys=production,file,devel
>
> [logger_root]
> level=NOTSET
> handlers=devel
>
> [logger_keystone]
> level=DEBUG
> handlers=devel
> qualname=keystone
>
> [logger_combined]
> level=DEBUG
> handlers=devel
> qualname=keystone-combined
>
> [handler_production]
> class=handlers.SysLogHandler
> level=ERROR
> formatter=normal_with_name
> args=(('localhost', handlers.SYSLOG_UDP_PORT), 
> handlers.SysLogHandler.LOG_USER)
>
> [handler_file]
> class=FileHandler
> level=DEBUG
> formatter=normal_with_name
> args=('/var/log/keystone/keystone.log', 'w')
>
> [handler_devel]
> class=StreamHandler
> level=NOTSET
> formatter=debug
> args=(sys.stdout,)
>
> [formatter_normal]
> format=%(asctime)s %(levelname)s %(message)s
>
> [formatter_normal_with_name]
> format=(%(name)s): %(asctime)s %(levelname)s %(message)s
>
> [formatter_debug]
> format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s 
> %(message)s
>
>
>
> Is anyone able to help out what's up with this?
>
> Cheers,
>
> Kev
> -- 
> Kevin Jackson
> @itarchitectkev
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120319/18fddf70/attachment.html>


More information about the Openstack mailing list