ha_proxy: neutron request with long url results in BADREQUEST error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
High
|
Unassigned |
Bug Description
Following request to neutron resulted in BADREQUEST error:
curl -i "http://
HTTP/1.0 400 Bad request
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
HAProxy logs:
Jan 30 09:35:39 nodea27 haproxy[32206]: 10.204.216.23:54096 [30/Jan/
Tuning the config parameters of haproxy does resolve it: (Either of the following config param will resolve the issue)
1. to set buffer size:
tune.bufsize 128000
2. to set max rewrite size
tune.maxrewrite 1024
Reviewed: https:/ /review. opencontrail. org/6944 github. org/Juniper/ contrail- fabric- utils/commit/ f41caadfb211612 5a8d53c0d21f3aa dfa6575ea4
Committed: http://
Submitter: Zuul
Branch: R2.1
commit f41caadfb211612 5a8d53c0d21f3aa dfa6575ea4
Author: Prakash Bailkeri <email address hidden>
Date: Fri Jan 30 04:07:16 2015 -0800
set the maxwrite to 1K to allow 15K byte long URL
Closes-Bug: #1416225
Change-Id: I014146a4a5b4a2 b95ab9f93a472b5 3e065f96b1e