when lots of networks exist,use command neutron net-list return 400 bad request,your browser sent an invalid request

Bug #1519571 reported by guiyanxing
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Expired
Medium
Unassigned

Bug Description

# neutron net-list -v
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://172.16.216.201:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] content-length: 340 vary: X-Auth-Token server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4 mod_fcgid/2.3.9 mod_nss/2.4.6 NSS/3.16.2.3 Basic ECC PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 date: Tue, 24 Nov 2015 08:35:53 GMT content-type: application/json x-openstack-request-id: req-ca54cd9c-466d-4114-806b-ee0d0e191a80
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.16.216.201:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: neutronclient.neutron.v2_0.network.ListNetwork get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, page_size=None, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://172.16.216.201:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://vip.haproxy.bcec.core:9696/v2.0/networks.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}143f500fb9f98d3b6fd2823d84a3fe95767092a7"
DEBUG: keystoneclient.session RESP: [200] date: Tue, 24 Nov 2015 08:35:55 GMT content-length: 99885 content-type: application/json; charset=UTF-8 x-openstack-request-id: req-f261b826-e45b-4485-9572-ecaf9e50aaf9
RESP BODY: {"networks": [{"status": "ACTIVE", "subnets": ["4c8508af-1978-44cf-9f3f-3de507389860"], "name": "vnet0-net4", "provider:physical_network": null, "router:external": false, "tenant_id": "3a3551e6e3674d0d840a48a2ac7b26f7", "admin_state_up": true, "mtu": 0, "shared": false, "provider:network_type": "vxlan", "id": "01697e00-fee7-4fff-91f3-d916a1ae0c51", "provider:segmentation_id": 121},.............................................}

DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://vip.haproxy.bcec.core:9696/v2.0/subnets.json?fields=id&fields=cidr&id=4c8508af-1978-44cf-9f3f-3de507389860&id=e2b9fb95-900f-42f5-b5ba-b140eb564fea&id=71dd693a-6925-4959-8036-ab1032acb091&id=16579ae1-08f7-4ec9-8f53-1427cf3dd6f4&id=058746a3-6714-4ef2-acf7-b6822f743239&id=45c5fc84-06fc-472f-9517-b99d6de78522&id=20315ab0-795a-4bd8-9247-c7c36dd618da&id=d6587c4d-bc51-449a-a8e0-1cae00555953&id=5b7f3b14-eac6-46e4-9076-e808c681a59f&id=c6714d71-aa2d-4a75-b0c0-a5f7a6d3dbc8&id=b902d8d1-44ae-48ec-b91e-1ec17ae31c92&id=a6078046-688b-4cb9-be6b-81059229cad0&id=3250fece-b540-4dfd-8b49-4c7ec3c4e4da&id=82028b05-16e1-4578-8fa5-c9938ecab1a2&id=114ee739-fcd8-4031-882b-05000faccfaf&id=6fb79beb-6981-4674-b57e-b2ca522a17fb&id=44fb47c3-a3e9-4a77-ae91-ab9d19376c3e&id=05479a26-cc26-4c47-b934-28575e92ca8b&id=390774ab-ddf1-46a1-b5d1-fcbab47bd66c&id=1202f14c-9781-4588-b1fc-4eef8cb9abf3&id=300b4fe8-a5a8-4195-aef3-0cb3f0a6a2b9&id=64e67174-3134-4c59-a411-40167dd8982d&id=34d7d5ce-0d6a-409f-8d3e-98df14085ea0&id=a882027d-0bd1-4e11-addc-c6f0dc21af90&id=8447841d-3aed-4908-805e-5ff54b17e0a3&id=014da9e0-4b81-4151-8387-d66fcde0d164&id=cbaca7c8-9a4a-4e5e-8959-989a3ea7a3e5&id=bc5c33b3-6e8b-41cc-8531-0f3f7c4b8405&id=29bd6e31-2df8-42dd-b517-27174d994025&id=f33a5d49-5030-4279-a053-ea2dddc61caf&id=94d55581-7861-4031-9ddc-a7a23a27981a&id=a8ce8d3b-eab0-48a3-8edb-1248e53fd41a&id=a2c23fbb-61df-4f07-9171-8d9bc4b9d7d3&id=c1561d98-b1a8-40c2-beab-6ca9ab515186&id=d3c18144-f297-4fab-976b-f9a519dddd5b&id=313e8e93-0894-4e32-9c68-b82eabd9e7c5&id=f6d73e85-ff44-43c6-89e6-769ad09c5ada&id=90b86b1b-ba11-4742-aac7-3aba3c44db88&id=02c7eab5-9d9e-40ac-a9b5-28da06677a6d&id=a75b66fc-2d7e-4708-9521-0681bfcebac6&id=cc14650d-44b9-4bc9-910a-2f2dd0eebd31&id=bc728e49-230e-4cbf-af77-612303897528&id=06ab15a7-8c60-4f17-9b1d-3ed4b7fe5f76&id=f0b7bbfc-e296-46cd-bbbf-8bc9e89dc786&id=574e33da-4a9d-4284-ab3e-10847062a7e5&id=d7ee7783-93a3-4b8a-89db-6e78f7cba7c4&id=b9a56a2e-5917-42b7-9313-b201b85b0a1c&id=e93f6f27-00c9-4016-acf9-a8d920e0d2cc&id=4ac8b1f2-ce93-4a04-ad6c-b5d06f3a159b&id=78e4413b-3e34-4343-95b3-460d7dfb72cf&id=4f21b6f2-5259-4cb4-90c7-99542363c258&id=7a0daf99-41df-490a-b031-1172ef3efe79&id=09754db8-5d89-4abb-b997-a37d59895a58&id=8a1bbba9-a696-4846-b4fc-b06a8e145d8d&id=d59a247a-b89e-4589-8a1c-839a10fc8402&id=b6c8f79a-24ce-494b-aa3f-cf9374a07a77&id=e7ddd4c6-605c-41a7-9e86-f31fd4d341ef&id=fbc5a4ca-a466-4e03-bce7-c575d933682c&id=ed2365c2-19b6-4cd6-ac62-b0d60201cba2&id=0b81bd7d-a7cb-478f-96ce-f873482b8665&id=3c21f325-8f86-423b-9998-2ff2cba2fc82&id=2b3d60b7-b96f-454b-9ada-bd94c5a6a569&id=0d3c9552-aa98-4083-8c52-6df437cac55b&id=390c5406-6737-48ab-bd18-c97eb04bf92c&id=57a9a92b-5476-4f0b-b53d-f2ff2d055b9b&id=9a536d85-9a3d-4f39-a341-4305163a4085&id=b73890e5-d5a8-498a-9ed8-aaaf937888a2&id=a8984b80-97a4-4a7d-aff5-3b662533f052&id=4dbb0a03-71e9-4c92-bf8e-284865e0b645&id=2cb44731-50c7-4346-9bb1-09faca6ad43c&id=ad7b9f19-7ae5-4867-a09d-78005aecf27a&id=bfff9803-f880-4715-9478-3422a6bf87fb&id=76c64587-7b9d-40bb-b9d4-20028db26310&id=31a146ae-d347-4316-9c1e-b3121cd96d77&id=19b1ada1-f315-4c2e-aca7-e3331695af31&id=ee9dbbb4-8237-4f34-9b98-7f03bbe9f352&id=71cd5e9c-f67c-4bb7-ba9d-c92fe181cbd0&id=582ac32f-0111-4024-9c3b-bdef670bd8f9&id=c74f9b09-e770-4a92-acb5-943c38ab8586&id=c163a883-0ec1-462b-81fc-ba3b45068313&id=fed7a7ce-e0a2-49f9-b02e-4fa7a63c7b53&id=73298ad5-81b0-440c-9bb8-1ab1f2742aaa&id=502ef3ba-36a3-47bc-a6d5-52daeccc9b3a&id=0a56ca85-779f-4f22-88b3-05fa1d601a98&id=e730badf-8561-4457-9fd2-e3e30995fe5b&id=7e664ea0-3897-4b69-ab76-b21057720ad4&id=baf3a323-1522-4725-85bd-1935677d53e0&id=250001c2-72a4-4072-8318-8209eca28400&id=fd7fd184-1bf6-4ab5-b9d2-6adab8515b13&id=581ac72f-013b-4f3a-b78f-8e4fef295547&id=805c6540-cfb9-4fc9-b8a3-cb49e1374d31&id=a2aa5a84-6e5b-4e96-bfb4-5c50c18e6421&id=f9e86581-0bf6-4f3a-b14e-a268b5da6065&id=6c31411b-9947-4535-85b9-00dbfad2c131&id=68cc4522-b464-44da-8957-a855fd66df29&id=91a13602-7e1e-4368-a087-85d2c43356df&id=02ab70a6-3a59-4d0f-b4ef-6f9c658c47aa&id=2dd47c2f-e619-4671-8903-b680fdc7a0b6&id=43a30ddc-3d1f-47e3-bd47-94655c21179a&id=25cc9ec8-0593-4024-a5de-31da7d6b5016&id=83d6f678-4ae4-44aa-b2e6-393f57d5b814&id=da2a670b-8780-4582-acc4-020f94b3e7c8&id=69b0c7e6-0bb2-4055-87ee-e0e0eef38fa8&id=45f6232c-9424-4ba2-8a82-0550b0e432d9&id=7a5aeb9f-24b0-4273-8dac-972ceaaf63ea&id=ba72ff2d-c45c-443e-ae41-abff2fd1897e&id=9b797115-d0db-4ecb-a14a-3bec6517092a&id=09962d95-2ade-4b66-8f97-6cc3d8a52e86&id=89301f53-66da-4a7a-ac69-cb76b7b67720&id=ef62b008-dfc9-4c84-9adc-a32c16550b3f&id=cccc873a-0604-4e0c-8c4c-1271e6b66d99&id=dc476835-217d-4a67-a053-ceb08d0e686e&id=1bddb1a6-d2a4-4823-b3ad-6e68a0de2c79&id=c51e75ff-0b34-4421-8bcf-fcae9f6d497d&id=0432a615-7ec0-440b-9499-7e45eab8258e&id=2f0696e9-5add-4f50-8acf-f21940365015&id=e73448df-5b00-4832-861b-9167e3250bbb&id=19a35541-078c-4d67-a557-712cf41b3803&id=5d170aaa-e056-4c31-8803-2bc1523463b2&id=17b90289-b894-4263-990b-6bd52a4d9bee&id=2f371046-c414-40ff-ab74-946aafad02be&id=3934fa03-c454-407b-ab88-05733f86a5e0&id=3f8dbbc4-1558-40da-bbdd-6b52bf687fc4&id=d583c256-75d6-45f4-9f44-fe2bb9281e82&id=9ea5971a-4500-4cf9-a4af-a22a763737f2&id=c554bcb8-d4ca-4d0d-86bc-18dc3220b388&id=46dd4ade-3532-4e8b-afca-b6bd1415e212&id=c1b89c97-f8b3-4b3a-b88b-b3309cef5659&id=3676d03c-dfb5-4c13-8dad-08df92006a53&id=369d3f27-681d-4736-87c7-bd0fe370b078&id=a7d685b7-e82f-4bcd-86f8-effd0d70ebf2&id=4a052432-c373-4f97-b931-58e9b029e466&id=b9869d38-8044-44e1-b526-1601569b762b&id=5cca1e48-fc8c-4623-a62b-7ba2d84324e4&id=be0bcc4a-9b19-47f9-8b23-561b020bfc90&id=1cdda4d6-d262-4096-bd18-5f14e80188c6&id=aafd3200-d0e8-41dd-b8d5-6f187902983b&id=9ea2c379-1bd3-4b68-89e6-93b32a4248a6&id=e975d953-5ca0-4f8f-a919-c0ec22ea7dbd&id=07d80459-369c-4ca4-bf0d-9f10c10836a2&id=e23512a8-fca6-481a-8b74-2b63eb0028da&id=2dd827b2-3970-46c5-a062-f6f119d78273&id=ddd281bb-4986-4f6f-acdf-6e9236960b43&id=944e94b1-d374-4cbd-9b3b-e64bfa2503cb&id=b1cce6d3-9d31-4443-b859-f32c0b112038&id=17085882-6092-468f-8b37-4bfd6cf275d9&id=92eab9ce-d571-4878-82aa-d4f8cf21d954&id=bbba84f8-fcf0-42b9-afe9-25862c7d478f&id=934abf05-bee4-45fc-82e2-e6ebcbad2c58&id=fab79813-39a7-4320-921f-68e436147d8d&id=5f589b44-d615-4bd4-8f8f-03a846081754&id=8b57ef27-3246-4f8b-b78b-8f71528f9a1b&id=8f0b4bdf-6866-4722-bc70-33a5af572e4b&id=9445f449-6125-4a66-9514-1232d6b6b33f&id=d4e9647a-c597-44bc-942f-6c4ece2c6b72&id=a43456a7-cff2-4675-a726-1db0d96d1e8f&id=3fe352ec-1759-4786-b563-519ec4b3af91&id=0939b44e-ed10-4c47-9f48-ef1ed9281474&id=77320345-f61f-45c5-9797-553507d2b536&id=14d3354a-167e-4756-8d19-e81919c8a5b9&id=2194345b-0890-4524-9cc3-0f0a6f6ce8ba&id=8322ee47-c58e-4568-bd6a-29a3f24d07df&id=39272756-2a08-4b70-bf34-b8caf86d11a6&id=cf38b5c8-aa1a-4ce6-95e5-5d96eb244a22&id=4fcffbf2-a0f5-45f4-80c2-2ddc182ccb0e&id=0597c3d2-ebee-4f67-9be8-76b237b6663c&id=affb6e1d-8122-49f8-946b-d21d44877f8a&id=08f2c13b-4066-4887-9579-74a84e67d0dd&id=52f25c8a-86e7-43f5-90b3-53791c95af3e&id=a4563449-4b8b-4be0-ba49-25737f43c617&id=be856f2e-3ce8-44a6-a577-6847e9d48123&id=bb4affff-8312-478e-b3b5-754abd9773c4&id=7c6af41d-ff21-49b5-baa3-17d49a690250&id=29b15d19-7205-4406-88fb-a22c6a17b348&id=e3520d36-1a59-4ea6-a9bd-a773fc3d671d&id=a4482d1c-5ce9-45b5-b464-89189b410c3a&id=a5596e79-2bf0-4118-b801-ad82f9a3682d&id=01dd243e-030f-4124-a736-27814a857441&id=5c60aee0-ed9f-455d-bb71-48966fb289e1&id=9b2335b7-6ffc-4e88-be38-d22ee48251fb&id=c30aef05-7889-4336-837e-7022fbaf16cf&id=83530eef-8987-42e4-a674-96f20c562474&id=4440bd93-b204-42e6-aab1-bceb6ede8be0&id=1db3f003-9a4e-4932-89ff-aebb23915b8c&id=152bb2e1-1123-4de0-a680-522e04f1bd07&id=d7416d35-a51e-46bb-9c9f-e9acd80a801a&id=cb5ad9c1-bd15-4167-be42-068af23cc81f&id=be8f57a9-def3-42fd-a58a-47c69a0d90fa&id=760efb05-30c2-4158-9b8a-38b3e2550dc4&id=f48060f8-7535-40e0-a212-7cebb97400a2&id=38e7d2d2-bce7-4261-8f72-4fc60fe5dde9&id=67fbda83-77f2-46b9-bb2d-ea56cd5cde85&id=121bd372-23be-4ea1-bb4b-3bf03881bd79&id=86d36462-3b3b-414b-a723-0cd5ea5ab7ab&id=ccbc6e12-e91f-4e5b-bdc2-e16c5be9152f&id=fbe02a19-e58e-4bd5-9aea-5983762a13da&id=a817dc5a-4a8e-4672-a98e-a78c6c2541d1&id=56b78b96-d3ca-4a94-86cf-d58e7696f772&id=94c60656-9171-495a-8ee9-14befe2f562f&id=9f1fec36-e4ac-4867-9b24-6cf70e9ffbb0&id=8c74da78-1a14-41ba-a0e2-7cb28829195c&id=6f0dd03a-8674-4c9f-9973-0ded3baca31c -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}143f500fb9f98d3b6fd2823d84a3fe95767092a7"
DEBUG: keystoneclient.session RESP:
DEBUG: neutronclient.v2_0.client Error message: <html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>

ERROR: neutronclient.shell <html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 766, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 101, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 692, in get_data
    self.extend_list(data, parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/network.py", line 76, in extend_list
    _get_subnet_list(subnet_ids[i: i + chunk_size]))
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/network.py", line 61, in _get_subnet_list
    **search_opts).get('subnets', [])
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 586, in list_subnets
    **_params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 306, in list
    for r in self._pagination(collection, path, **params):
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 319, in _pagination
    res = self.get(path, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 292, in get
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 269, in retry_request
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 210, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 83, in exception_handler_v20
    message=message)
NeutronClientException: <html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>

guiyanxing (guiyanxing)
Changed in neutron:
assignee: nobody → guiyanxing (guiyanxing)
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Gary Kotton (garyk) wrote :

This looks like a issue with HA proxy and not directly with the neutron service. Can you please try and do the same when you access the neutron service directly

Changed in neutron:
status: New → Incomplete
Revision history for this message
Sean M. Collins (scollins) wrote :

Yet again HAProxy stuck between stuff ends up making a hash of it. /rant

Revision history for this message
Miguel Angel Ajo (mangelajo) wrote :

Is there a known issue with haproxy?

Revision history for this message
Maximiliano Osorio (mosorio-0) wrote :

A solution: You can change the value tune.bufsize in HAproxy (default 16K).

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 180 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in neutron:
assignee: guiyanxing (guiyanxing) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
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.