Comment 0 for bug 1482271

Revision history for this message
Alexander Makarov (amakarov) wrote :

When configured as an Apache WSGI module a race condition is possible during keystone cache initialization:
https://github.com/openstack/keystone/blob/master/keystone/common/kvs/core.py#L240
The operation raises exception region.RegionAlreadyConfigured.
This is a result of the race condition involving global 'application' variable being initialized several times (1 per thread).
application is required to be global according to Paste Deploy documentation:
http://pythonpaste.org/deploy/
Apache modwsgi documentation suggests protecting global objects with thread locks:
http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading#Building_A_Portable_Application