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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1236182

Title:
  load_paste_app should raise ConfigFilesNotFoundError if api-paste.ini
  is not found

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  If the file specified by CONF.api_paste_config is not found, neutron-
  server dies with the message below. We can express more clearly the
  fact that the file is not found.

  2013-10-07 15:25:52.015 CRITICAL neutron [-] 'NoneType' object has no 
attribute 'startswith'
  2013-10-07 15:25:52.015 TRACE neutron Traceback (most recent call last):
  2013-10-07 15:25:52.015 TRACE neutron   File "/usr/local/bin/neutron-server", 
line 10, in <module>
  2013-10-07 15:25:52.015 TRACE neutron     sys.exit(main())
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/opt/stack/neutron/neutron/server/__init__.py", line 44, in main
  2013-10-07 15:25:52.015 TRACE neutron     neutron_service = 
service.serve_wsgi(service.NeutronApiService)
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/opt/stack/neutron/neutron/service.py", line 96, in serve_wsgi
  2013-10-07 15:25:52.015 TRACE neutron     service.start()
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/opt/stack/neutron/neutron/service.py", line 65, in start
  2013-10-07 15:25:52.015 TRACE neutron     self.wsgi_app = 
_run_wsgi(self.app_name)
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/opt/stack/neutron/neutron/service.py", line 109, in _run_wsgi
  2013-10-07 15:25:52.015 TRACE neutron     app = 
config.load_paste_app(app_name)
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/opt/stack/neutron/neutron/common/config.py", line 140, in load_paste_app
  2013-10-07 15:25:52.015 TRACE neutron     cfg.CONF.api_paste_config))
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/usr/lib/python2.7/posixpath.py", line 343, in abspath
  2013-10-07 15:25:52.015 TRACE neutron     if not isabs(path):
  2013-10-07 15:25:52.015 TRACE neutron   File 
"/usr/lib/python2.7/posixpath.py", line 53, in isabs
  2013-10-07 15:25:52.015 TRACE neutron     return s.startswith('/')
  2013-10-07 15:25:52.015 TRACE neutron AttributeError: 'NoneType' object has 
no attribute 'startswith'

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to