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
This commit is contained in:
Steve Baker
2013-06-18 10:14:21 +12:00
parent f9719eaab1
commit 3b3f155e14

View File

@@ -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",