Comment 6 for bug 1521623

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

@Radoslaw,
AFAIK, Glance do not generate Content-Length header when transfer-encoding = chunked because we don't know content length here until final chunk is generated (so we in compliance with ietf spec here because transfer-encoding is specified).

It seems that this is WSGI framework problem because some WSGI servers do not support chunked requests.
See Keystone bug for example: https://bugs.launchpad.net/keystone/+bug/1346211.

AFAIK that latest version of mod_wsgi supports chunked requests as eventlet does (that's why swift works correctly with Glance).
I see that we cannot generate requests with Content-Length here, because the length is unknown.
I think that WSGI server for RadosGW need to understand chunked-requests instead.
After reviewing 1505273 it seems that the problem is the same: WSGI server doesn't support chunked requests.

Radoslaw, is it possible to deploy RadosGW im MOS under eventlet or other WSGI framework that treats chunked requests properly?
I am not an expert here so waiting for your answer.