diff options
author | Steve Baker <sbaker@redhat.com> | 2013-06-18 10:14:21 +1200 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2013-06-18 10:24:14 +1200 |
commit | 260c534e7536406cbf4a759f923f039d8e34481c (patch) | |
tree | a7d0c9b6b24805cf0e83396d075929b234008747 /nova/wsgi.py | |
parent | d7f898eab900de8f804285333e6fb921294520fc (diff) | |
download | nova-260c534e7536406cbf4a759f923f039d8e34481c.tar.gz |
Raise max header size to accommodate large tokens.
The max header is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined
Specifically, when heat is enabled in tempest gating, the following
tests are failing:
- tempest.api.compute.test_auth_token.AuthTokenTestJSON.test_v3_token
- tempest.api.compute.test_auth_token.AuthTokenTestXML.test_v3_token
An equivalent fix will be required for all projects which use
eventlet.wsgi.
Fixes bug: #1190149
Change-Id: Ia0a2a48461593fdc0f5be57bcc9f364c3e3f8b66
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r-- | nova/wsgi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py index 72e4649193..2e3f66f0d0 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -37,6 +37,9 @@ from nova import exception from nova.openstack.common import excutils from nova.openstack.common import log as logging +# Raise the default from 8192 to accommodate large tokens +eventlet.wsgi.MAX_HEADER_LINE = 16384 + wsgi_opts = [ cfg.StrOpt('api_paste_config', default="api-paste.ini", |