keystone (master) fails to start with syslog on

Bug #910436 reported by James E. Blair
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Undecided
James E. Blair
devstack
Fix Released
Undecided
James E. Blair

Bug Description

With SYSLOG=True and the master branch of keystone this happens:

Traceback (most recent call last):
  File "/opt/stack/keystone/bin/keystone", line 64, in <module>
    service.start(wait=False)
  File "/opt/stack/keystone/keystone/server.py", line 142, in start
    self.config, self.options, self.args)
  File "/opt/stack/keystone/keystone/common/config.py", line 332, in load_paste_app
    setup_logging(options, conf)
  File "/opt/stack/keystone/keystone/common/config.py", line 180, in setup_logging
    logfile = logging.FileHandler(logfile)
  File "/usr/lib/python2.7/logging/__init__.py", line 893, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 912, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/keystone/keystone-legacy-auth.log'

Devstack creates a keystone.conf with log_config set, but keystone doesn't actually honor log_config. Instead, it only looks for the --log-config command line option.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/2720

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/2720
Committed: http://github.com/openstack-dev/devstack/commit/0a22780dddbd35ef1464b0cdbe95b98c36d755ee
Submitter: Jenkins
Branch: master

commit 0a22780dddbd35ef1464b0cdbe95b98c36d755ee
Author: James E. Blair <email address hidden>
Date: Sat Dec 31 11:14:56 2011 -0800

    Use --log-config with keystone.

    Keystone does not support a log_config config file option. It
    only respects the command line argument.

    Fixes bug 910436.

    Change-Id: I276ad5da239d5d9b6a1dcdd1013972c7948c511b

Changed in devstack:
status: In Progress → Fix Committed
James E. Blair (corvus)
Changed in devstack:
assignee: nobody → James E. Blair (corvus)
Changed in openstack-ci:
assignee: nobody → James E. Blair (corvus)
status: New → Fix Released
Changed in devstack:
status: Fix Committed → Fix Released
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.