Raise max header size to accommodate large tokens

The former max header (8192) is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined

Equivalent fixes have been proposed in other projects

Change-Id: Ic714166440e2aa08b619ab1e5e5e0cf3cea3e309
Closes-Bug: 1190149
This commit is contained in:
Florent Flament 2014-01-13 13:43:59 +00:00 committed by wanghong
parent 9d89b8e8c8
commit 1690a739cd
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ from glance.common import utils
import glance.openstack.common.log as os_logging import glance.openstack.common.log as os_logging
# Raise max HTTP header size to accommodate large tokens generated by Keystone
# v3 API with big service catalogs.
eventlet.wsgi.MAX_HEADER_LINE = 16384
bind_opts = [ bind_opts = [
cfg.StrOpt('bind_host', default='0.0.0.0', cfg.StrOpt('bind_host', default='0.0.0.0',
help=_('Address to bind the server. Useful when ' help=_('Address to bind the server. Useful when '