keystone fails to start.

Bug #933234 reported by Chuck Short
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Adam Gandelman

Bug Description

When starting keysone, I get the following traceback:

root@kenny:/etc/keystone# keystone-all --config-file=/etc/keystone/keystone.conf -d
Traceback (most recent call last):
  File "/usr/bin/keystone-all", line 56, in <module>
    config.setup_logging(CONF)
  File "/usr/lib/python2.7/dist-packages/keystone/config.py", line 71, in setup_logging
    logging.config.fileConfig(conf.log_config)
AttributeError: 'module' object has no attribute 'config'
root@kenny:/etc/keystone#

Revision history for this message
Fabrice A. Marie (0-fabrice) wrote :

Try this patch. Works for me.

--- a/keystone/config.py
+++ b/keystone/config.py
@@ -20,6 +20,7 @@ import os

 from keystone.common import cfg
 from keystone.common import logging
+import logging.config

 gettext.install('keystone', unicode=1)

Revision history for this message
Joseph Heck (heckj) wrote : Re: [Bug 933234] Re: keystone fails to start.

Chuck - when did you hit this bug? I thought I recall a patch last week that resolved exactly this.

-joe

On Feb 19, 2012, at 10:16 PM, "Fabrice A. Marie" <email address hidden> wrote:

> Try this patch. Works for me.
>
>
> --- a/keystone/config.py
> +++ b/keystone/config.py
> @@ -20,6 +20,7 @@ import os
>
> from keystone.common import cfg
> from keystone.common import logging
> +import logging.config
>
>
> gettext.install('keystone', unicode=1)
>
> --
> You received this bug notification because you are a member of Keystone
> Bugs, which is subscribed to Keystone.
> https://bugs.launchpad.net/bugs/933234
>
> Title:
> keystone fails to start.
>
> Status in OpenStack Identity (Keystone):
> New
>
> Bug description:
> When starting keysone, I get the following traceback:
>
> root@kenny:/etc/keystone# keystone-all --config-file=/etc/keystone/keystone.conf -d
> Traceback (most recent call last):
> File "/usr/bin/keystone-all", line 56, in <module>
> config.setup_logging(CONF)
> File "/usr/lib/python2.7/dist-packages/keystone/config.py", line 71, in setup_logging
> logging.config.fileConfig(conf.log_config)
> AttributeError: 'module' object has no attribute 'config'
> root@kenny:/etc/keystone#
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/keystone/+bug/933234/+subscriptions

Revision history for this message
Joseph Heck (heckj) wrote :

Ah - it's not approved yet, in progress: https://review.openstack.org/#change,4268 resolving this.

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

Reviewed: https://review.openstack.org/4268
Committed: http://github.com/openstack/keystone/commit/546f952f91fab90fbb705c07d117285687bdbc5c
Submitter: Jenkins
Branch: master

commit 546f952f91fab90fbb705c07d117285687bdbc5c
Author: Adam Gandelman <email address hidden>
Date: Thu Feb 16 17:20:14 2012 -0800

    Fix logging.config import

    import logging.config, assign it to an attribute where keystone-all
    expects it. Fixes bug #933234

    Change-Id: I0004900f5b68b86cd97d1bfe4036599ea2af1d69

Changed in keystone:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → essex-4
status: Fix Committed → Fix Released
Mark McLoughlin (markmc)
Changed in keystone:
assignee: nobody → Adam Gandelman (gandelman-a)
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-4 → 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.