keystonemiddleware broken if paste and not the oslo.config global object is used

Bug #1482078 reported by Mehdi Abaakouk
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
keystonemiddleware
Fix Released
Wishlist
Mehdi Abaakouk

Bug Description

Hi,

In project aodh, we don't use the oslo.config global configuration object, and the keystone middleware is loaded via 'paste' like
most project.

In this case the keystone middleware is not able to read its configuration from /etc/aodh/aodh.conf.

That make aodh not functional without hacking the api-paste.conf configuration file.

Cheers,

Mehdi Abaakouk (sileht)
Changed in keystonemiddleware:
assignee: nobody → Mehdi Abaakouk (sileht)
Changed in keystonemiddleware:
status: New → In Progress
Revision history for this message
Mehdi Abaakouk (sileht) wrote :
Revision history for this message
Dolph Mathews (dolph) wrote :

I do not understand why people believe paste.ini is not intended to be end-user configuration. Why don't we just hardcode our WSGI pipelines if we're just going to re-implement paste?

Changed in keystonemiddleware:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystonemiddleware (master)

Reviewed: https://review.openstack.org/208965
Committed: https://git.openstack.org/cgit/openstack/keystonemiddleware/commit/?id=ba68a74e65ad893e4beeb45b984b2514e60cbdea
Submitter: Jenkins
Branch: master

commit ba68a74e65ad893e4beeb45b984b2514e60cbdea
Author: Mehdi Abaakouk <email address hidden>
Date: Tue Aug 4 10:32:47 2015 +0200

    Allow to use oslo.config without global CONF

    If an application doesn't use a global configuration object and load
    the middleware with api paste, they are no ways to read the
    configuration options from the application configuration file.

    This change fixes that, the api paste config will looks like:

      [filter:authtoken]
      paste.filter_factory = keystonemiddleware.auth_token:filter_factory
      oslo_config_project = aodh

    With this, the keystonemiddleware will automatically load
    the configuration of the project aodh with a local oslo.config object
    instead of the global one.

    This allows application to not rely of the global oslo.config object
    and continue to use paste and keystonemiddleware.

    Closes-bug: #1482078
    Related-bug: #1406218
    Change-Id: I48c3d6a6a5486c9c035a15a75c025be7f5abaab4

Changed in keystonemiddleware:
status: In Progress → Fix Committed
Changed in keystonemiddleware:
milestone: none → 2.2.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.