cinder/etc/cinder
Gorka Eguileor 18b8033b6b Fix request id mess on Cinder-API
This patch fixes multiple issues related to request ids:

- Duplicated request ID in logs
- Missing request id header in response
- Wrong request ID in response header when using noauth

The source of these issues is the fact that the request ID and the
request context are set too late, or not at all, in the paste filter
chain.

And the last bug is fixed as a freebie when the code in auth.py is
refactored to reduce code duplication on setting the cinder.context key
in the request's environment.

The patch fixes these issue by changing the filter chains to have the
request_id filter as the first filter, and using our own filter for it,
to ensure that the context is correctly set.

Not sure if values now defined in ENV_OVERWRITES are still necessary,
so the patch preserves current behavior.

Closes-Bug: #1960019
Closes-Bug: #1960020
Closes-Bug: #1960021
Closes-Bug: #1960329
Change-Id: Ide831a221a7561bbb7da193f0edb011f1989420e
2022-02-23 16:48:45 +01:00
..
rootwrap.d Delete TSM Backup driver 2020-11-03 18:53:39 +02:00
README-cinder.conf.sample Remove the cinder.conf.sample file 2014-12-07 23:09:36 +08:00
README-policy.generate.md [policy in code] Add support for attachment resource 2017-09-26 03:19:20 +00:00
api-httpd.conf Add Cinder API wsgi application 2015-08-25 13:48:03 +03:00
api-paste.ini Fix request id mess on Cinder-API 2022-02-23 16:48:45 +01:00
logging_sample.conf Move logging sample to use oslo_log 2015-04-30 15:04:48 +00:00
resource_filters.json Merge "Implement user visible extra specs" 2021-09-02 23:59:59 +00:00
rootwrap.conf Fix bugs of GPFSNFS & GPFSRemote Driver initialization failure 2017-05-22 12:52:30 +05:30