← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1499462] [NEW] Apache/WSGI configuration requires editing keystone-paste.ini

 

Public bug reported:

Changes to the Apache/WSGI implementation for Liberty (wsgi-
keystone.conf) requires editing the keystone-paste.ini file and
modifying the [composite:main] and [composite:admin] directives to
[composite:keystone-wsgi-public] and [composite:keystone-wsgi-admin],
respectively, otherwise the following error appears and the API returns
a 500 code to the client:

mod_wsgi (pid=874): Target WSGI script '/usr/local/bin/keystone-wsgi-admin' cannot be loaded as Python module.
mod_wsgi (pid=874): Exception occurred processing WSGI script '/usr/local/bin/keystone-wsgi-admin'.
 Traceback (most recent call last):
 File "/usr/local/bin/keystone-wsgi-admin", line 25, in <module>
     application = wsgi_server.initialize_application(name)
   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 51, in initialize_application
     startup_application_fn=loadapp)
   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 43, in setup_backends
     res = startup_application_fn()
   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 48, in loadapp
     'config:%s' % config.find_paste_config(), name)
   File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 46, in loadapp
     controllers.latest_app = deploy.loadapp(conf, name=name)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
     global_conf=global_conf)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
     global_conf=global_conf)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
     return loader.get_context(object_type, name, global_conf)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
     object_type, name=name)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
     self.filename))
 LookupError: No section 'keystone-wsgi-admin' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/keystone/keystone-paste.ini

** Affects: keystone
     Importance: Undecided
         Status: New

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

Title:
  Apache/WSGI configuration requires editing keystone-paste.ini

Status in Keystone:
  New

Bug description:
  Changes to the Apache/WSGI implementation for Liberty (wsgi-
  keystone.conf) requires editing the keystone-paste.ini file and
  modifying the [composite:main] and [composite:admin] directives to
  [composite:keystone-wsgi-public] and [composite:keystone-wsgi-admin],
  respectively, otherwise the following error appears and the API
  returns a 500 code to the client:

  mod_wsgi (pid=874): Target WSGI script '/usr/local/bin/keystone-wsgi-admin' cannot be loaded as Python module.
  mod_wsgi (pid=874): Exception occurred processing WSGI script '/usr/local/bin/keystone-wsgi-admin'.
   Traceback (most recent call last):
   File "/usr/local/bin/keystone-wsgi-admin", line 25, in <module>
       application = wsgi_server.initialize_application(name)
     File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 51, in initialize_application
       startup_application_fn=loadapp)
     File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 43, in setup_backends
       res = startup_application_fn()
     File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 48, in loadapp
       'config:%s' % config.find_paste_config(), name)
     File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 46, in loadapp
       controllers.latest_app = deploy.loadapp(conf, name=name)
     File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
      return loadobj(APP, uri, name=name, **kw)
     File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
       global_conf=global_conf)
     File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
       global_conf=global_conf)
     File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
       return loader.get_context(object_type, name, global_conf)
     File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
       object_type, name=name)
     File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
       self.filename))
   LookupError: No section 'keystone-wsgi-admin' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/keystone/keystone-paste.ini

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


Follow ups