wsgi.Loader should ensure the config_path is absolute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Unassigned |
Bug Description
nova-api service will fail to start when the nova-api command is invoked from a directory containing a file with the same name as the one specified in the configuration key 'api_paste_config' if it is not an absolute path (the default is 'api-paste.ini').
[fedora@devstack1 devstack]$ pwd
/home/fedora/
[fedora@devstack1 devstack]$ grep api_paste_conf /etc/nova/nova.conf
api_paste_config = api-paste.ini
[fedora@devstack1 devstack]$ touch api-paste.ini
[fedora@devstack1 devstack]$ nova-api
2013-12-09 09:18:40.082 DEBUG nova.wsgi [-] Loading app ec2 from api-paste.ini from (pid=4817) load_app /opt/stack/
2013-12-09 09:18:40.083 CRITICAL nova [-] Cannot resolve relative uri 'config:
2013-12-09 09:18:40.083 TRACE nova Traceback (most recent call last):
2013-12-09 09:18:40.083 TRACE nova File "/usr/bin/
2013-12-09 09:18:40.083 TRACE nova sys.exit(main())
2013-12-09 09:18:40.083 TRACE nova File "/opt/stack/
2013-12-09 09:18:40.083 TRACE nova max_url_len=16384)
2013-12-09 09:18:40.083 TRACE nova File "/opt/stack/
2013-12-09 09:18:40.083 TRACE nova self.app = self.loader.
2013-12-09 09:18:40.083 TRACE nova File "/opt/stack/
2013-12-09 09:18:40.083 TRACE nova return deploy.
2013-12-09 09:18:40.083 TRACE nova File "/usr/lib/
2013-12-09 09:18:40.083 TRACE nova return loadobj(APP, uri, name=name, **kw)
2013-12-09 09:18:40.083 TRACE nova File "/usr/lib/
2013-12-09 09:18:40.083 TRACE nova global_
2013-12-09 09:18:40.083 TRACE nova File "/usr/lib/
2013-12-09 09:18:40.083 TRACE nova global_
2013-12-09 09:18:40.083 TRACE nova File "/usr/lib/
2013-12-09 09:18:40.083 TRACE nova "argument given" % uri)
2013-12-09 09:18:40.083 TRACE nova ValueError: Cannot resolve relative uri 'config:
2013-12-09 09:18:40.083 TRACE nova
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → icehouse-2 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-2 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/#/c/ 60838/
https:/