From 260c534e7536406cbf4a759f923f039d8e34481c Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Tue, 18 Jun 2013 10:14:21 +1200 Subject: 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 --- nova/wsgi.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nova/wsgi.py') 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", -- cgit v1.2.1