Ask Your Question
0

nova boot : Instance failed to spawn

asked 2012-06-21 10:01:08 -0600

potato-hi gravatar image

Ubuntu-12.04-server, Essex:

When follow the document http://docs.openstack.org/essex/openstack-compute/admin/content/booting-a-test-image.html to boot an instance by "nova boot --image cirros-0.3.0-x86_64 --flavor m1.small --key_name test my-first-server " , get the errors:

2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] Traceback (most recent call last): 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 592, in _spawn 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] self._legacy_nw_info(network_info), block_device_info) 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] return f(args, *kw) 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 916, in spawn 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] block_device_info=block_device_info) 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1525, in to_xml 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] rescue, block_device_info) 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1408, in _prepare_xml_info 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] nics.append(self.vif_driver.plug(instance, network, mapping)) 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 99, in plug 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] return self._get_configurations(network, mapping) 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 69, in _get_configurations 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] 'ip_address': mapping['ips'][0]['ip'], 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] IndexError: list index out of range 2012-06-21 17:44:58 TRACE nova.compute.manager [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] 2012-06-21 17:44:58 DEBUG nova.compute.manager [req-403b6b31-0954-404a-ab93-8ca55c206f43 e694a8fa0eaa4c93b11f6fb8edb53a2a 55a5adda88ba4c47a5472cca7478b626] [instance: 678200dd-97b9-43c2-be2a-fd9f111d10f2] Deallocating network for instance from (pid=16525) _deallocate_network /usr/lib/python2.7/dist-packages/nova/compute/manager.py:616 2012-06-21 17:44:58 DEBUG nova.rpc.amqp [req-403b6b31-0954-404a-ab93-8ca55c206f43 e694a8fa0eaa4c93b11f6fb8edb53a2a 55a5adda88ba4c47a5472cca7478b626] Making asynchronous cast on network... from (pid=16525) cast /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:346 2012-06-21 17:44:58 ERROR nova.rpc.amqp [req-403b6b31-0954-404a-ab93-8ca55c206f43 e694a8fa0eaa4c93b11f6fb8edb53a2a 55a5adda88ba4c47a5472cca7478b626] Exception during message handling 2012-06-21 17:44:58 TRACE nova.rpc.amqp Traceback (most recent call last): 2012-06-21 17:44:58 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in _process_data 2012-06-21 17:44:58 TRACE nova.rpc.amqp rval = node_func(context=ctxt, *node_args) 2012-06-21 17:44:58 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-06-21 17:44:58 TRACE ... (more)

edit retag flag offensive close merge delete

7 answers

Sort by ยป oldest newest most voted
0

answered 2012-06-26 08:44:11 -0600

potato-hi gravatar image

Seems the ips in fixed_ips table are not match my configuration file. I clear the database and restart the nova-network, it works.

Thanks.

edit flag offensive delete link more
0

answered 2012-06-26 08:44:26 -0600

potato-hi gravatar image

Seems the ips in fixed_ips table are not match my configuration file. I clear the database and restart the nova-network, it works.

Thanks.

edit flag offensive delete link more
0

answered 2012-07-06 02:00:24 -0600

yashiang1986 gravatar image

Hi all, I meet the same problem too. It happened after I assigned network-ip pair by using "--nic" option. Before I assigned ip by myself, it works well. But after that, instance boot always failed.

edit flag offensive delete link more
0

answered 2012-07-30 18:33:32 -0600

d1pro gravatar image

Sometimes network api returns 2 network entries, one having IP, another not having IP. In this case the error rises.

edit flag offensive delete link more
0

answered 2012-06-21 15:01:14 -0600

clucio gravatar image

Looks like your routing source IP is incorrect, also, I believe the interfaces should be br100 and not eth0 in your nova.conf...

edit flag offensive delete link more
0

answered 2012-06-24 03:24:54 -0600

potato-hi gravatar image

Sirry for the typo, I changed /etc/nova/nova.conf three lines:

--routing_source_ip=192.168.0.1 --public_interface=br100 --vlan_interface=br199

and resart nova services, execute nova boot again, it appears still the same errors.

edit flag offensive delete link more
0

answered 2012-06-24 03:25:58 -0600

potato-hi gravatar image

sorry again it's --vlan_interface=br100

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: 2012-06-21 10:01:08 -0600

Seen: 260 times

Last updated: Jul 30 '12