← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1259183] Re: wsgi.Loader should ensure the config_path is absolute

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1259183

Title:
  wsgi.Loader should ensure the config_path is absolute

Status in OpenStack Compute (Nova):
  Fix Released

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/devstack

  [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/nova/nova/wsgi.py:485
  2013-12-09 09:18:40.083 CRITICAL nova [-] Cannot resolve relative uri 'config:api-paste.ini'; no relative_to keyword argument given
  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/nova-api", line 10, in <module>
  2013-12-09 09:18:40.083 TRACE nova     sys.exit(main())
  2013-12-09 09:18:40.083 TRACE nova   File "/opt/stack/nova/nova/cmd/api.py", line 49, in main
  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/nova/nova/service.py", line 308, in __init__
  2013-12-09 09:18:40.083 TRACE nova     self.app = self.loader.load_app(name)
  2013-12-09 09:18:40.083 TRACE nova   File "/opt/stack/nova/nova/wsgi.py", line 486, in load_app
  2013-12-09 09:18:40.083 TRACE nova     return deploy.loadapp("config:%s" % self.config_path, name=name)
  2013-12-09 09:18:40.083 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
  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/python2.7/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
  2013-12-09 09:18:40.083 TRACE nova     global_conf=global_conf)
  2013-12-09 09:18:40.083 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
  2013-12-09 09:18:40.083 TRACE nova     global_conf=global_conf)
  2013-12-09 09:18:40.083 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 308, in _loadconfig
  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:api-paste.ini'; no relative_to keyword argument given
  2013-12-09 09:18:40.083 TRACE nova

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1259183/+subscriptions


References