exception due to missing include when using configurtaion option log_config

Bug #1047273 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Gary Kotton

Bug Description

gkotton@gkotton-ubuntu12:/opt/stack/quantum$ cd /opt/stack/quantum && sudo python /opt/stack/quantum/bin/quantum-server --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
ERROR:root:in WsgiService.create()
Traceback (most recent call last):
  File "/opt/stack/quantum/quantum/service.py", line 78, in serve_wsgi
    service = cls.create()
  File "/opt/stack/quantum/quantum/service.py", line 61, in create
    config.setup_logging(cfg.CONF)
  File "/opt/stack/quantum/quantum/common/config.py", line 82, in setup_logging
    logging.config.fileConfig(conf.log_config)
AttributeError: 'module' object has no attribute 'config'
Traceback (most recent call last):
  File "/opt/stack/quantum/bin/quantum-server", line 26, in <module>
    server()
  File "/opt/stack/quantum/quantum/server/__init__.py", line 40, in main
    quantum_service = service.serve_wsgi(service.QuantumApiService)
  File "/opt/stack/quantum/quantum/service.py", line 78, in serve_wsgi
    service = cls.create()
  File "/opt/stack/quantum/quantum/service.py", line 61, in create
    config.setup_logging(cfg.CONF)
  File "/opt/stack/quantum/quantum/common/config.py", line 82, in setup_logging
    logging.config.fileConfig(conf.log_config)
AttributeError: 'module' object has no attribute 'config'
gkotton@gkotton-ubuntu12:/opt/stack/quantum$

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

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

Changed in quantum:
assignee: nobody → Gary Kotton (garyk)
status: New → In Progress
Gary Kotton (garyk)
Changed in quantum:
milestone: none → folsom-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/12563
Committed: http://github.com/openstack/quantum/commit/c02139a01beb02679202a7d2cc4afe43bd3e1482
Submitter: Jenkins
Branch: master

commit c02139a01beb02679202a7d2cc4afe43bd3e1482
Author: Gary Kotton <email address hidden>
Date: Fri Sep 7 06:37:06 2012 -0400

    Add missing include for logging when log_config is used

    Fixes bug 1047273

    Change-Id: I7fb8a504acf8fa910100d9798e2a35274aa5a103

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-rc1 → 2012.2
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.