Exception with invalid config will be shadowed

Bug #1218090 reported by Nachi Ueno
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Confirmed
Medium
Unassigned

Bug Description

Exception with invalid config will be shadowed.

We will get this error instead of the real cause.

2013-08-28 14:27:33.119 30987 INFO neutron.common.config [-] Config paste file: /etc/neutron/api-paste.ini
2013-08-28 14:27:33.120 30987 ERROR neutron.common.config [-] Unable to load quantum from configuration file /etc/neutron/api-paste.ini.
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config Traceback (most recent call last):
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/opt/stack/neutron/neutron/common/config.py", line 144, in load_paste_app
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config app = deploy.loadapp("config:%s" % config_path, name=app_name)
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config return loadobj(APP, uri, name=name, **kw)
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config global_conf=global_conf)
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config global_conf=global_conf)
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config return loader.get_context(object_type, name, global_conf)
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config object_type, name=name)
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config self.filename))
2013-08-28 14:27:33.120 30987 TRACE neutron.common.config LookupError: No section 'quantum' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/neutron/api-paste.ini

https://github.com/openstack/neutron/blob/master/neutron/service.py#L97
should be improved for better exception handling.

Nachi Ueno (nati-ueno)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

this bug is duplicate with https://bugs.launchpad.net/neutron/+bug/1210236 which already assigned to Salvatore Orlando but with status=new

however, this bug description is more generic, so it may be better to assign it to Salvatore Orlando and mark 1210236 as duplicate

Revision history for this message
Nachi Ueno (nati-ueno) wrote :

Thanks! I set duplicate flag

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.