[Openstack] Networking error while creating VM
Hi- I'm seeing these errors in the COMPUTE-NODE nova-compute.log while bringing up the virtual machines. 2012-08-07 04:45:46 DEBUG nova.rpc.amqp [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 a17de6f647b14739acb33f09d246f72e] Pool creating new connection from (pid=27708) create /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:60 2012-08-07 04:45:46 INFO nova.rpc.common [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 a17de6f647b14739acb33f09d246f72e] Connected to AMQP server on 10.232.90.82:5672 2012-08-07 04:45:48 ERROR nova.compute.manager [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 a17de6f647b14739acb33f09d246f72e] [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] Instance failed network setup 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] Traceback (most recent call last): 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 565, in _allocate_network 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] requested_networks=requested_networks) 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 170, in allocate_for_instance 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] 'args': args}) 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 68, in call 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] return _get_impl().call(context, topic, msg, timeout) 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 674, in call 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] return rpc_amqp.call(context, topic, msg, timeout, Connection.pool) 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 343, in call 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] rv = list(rv) 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 311, in __iter__ 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] raise result 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] RemoteError: Remote error: TypeError 'NoneType' object has no attribute '__getitem__' 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in _process_data\nrval = node_func(context=ctxt, **node_args)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line 357, in allocate_for_instance\nvif_rec, network[\'net_tenant_id\'])\n', u' File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner\nretval = f(*args, **kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line 456, in enable_dhcp\nsubnet[\'network_id\'], project_id)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line 663, in get_dhcp_hosts_text\nips = self.ipam.get_allocated_ips(context, subnet_id, project_id)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantum/nova_ipam_lib.py", line 238, in get_allocated_ips\nallocated_ips.append((ip[\'address\'], vif[\'uuid\']))\n', u"TypeError: 'NoneType' object has no attribute '__getitem__'\n"]. 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: e0d0aa4b-6865-46da-a8f4-9257dd838ab4] 2012-08-07 04:45:48 ERROR nova.rpc.amqp [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 a17de6f647b14739acb33f09d246f72e] Exception during message handling 2012-08-07 04:45:48 TRACE nova.rpc.amqp Traceback (most recent call last): 2012-08-07 04:45:48 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data 2012-08-07 04:45:48 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args) 2012-08-07 04:45:48 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-08-07 04:45:48 TRACE nova.rpc.amqp return f(*args, **kw) 2012-08-07 04:45:48 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", lin
Re: [Openstack] Networking error while creating VM
Guys- Its my config problem... Its troubleshooted... Now VMs are up and running... On Tue, Aug 7, 2012 at 10:19 AM, Trinath Somanchi < trinath.soman...@gmail.com> wrote: > Hi- > > I'm seeing these errors in the COMPUTE-NODE nova-compute.log while > bringing up the virtual machines. > > 2012-08-07 04:45:46 DEBUG nova.rpc.amqp > [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 > a17de6f647b14739acb33f09d246f72e] Pool creating new connection from > (pid=27708) create /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:60 > 2012-08-07 04:45:46 INFO nova.rpc.common > [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 > a17de6f647b14739acb33f09d246f72e] Connected to AMQP server on > 10.232.90.82:5672 > 2012-08-07 04:45:48 ERROR nova.compute.manager > [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 > a17de6f647b14739acb33f09d246f72e] [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] Instance failed network setup > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] Traceback (most recent call last): > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File > "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 565, in > _allocate_network > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] > requested_networks=requested_networks) > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File > "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 170, in > allocate_for_instance > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] 'args': args}) > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File > "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 68, in call > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] return _get_impl().call(context, > topic, msg, timeout) > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File > "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 674, in call > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] return rpc_amqp.call(context, > topic, msg, timeout, Connection.pool) > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File > "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 343, in call > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] rv = list(rv) > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] File > "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 311, in __iter__ > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] raise result > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] RemoteError: Remote error: TypeError > 'NoneType' object has no attribute '__getitem__' > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] [u'Traceback (most recent call > last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", > line 252, in _process_data\nrval = node_func(context=ctxt, > **node_args)\n', u' File > "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line > 357, in allocate_for_instance\nvif_rec, network[\'net_tenant_id\'])\n', > u' File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in > inner\nretval = f(*args, **kwargs)\n', u' File > "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line > 456, in enable_dhcp\nsubnet[\'network_id\'], project_id)\n', u' File > "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line > 663, in get_dhcp_hosts_text\nips = self.ipam.get_allocated_ips(context, > subnet_id, project_id)\n', u' File > "/usr/lib/python2.7/dist-packages/nova/network/quantum/nova_ipam_lib.py", > line 238, in get_allocated_ips\nallocated_ips.append((ip[\'address\'], > vif[\'uuid\']))\n', u"TypeError: 'NoneType' object has no attribute > '__getitem__'\n"]. > 2012-08-07 04:45:48 TRACE nova.compute.manager [instance: > e0d0aa4b-6865-46da-a8f4-9257dd838ab4] > 2012-08-07 04:45:48 ERROR nova.rpc.amqp > [req-7e560f6e-0342-4799-83da-94e46d555d96 668f5d9ca716417fa16208828c5acea8 > a17de6f647b14739acb33f09d246f72e] Exception during message handling > 2012-08-07 04:45:48 TRACE nova.rpc.amqp Traceback (most recent call last): > 2012-08-07 04:45:48 TRACE nova.rpc.amqp File > "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in > _process_data > 2012-08-07 04:45:48 TRACE nova.rpc.amqp