unable to set configuration file when running keystone as wsgi application

Bug #1552397 reported by Cristian Sava
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Cristian Sava

Bug Description

Currently, the initialize_application() function defined inside keystone/server/wsgi.py module does not allow defining custom locations for configuration file:

def initialize_application(name, post_log_configured_function=lambda: None):
    common.configure()
    ...

I think the initialize_application() prototype should allow passing through arguments for the common.configure() function, that would allow for instance defining alternate config file locations etc. Such customization is possible when running keystone under eventlet model.

Cristian Sava (chsava)
description: updated
description: updated
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

I don't see a good way of setting sys.argv via mod_wsgi. We should probably support ENV var setting for the config-file/config-dir/paste-ini values.

Changed in keystone:
importance: Undecided → Medium
status: New → Triaged
tags: added: mitaka-rc-potential
Changed in keystone:
assignee: nobody → Deliang Fan (vanderliang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to keystone (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/288216

Changed in keystone:
assignee: Deliang Fan (vanderliang) → nobody
Cristian Sava (chsava)
Changed in keystone:
assignee: nobody → Cristian Sava (chsava)
Changed in keystone:
status: Triaged → In Progress
tags: removed: mitaka-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/288216
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=c7cb72b20e181e7df0bed2370a48b3aea249162f
Submitter: Jenkins
Branch: master

commit c7cb72b20e181e7df0bed2370a48b3aea249162f
Author: Cristian Sava <email address hidden>
Date: Fri Mar 4 00:55:03 2016 +0000

    Customize config file location when run as wsgi app.

    Running keystone as a wsgi application should allow the same kind of
    customization as when run from the command line. Setting sys.argv for
    wsgi applications is difficult so that environment variables need to
    be used for this purpose.

    Closes-Bug: #1552397

    Change-Id: I1cd8c7c9f8d4c748384f9b72511b677176672791

Changed in keystone:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/keystone 10.0.0.0b1

This issue was fixed in the openstack/keystone 10.0.0.0b1 development milestone.

Changed in keystone:
milestone: none → newton-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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