Got [HTTP 500] error when creating VM network

asked 2013-10-23 00:07:38 -0500

Dongjh gravatar image

I got an error when creating the VM network. root@controller:/etc/nova# nova network-create vmnet --fixed-range-v4=192.168.11.192/26 --bridge-interface=br100 --multi-host=T --gateway=192.168.11.254 --dns1=221.12.1.227 --dns2=221.12.1.228

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-158a01c3-3189-419e-ae30-9cf3b7c6655e)

root@controller:/etc/nova# nova --debug network-create vmnet --fixed-range-v4=192.168.11.192/26 --bridge-interface=br100 --multi-host=T

REQ: curl -i http://controller:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "openstack"}}}'

INFO (connectionpool:202) Starting new HTTP connection (1): controller DEBUG (connectionpool:296) "POST /v2.0/tokens HTTP/1.1" 200 3822 RESP: [200] CaseInsensitiveDict({'date': 'Wed, 23 Oct 2013 03:32:28 GMT', 'vary': 'X-Auth-Token', 'content-length': '3822', 'content-type': 'application/json'}) RESP BODY: {"access": {"token": {"issued_at": "2013-10-23T03:32:27.952192", "expires": "2013-10-24T03:32:27Z", "id": "MIIHJgYJKoZIhvcNAQcCoIIHFzCCBxMCAQExCTAHBgUrDgMCGjCCBXwGCSqGSIb3DQEHAaCCBW0EggVpeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMC0yM1QwMzozMjoyNy45NTIxOTIiLCAiZXhwaXJlcyI6ICIyMDEzLTEwLTI0VDAzOjMyOjI3WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjM4MmNlODVlZjAwOTQ4YTNhMTQ0MmU0NGY5ZDAzM2VkIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ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MjY3Y2ZlIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vY29udHJvbGxlcjo1MDAwL3YyLjAifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICJlZWNiMmI1ZjJiNGY0ODE5ODBhNTU0NmFmNjgwNDgxYyIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbIjRhMGYxMDgyYzE0ODRjMzc4YjQyMjcxOTljM2E3NDJlIl19fX0xggGBMIIBfQIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVVbnNldDEOMAwGA1UEBwwFVW5zZXQxDjAMBgNVBAoMBVVuc2V0MRgwFgYDVQQDDA93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEAQ8cWZqOlLmHJdqZdqEOqjPVrIIPnGB33rQ1h4etoNGDJwy2YwX7v8Kzw1agu7I83JKhWltOjBONsQZAegvDCBkNSn91O5o2tDXRGJzyUhje8ryQzBi-TwZjXAGtoT6dBCfjgP6wBrMFkBX7BaHj0P4I+QkGHq9wFiMi2q5gRO4Kuj8kM7PLjuWv1UuJTeZqmxBeQMqbxKSEYY-VztxtVTq95yRrd6rRbJAIuyeimigBSan8E+tFPPUpINecCt8Fhot-4kHE6Ts8o9og-cjuGi5FqKQ7En6XFDrdIPhPT8noe-+QdyeTMSBeeLHxeyIgXy7Da7NE2oei8etTioAu6hQ==", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "382ce85ef00948a3a1442e44f9d033ed", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "628e2bbd3f364e5ca039f76f001f2a51", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/382ce85ef00948a3a1442e44f9d033ed", "region": "regionOne", "internalURL": "http://controller:8774/v2/382ce85ef00948a3a1442e44f9d033ed", "id": "538f4e1cd3a34989a73839acc33acf64", "publicURL": "http://controller:8774/v2/382ce85ef00948a3a1442e44f9d033ed"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "2923b880cadd46f6b8974fa79f267cfe", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "eecb2b5f2b4f481980a5546af680481c", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["4a0f1082c1484c378b4227199c3a742e"]}}}

REQ: curl -i http://controller:8774/v2/382ce85ef00948a3a1442e44f9d033ed/os-networks -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIIHJgYJKoZIhvcNAQcCoIIHFzCCBxMCAQExCTAHBgUrDgMCGjCCBXwGCSqGSIb3DQEHAaCCBW0EggVpeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMC0yM1QwMzozMjoyNy45NTIxOTIiLCAiZXhwaXJlcyI6ICIyMDEzLTEwLTI0VDAzOjMyOjI3WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjM4MmNlODVlZjAwOTQ4YTNhMTQ0MmU0NGY5ZDAzM2VkIiwgIm5hbWUiOiAiY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2ZjZiODk3NGZhNzlmMjY3Y2ZlIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vY29udHJvbGxlcjo1MDAwL3YyLjAifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICJlZWNiMmI1ZjJiNGY0ODE5ODBhNTU0NmFmNjgwNDgxYyIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbIjRhMGYxMDgyYzE0ODRjMzc4YjQyMjcxOTljM2E3NDJlIl19fX0xggGBMIIBfQIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVVbnNldDEOMAwGA1UEBwwFVW5zZXQxDjAMBgNVBAoMBVVuc2V0MRgwFgYDVQQDDA93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEAQ8cWZqOlLmHJdqZdqEOqjPVrIIPnGB33rQ1h4etoNGDJwy2YwX7v8Kzw1agu7I83JKhWltOjBONsQZAegvDCBkNSn91O5o2tDXRGJzyUhje8ryQzBi-TwZjXAGtoT6dBCfjgP6wBrMFkBX7BaHj0P4I+QkGHq9wFiMi2q5gRO4Kuj8kM7PLjuWv1UuJTeZqmxBeQMqbxKSEYY-VztxtVTq95yRrd6rRbJAIuyeimigBSan8E+tFPPUpINecCt8Fhot-4kHE6Ts8o9og-cjuGi5FqKQ7En6XFDrdIPhPT8noe-+QdyeTMSBeeLHxeyIgXy7Da7NE2oei8etTioAu6hQ==" -d '{"network": {"cidr": "192.168.11.192/26", "bridge_interface": "br100", "multi_host": true, "label": "vmnet"}}'

INFO (connectionpool:202) Starting new HTTP connection (1): controller DEBUG (connectionpool:296) "POST /v2/382ce85ef00948a3a1442e44f9d033ed/os-networks HTTP/1.1" 500 128 RESP: [500] CaseInsensitiveDict({'date': 'Wed, 23 Oct 2013 03:33:28 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-54233a4b-f8eb-4136-9dec-3527b1a90573'}) RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:740) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-54233a4b-f8eb-4136-9dec-3527b1a90573) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 737, in main OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 673, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 905, in do_network_create cs.networks.create(*kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/networks.py", line 94, in create return self._create('/os-networks', body, 'network') File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 145, in _create _resp, body = self.api.client.post(url, body ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-10-23 07:08:30 -0500

Dongjh gravatar image

Issue resolved, the reason is missing the sql connection configuration on the compute nodes, so the nova-network service was not actually running.

edit flag offensive delete link more

Comments

I'm having the same issue, I checked sql setting on the compute machine and its all setup correctly , any other ideas ?

onahum204 gravatar imageonahum204 ( 2013-10-28 08:48:08 -0500 )edit

I encountered the same issue too. It's true that nova-network service is not actually running. SQL setting is as :
~~~~~~~~~~~~~~~~~~~~~~~~~~~
[database]
connection = mysql://nova:NOVA_DBPASS@controller/nova
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What's wrong with it?

sunzen gravatar imagesunzen ( 2014-02-12 03:43:59 -0500 )edit

Thanks Dongjh, solved my issue

Rajasekar gravatar imageRajasekar ( 2014-12-06 11:06:54 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-10-23 00:07:38 -0500

Seen: 2,516 times

Last updated: Oct 23 '13