summaryrefslogtreecommitdiffstats
path: root/bin/nova-api
diff options
context:
space:
mode:
authorBurt Holzman <burt@fnal.gov>2013-01-24 00:24:09 -0600
committerBurt Holzman <burt@fnal.gov>2013-01-24 17:11:10 -0600
commitdfec46ac8e4cba23da842698c2bc746c03994afe (patch)
tree96209b11f99fd93835f6952d8aae40b6ee081eaa /bin/nova-api
parent33680e6b2d2026ae8394579586f02d9773649674 (diff)
downloadnova-dfec46ac8e4cba23da842698c2bc746c03994afe.tar.gz
nova-dfec46ac8e4cba23da842698c2bc746c03994afe.tar.xz
nova-dfec46ac8e4cba23da842698c2bc746c03994afe.zip
Increase maximum URI size for EC2 API to 16k
The EC2 API supports both HTTP GET and POST agnostically. It also supports user-data of 16k -- meaning that client tools could generate 16k URIs. The WSGI default limit is 8k; this raises it. Fixes bug 1098646. Change-Id: Idec460d88b2affab970c9d9f39fa61295db035c5
Diffstat (limited to 'bin/nova-api')
-rwxr-xr-xbin/nova-api6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/nova-api b/bin/nova-api
index 16cf33cc5..d957f3e58 100755
--- a/bin/nova-api
+++ b/bin/nova-api
@@ -54,6 +54,10 @@ if __name__ == '__main__':
launcher = service.ProcessLauncher()
for api in CONF.enabled_apis:
should_use_ssl = api in CONF.enabled_ssl_apis
- server = service.WSGIService(api, use_ssl=should_use_ssl)
+ if api == 'ec2':
+ server = service.WSGIService(api, use_ssl=should_use_ssl,
+ max_url_len=16384)
+ else:
+ server = service.WSGIService(api, use_ssl=should_use_ssl)
launcher.launch_server(server, workers=server.workers or 1)
launcher.wait()