Ask Your Question
0

Quantum net-list 400 Bad Request

asked 2013-07-01 15:51:37 -0600

matteo-dacrema gravatar image

Hi all, I've made a script for launch several instaces.This execute Quantum net-list command once per instance. After some time the command reply with 400 Bad Request. I've read that is an error that appear when you try to do bulk operation. After that I've edited quantum.conf "adding allow_bulk=yes" but the problem persists. Can someone help me? Thanks a lot. Matteo

edit retag flag offensive close merge delete

10 answers

Sort by ยป oldest newest most voted
0

answered 2013-07-10 12:16:01 -0600

matteo-dacrema gravatar image

Hi all here the error: root@grizzly:# quantum -v net-list

DEBUG: quantumclient.quantum.v2_0.network.ListNetwork get_data(Namespace(columns=[], fields=[], filter_specs=[], formatter='table', page_size=None, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[])) DEBUG: quantumclient.client REQ: curl -i http://grizzly.enter.it:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-quantumclient" -d '{"auth": {"tenantName": "tenant", "passwordCredentials": {"username": "username", "password": "password"}}}'

DEBUG: quantumclient.client RESP:{'status': '200', 'content-length': '7518', 'vary': 'X-Auth-Token', 'connection': 'close', 'date': 'Wed, 10 Jul 2013 12:13:12 GMT', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-07-10T12:13:12.893050", "expires": "2013-07-11T12:13:12Z", "id": "MIINHwYJKoZIhvcNAQcCoIINEDCCDQwCAQExCTAHBgUrDgMCGjCCC-gGCSqGSIb3DQEHAaCCC+kEggvleyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0xMFQxMjoxMzoxMi44OTMwNTAiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTExVDEyOjEzOjEyWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogImI3OTI5ODc0ZDFmYjRlYmZhY2IxNGExNmFhMTQxY2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ICI0YzliM2IwZmEwMGY0ODU4OTU1NmJiYjYzNzk2ZGE2YSIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzIxMi4yOS4xMzEuMTE4OjUwMDAvdjIuMCJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUiOiAiZ2l1c2VwcGUiLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogIjIwYjMwMWRlN2Q1MTRkODA4NDAzYTNjMWM1OTdlZWNiIiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9LCB7Im5hbWUiOiAiTWVtYmVyIn1dLCAibmFtZSI6ICJnaXVzZXBwZSJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyJmMDE4OWY5MTZhYTM0NmE3YWM2MjliY2Q2YjhlYjIxOSIsICJiM2FlMmQ2OWY4MjE0ZDA4OGNkYzE4ZTlmMmJmM2U3OSJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgH6A1a7cbOlrM5hYJ5KqWKnaVts6yNwm34-8WWMbE5zvn+TZdY5fp4Km7UOm-oL0C13NBH4LMGdJOidzjZEMvyrXdJUeti4d8B2RDGMlcoOerlq25c1MvU-u9Bsu4AmjZD5N5WAXd5uEr5byOdu9b2W234g6yO2j7Jf3gkMAa8Ue", "tenant": {"description": "", "enabled": true, "id": "b7929874d1fb4ebfacb14a16aa141cd2", "name": "civitella"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://212.29.131.118:8774/v1.1/b7929874d1fb4ebfacb14a16aa141cd2", "region": "EnterIt", "internalURL": "http://10.1.2.52:8774/v1.1/b7929874d1fb4ebfacb14a16aa141cd2", "id": "53fa004729b142e1b7a19d9197c68406", "publicURL": "http://212.29.131.118:8774/v1.1/b7929874d1fb4ebfacb14a16aa141cd2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://212.29.131.118:9696", "region": "EnterIt", "internalURL": "http://10.1.2.53:9696", "id": "0698d1269df44178901b4d77bab02da1", "publicURL": "http://212.29.131.118:9696"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://212.29.131.118:9292", "region": "EnterIt", "internalURL": "http://10.1.2.10:9292", "id": "5a73962ccfd6408f859b7255c437aca4", "publicURL": "http://212.29.131.118:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://212.29.131.118:8777/", "region": "EnterIt", "internalURL": "http://10.1.2.10:8777/", "id": "b7b4c6e100a344afae2cdbc8c999a6b9", "publicURL": "http://212.29.131.118:8777/"}], "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints": [{"adminURL": "http://212.29.131.118:8776/v1/b7929874d1fb4ebfacb14a16aa141cd2", "region": "EnterIt", "internalURL": "http://212.29.131.118:8776/v1/b7929874d1fb4ebfacb14a16aa141cd2", "id": "6dc1edf54d2f4c84abeba523865e34e9", "publicURL": "http://212.29.131.118:8776/v1/b7929874d1fb4ebfacb14a16aa141cd2"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://212.29.131.118:8773/services/Admin", "region": "EnterIt", "internalURL": "http://10.1.2.50:8773/services/Cloud", "id": "7e764a9f06f944b5a30da4f4f82d330e", "publicURL": "http://212.29.131.118:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://212.29.131.118:8888", "region": "RegionOne", "internalURL": "http://212.29.131.118:8888/v1/KEY_b7929874d1fb4ebfacb14a16aa141cd2", "id": "c068c20576fa4a42803a7e1b9cc92afd", "publicURL": "http://212.29.131.118:8888/v1/KEY_b7929874d1fb4ebfacb14a16aa141cd2"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://212.29.131.118:35357/v2.0", "region": "EnterIt", "internalURL": "http://10.1.2.50:5000/v2.0", "id": "4c9b3b0fa00f48589556bbb63796da6a", "publicURL": "http://212.29.131.118:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "giuseppe", "roles_links": [], "id": "20b301de7d514d808403a3c1c597eecb", "roles": [{"name": "admin"}, {"name": "Member"}], "name": "giuseppe"}, "metadata": {"is_admin": 0, "roles": ["f0189f916aa346a7ac629bcd6b8eb219", "b3ae2d69f8214d088cdc18e9f2bf3e79"]}}}

DEBUG: quantumclient.client REQ: curl -i http://212.29.131.118:9696/v2.0/networks.json (http://212.29.131.118:9696/v2.0/netwo...) -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIINHwYJKoZIhvcNAQcCoIINEDCCDQwCAQExCTAHBgUrDgMCGjCCC-gGCSqGSIb3DQEHAaCCC+kEggvleyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0xMFQxMjoxMzoxMi44OTMwNTAiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTExVDEyOjEzOjEyWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogImI3OTI5ODc0ZDFmYjRlYmZhY2IxNGExNmFhMTQxY2QyIiwgIm5hbWUiOiAiY2l2aXRlbGxhIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMjEyLjI5LjEzMS4xMTg6ODc3NC92MS4xL2I3OTI5ODc0ZDFmYjRlYmZhY2I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IsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUiOiAiZ2l1c2VwcGUiLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogIjIwYjMwMWRlN2Q1MTRkODA4NDAzYTNjMWM1OTdlZWNiIiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9LCB7Im5hbWUiOiAiTWVtYmVyIn1dLCAibmFtZSI6ICJnaXVzZXBwZSJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyJmMDE4OWY5MTZhYTM0NmE3YWM2MjliY2Q2YjhlYjIxOSIsICJiM2FlMmQ2OWY4MjE0ZDA4OGNkYzE4ZTlmMmJmM2U3OSJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgH6A1a7cbOlrM5hYJ5KqWKnaVts6yNwm34-8WWMbE5zvn+TZdY5fp4Km7UOm-oL0C13NBH4LMGdJOidzjZEMvyrXdJUeti4d8B2RDGMlcoOerlq25c1MvU-u9Bsu4AmjZD5N5WAXd5uEr5byOdu9b2W234g6yO2j7Jf3gkMAa8Ue"

DEBUG: quantumclient.client RESP:{'status': '200', 'content-length': '35425', 'content-location': u'http://212.29.131.118:9696/v2.0/networks.json', 'connection': 'close', 'date': 'Wed, 10 Jul 2013 12:13:16 GMT', 'content-type': 'application/json; charset=UTF-8'} {"networks": [{"status": "ACTIVE", "subnets": ["99bfde58-f4b9-43bf-8dbc-88dcb0eec97e"], "name ... (more)

edit flag offensive delete link more
0

answered 2013-07-19 13:42:42 -0600

matteo-dacrema gravatar image

Hi all, thanks for your answer it solved my problem. The problem it's the request too long. Thanks again. Regards. Matteo

edit flag offensive delete link more
0

answered 2013-07-01 17:14:13 -0600

emagana gravatar image

Could you post the script that you were using?

On Jul 1, 2013, at 8:56 AM, Matteo Dacrema question231692@answers.launchpad.net wrote:

New question #231692 on neutron: https://answers.launchpad.net/neutron/+question/231692 (https://answers.launchpad.net/neutron...)

Hi all, I've made a script for launch several instaces.This execute Quantum net-list command once per instance. After some time the command reply with 400 Bad Request. I've read that is an error that appear when you try to do bulk operation. After that I've edited quantum.conf "adding allow_bulk=yes" but the problem persists. Can someone help me? Thanks a lot. Matteo


You received this question notification because you are an answer contact for neutron.

edit flag offensive delete link more
0

answered 2013-07-05 08:22:54 -0600

matteo-dacrema gravatar image

This is the script:

#!/bin/bash count=0 for id in $(cat tenid) #file that contains number to assing to tenant ,user,etc. do keystone tenant-create --name net$id --enabled true keystone user-create --name net$id --tenant-id $(keystone tenant-list |grep net$id | awk '{print $2}') --pass grizzly --enabled true quantum net-create --tenant-id $(keystone tenant-list |grep net$id |awk '{print $2}') net$id quantum subnet-create --name net$id --tenant-id $(keystone tenant-list |grep net$id |awk '{print $2}') net$id 192.168.$id.0/24 --dns-nameserver 8.8.8.8 quantum router-create --tenant-id $(keystone tenant-list |grep net$id |awk '{print $2}') router$id quantum router-interface-add $(quantum router-list |grep router$id | awk '{print $2}') net$id quantum router-gateway-set $(quantum router-list |grep router$id | awk '{print $2}') PublicNetwork quantum net-list | grep net$id |awk '{print $2}' while [ $count -lt 3 ]; do nova --os-tenant-name net$id --os-username net$id --os-password grizzly --os-auth-url http://grizzly.enter.it:5000/v2.0/ boot --image 5b719d72-5270-42f2-9f98-243311a57bf5 --flavor 1 --nic net-id=$(quantum net-list |grep net$id | awk '{print $2}') load$id$count let count=count+1
done count=0 done Thanks

edit flag offensive delete link more
0

answered 2013-07-08 14:53:49 -0600

matteo-dacrema gravatar image

This is the script:

#!/bin/bash count=0 for id in $(cat tenid) #file that contains number to assing to tenant ,user,etc. do keystone tenant-create --name net$id --enabled true keystone user-create --name net$id --tenant-id $(keystone tenant-list |grep net$id | awk '{print $2}') --pass grizzly --enabled true quantum net-create --tenant-id $(keystone tenant-list |grep net$id |awk '{print $2}') net$id quantum subnet-create --name net$id --tenant-id $(keystone tenant-list |grep net$id |awk '{print $2}') net$id 192.168.$id.0/24 --dns-nameserver 8.8.8.8 quantum router-create --tenant-id $(keystone tenant-list |grep net$id |awk '{print $2}') router$id quantum router-interface-add $(quantum router-list |grep router$id | awk '{print $2}') net$id quantum router-gateway-set $(quantum router-list |grep router$id | awk '{print $2}') PublicNetwork quantum net-list | grep net$id |awk '{print $2}' while [ $count -lt 3 ]; do nova --os-tenant-name net$id --os-username net$id --os-password password --os-auth-url url boot --image 5b719d72-5270-42f2-9f98-243311a57bf5 --flavor 1 --nic net-id=$(quantum net-list |grep net$id | awk '{print $2}') load$id$count let count=count+1 done count=0 done Thanks

edit flag offensive delete link more
0

answered 2013-07-08 16:03:56 -0600

jamo gravatar image

after how many iterations are you seeing this issue?

also, can you add the -v argument to the net-list command and show that output before and after the "400 bad request" starts happening?

edit flag offensive delete link more
0

answered 2013-07-09 09:45:05 -0600

matteo-dacrema gravatar image

I don't know exactly after how many iterations but i'm secure that this issue happens after 70/80 execution of quantum net-list command. This remain the only quantum command that respond 400. Now i'm not able to run the command with the -v argument because now it is working. But I've already executed it with the -v argument when it respond 400 and I haven't see nothing of helpful. Thanks

edit flag offensive delete link more
0

answered 2013-07-10 05:21:31 -0600

jamo gravatar image

Edgar,

I tried running your script and have it working in my setup for the most part, although most of my instances ended up in ERROR state (some are ACTIVE). I ended up with 92 networks and never saw the 400 error response. I have "quantum net-list" running in a loop now and it's not seeing the issue either.

any clues in your /var/log/quantum/server.log file?

edit flag offensive delete link more
0

answered 2013-07-10 06:19:29 -0600

emagana gravatar image

James,

There is a timing issue between Neutron client and Neutron DB and this is why you end up having so many instances in ERROR state. This problem has been handled in: https://review.openstack.org/#/c/31657/

You may want to see if you have this patch in your code.

Edgar

edit flag offensive delete link more
0

answered 2013-07-10 21:40:29 -0600

jamo gravatar image

This is a guess here, but I'm noticing your client request is using a really large x-auth token. it's 4484 characters. There was another bug I hit where my request was ending up too large when I had too many subnets. It was different error response than this.

Point is, I wonder if your request is becoming too large for the server to handle after so many subnet ids are given in addition to the 4k character token.

I don't know enough about how to tweak anything with the tokens, so maybe someone else can chime in on that, if that is indeed the issue.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-01 15:51:37 -0600

Seen: 319 times

Last updated: Jul 19 '13