keystone under apache can't handle request chunking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Morgan Fainberg |
Bug Description
Method to reproduce stack trace for apache config with chunking enabled
=======
1. If using devstack, configure it to enable chunking in apache, by adding "WSGIChunkedRequest On" in the file devstack/
2. Run from the command line:
openstack -v --debug server list (or any simple command)
3. Look in the output for the very first "curl" command that looks something like this:
curl -i --insecure -X POST http://
4. The above "curl" command succeeds. Modify it to use chunking by adding -H "Transfer-Encoding: chunked" and run it:
curl -i --insecure -X POST http://
5. You will get a cli error:
HTTP/1.1 500 Internal Server Error
Date: Wed, 16 Jul 2014 19:01:58 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: X-Auth-Token
Content-Length: 215
Connection: close
Content-Type: application/json
{"error": {"message": "An unexpected error prevented the server from fulfilling your request: request data read error (Disable debug mode to suppress these details.)", "code": 500, "title": "Internal Server Error"}}
6. The keystone log will show a stack trace:
[Wed Jul 16 19:02:43 2014] [error] 13693 ERROR keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
[Wed Jul 16 19:02:43 2014] [error] 13693 TRACE keystone.
tags: | added: documentation |
Changed in keystone: | |
assignee: | nobody → Morgan Fainberg (mdrnstm) |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | juno-rc1 → 2014.2 |
If I'm reading the information on the google groups archive for mod_wsgi, this is an issue with mod_wsgi and not something that can be fixed in Keystone directly. This is related to the 3.X tree for mod_wsgi, which *should* be fixed in the 4.X series. It appears that Ubuntu 14.04 (Trusty) has the 3.4 release of mod_wsgi
See: https:/ /groups. google. com/forum/ #!topic/ modwsgi/ Rk-cXTGSCHQ
This is going to take some extra work to determine if anything can be done prior to using a 4.X release of mod_wsgi.