ha_proxy: neutron request with long url results in BADREQUEST error

Bug #1416225 reported by Prakash Bailkeri
10
This bug affects 2 people
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://10.204.216.23:9696/v2.0/ports.json?device_id=f848d485-2afe-49a4-9bb2-215fd867b6a2&device_id=2c380c43-74ba-4950-b387-d47f70428c56&device_id=1b5ea912-6f0c-4de8-bd4a-4819250f0f62&device_id=98b2d529-7258-4c34-a73a-d4424b86e7c6&device_id=128bac23-04e9-4445-ad63-b61cf5fedde5&device_id=7d3ae6e6-6b23-4af0-9805-1b6ce42ba426&device_id=7b900045-8a36-488b-a5a9-e2e0c980d8b0&device_id=a2a1f281-d43a-4027-8e68-dd41aadf98e1&device_id=13c410a1-81c0-4dfd-9396-40638370af5c&device_id=eb83e1ef-cc70-47b8-89dd-0b0a508dad8d&device_id=e7ab315a-2159-4808-9b22-3fbfc25e1795&device_id=f471c7f2-9ed2-4c7d-bedf-70f646bab12f&device_id=f3b9a36a-d52d-47be-b967-23bae852b1c9&device_id=24db78bb-6ff4-4ed8-bbd7-f81c59d9944e&device_id=6323b09e-a469-4b26-b3ea-d4ce7bbe52cf&device_id=2d12a0fa-d153-44a5-8c7c-d3f889f154e9&device_id=aee2eaa9-cb80-43b5-a0fa-0243904c7c0a&device_id=5321703d-21cc-4ef4-98bd-7817be28ce8c&device_id=beb2c906-6500-4aa3-aa6f-1e9843881fb2&device_id=af73f94f-3731-420c-a09c-92f8c469700a&device_id=efe8a992-6d18-42fb-bc8a-75e3e4a43821&device_id=08a1686f-00b5-4283-a797-f356b7cc2714&device_id=6dee3f46-4312-4873-ba76-a78e336faa3d&device_id=6e435e7b-13c4-4a17-bf4e-c722c43b28fe&device_id=d20999c6-7329-49c4-90f8-0eb5c968b32a&device_id=53d44638-83d9-4b10-82e5-b53df612aef8&device_id=79ab4f60-4c4c-48b3-b51e-40b72c6f80c6&device_id=f0407d85-9f50-4435-8847-4fe8da897303&device_id=e89d7f36-dc9a-4284-87fa-3268e1ab98f4&device_id=2d09b29d-1714-4be7-bfb8-6b6d17b753c2&device_id=f8ab1b16-fed1-44fa-a821-96d82762d533&device_id=3f057359-69cf-4918-bed2-8b6036e2a3ab&device_id=4e97eeca-c53f-4724-ad93-d77a8b2783d5&device_id=c67d28b0-3932-49c9-826e-bc97cc3a2e5e&device_id=a7ab6833-14a1-4d79-b382-495b140aea1b&device_id=f9b31a14-6bd1-4197-ad3c-4451b4f4bd8d&device_id=ba4069e0-fdaf-4db9-98f5-d8e2f7705b83&device_id=2d53e3cf-ba42-4df6-8a83-28c039527105&device_id=2a69ed83-6fd0-4209-9530-68a9f3f50e95&device_id=71f73371-dcbb-41fb-b04b-2849754d9777&device_id=e8b01116-845b-4bc3-b7e3-25126f41aa09&device_id=e3181a4c-5483-4f4a-a3cf-e78340fbe167&device_id=74da7f36-19d7-4f60-aff2-67dfc1373f74&device_id=ddf08281-7cb6-400c-94b2-375f6708583b&device_id=58f1bb92-4b7d-4b6e-b164-7f2336a342af&device_id=f94e4482-1c3d-45d4-aa64-72b23e22669b&device_id=4b18ef67-b263-4157-8294-cff46128bdd1&device_id=fe717dda-46c0-4784-9f25-883dbc305cb2&device_id=0e57125c-c0ac-468b-903f-6aeb74d8da36&device_id=905ba69a-c40e-4f92-aa8b-dadea91906e2&device_id=469fa94a-2d30-4d40-9895-820f982580a4&device_id=64b86893-e21c-4e31-9d3f-f030d6f23328&device_id=4376deb2-d3b1-4d90-bb0c-4d0a086c8497&device_id=e5c792a7-c476-46fd-8b1e-bf768359c185&device_id=d7f6283c-3dfb-49e6-887d-56b1bc6fbfd6&device_id=3240a521-c973-4e51-9587-da4e70acb366&device_id=ae8b75bb-b0e4-4aed-9958-5516b8a91110&device_id=f6fdeb2a-102a-4b11-9c3e-de7f7958bbf3&device_id=6cd5d27d-e564-4eb9-948e-d82fde0020be&device_id=90d5821c-b609-4156-939d-0683d0b1a842&device_id=a16e04b7-eaac-4fef-9703-addb5eb0970b&device_id=82320e28-d244-4ca2-9d6a-fc78d3cf8ff7&device_id=4cf91274-a8f2-4ed1-9afa-f4ebdf14165a&device_id=d55eac9e-6be4-4977-9e3a-43a679d54c0b&device_id=6720574d-8d93-46ce-b4ac-9e0f21e654b6&device_id=a3be0053-fb26-4555-8c50-23919d1bad42&device_id=8254939a-0d31-4d84-b5fe-6a726f1f22fd&device_id=91db8be0-91bf-413c-acf9-0bb7c959e8a9&device_id=3535fbd3-6115-48fa-9d79-b396bef5180c&device_id=3e8dc4ad-9dd3-4290-a763-db7ab12aa252&device_id=d066432c-cda3-49fc-bb19-94c22af18816&device_id=aae607ae-e927-428e-9b45-e024f3973270&device_id=ef9623d5-510f-4da5-859c-9ce9ecea2169&device_id=e005d62a-73c6-419a-8efd-d34f6ace7007&device_id=fffe05ba-0f5b-4d8d-b3d2-e39f36317d9e&device_id=2e0f6182-b63e-4f06-87c0-c93944ba1840&device_id=ed9ce464-25a1-4979-84d8-913074199916&device_id=893d21b6-9e37-4909-bae5-c4c681c10211" -X GET -H "X-Auth-Token: MIINBgYJKoZIhvcNAQcCoIIM9zCCDPMCAQExDTALBglghkgBZQMEAgEwggtUBgkqhkiG9w0BBwGgggtFBIILQXsiYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTUtMDEtMjlUMTc6Mzc6NDUuMTA2Mjk0IiwgImV4cGlyZXMiOiAiMjAxNS0wMS0yOVQxODozNzo0NVoiLCAiaWQiOiAicGxhY2Vob2xkZXIiLCAidGVuYW50IjogeyJkZXNjcmlwdGlvbiI6IG51bGwsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogImEzNWY1Zjg3Mjk1NTRhZjViNDE1MGFjMWMyZjg5NTc3IiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xMC4yMDQuMjE2LjIz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WRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbIjdkZTcyNDE5NzljODQ3Y2Y5YmRiNTY0NTJjNmNmNjZmIiwgIjM2NWI2NDcxNzY3YTQyMDU4MjNhZDIxMjkxZmI1OTlkIiwgIjEyZjI4OTRmZjg1YzRhMjc4MGQ2MmZjYTczMTgzM2I0Il19fX0xggGFMIIBgQIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVVbnNldDEOMAwGA1UEBwwFVW5zZXQxDjAMBgNVBAoMBVVuc2V0MRgwFgYDVQQDDA93d3cuZXhhbXBsZS5jb20CAQEwCwYJYIZIAWUDBAIBMA0GCSqGSIb3DQEBAQUABIIBACX0dEO-GAKls1U0e60huI5uNMpioumrT0yHmm3IXChf2mjEKLXZcztkKYtvG0MRbGdvwImu7dC8x4wGxyts1FXSMlQADUp2YpRRAhbVDjR3VNolqLQP2-ybdFSfHfd9mG0xGWy7EjLbpKhMquZXdDJLddHP9X9b-UF3RzEwp1MTaO8gLura4eXcZc-pTU3dSs+oXrG1cCkBSCelRjhdLQN9jxDJ2Jo4QSeaA28yFb6Fr0PPeWmcElI3TPCOBD-ddjbyJwiQGPsPahZmWtJWJ0OgPw2ui320arvDn2WSxEjNec1mJEMjsS2xO0-TiJRxUGiwwNs+bZOkr7h5iVjo3ks=" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

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/2015:09:35:39.057] quantum-server quantum-server/<NOSRV> -1/-1/-1/-1/0 400 188 - - PR-- 0/0/0/0/0 0/0 "<BADREQ>"

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

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/6944
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/f41caadfb2116125a8d53c0d21f3aadfa6575ea4
Submitter: Zuul
Branch: R2.1

commit f41caadfb2116125a8d53c0d21f3aadfa6575ea4
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: I014146a4a5b4a2b95ab9f93a472b53e065f96b1e

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/6813
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/aac70fabf545a5d4dda8f890fb0b5295019a461b
Submitter: Zuul
Branch: master

commit aac70fabf545a5d4dda8f890fb0b5295019a461b
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: I014146a4a5b4a2b95ab9f93a472b53e065f96b1e

Changed in juniperopenstack:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.