← Back to team overview

openstack team mailing list archive

Instance spawning issues - Index out of range exception

 

Hi,

while trying a launch an instance, i encounter the following error (from
nova-compute log). Could somebody please shed some light on this?


2012-06-22 21:17:52 ERROR nova.rpc.amqp
[req-59553bb4-d3c8-4cdf-b7e2-0c4fa5d54027 036b5b0be29c42d89a096c695ffa02e0
e6aa7a13922f422c94bed4455833df58] Exception during message handling
2012-06-22 21:17:52 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in
_process_data
2012-06-22 21:17:52 TRACE nova.rpc.amqp     rval = node_func(context=ctxt,
**node_args)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2012-06-22 21:17:52 TRACE nova.rpc.amqp     return f(*args, **kw)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in
decorated_function
2012-06-22 21:17:52 TRACE nova.rpc.amqp     sys.exc_info())
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-06-22 21:17:52 TRACE nova.rpc.amqp     self.gen.next()
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 171, in
decorated_function
2012-06-22 21:17:52 TRACE nova.rpc.amqp     return function(self, context,
instance_uuid, *args, **kwargs)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 651, in
run_instance
2012-06-22 21:17:52 TRACE nova.rpc.amqp     do_run_instance()
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner
2012-06-22 21:17:52 TRACE nova.rpc.amqp     retval = f(*args, **kwargs)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 650, in
do_run_instance
2012-06-22 21:17:52 TRACE nova.rpc.amqp     self._run_instance(context,
instance_uuid, **kwargs)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 451, in
_run_instance
2012-06-22 21:17:52 TRACE nova.rpc.amqp
self._set_instance_error_state(context, instance_uuid)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-06-22 21:17:52 TRACE nova.rpc.amqp     self.gen.next()
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 432, in
_run_instance
2012-06-22 21:17:52 TRACE nova.rpc.amqp
self._deallocate_network(context, instance)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-06-22 21:17:52 TRACE nova.rpc.amqp     self.gen.next()
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 429, in
_run_instance
2012-06-22 21:17:52 TRACE nova.rpc.amqp     injected_files, admin_password)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 592, in
_spawn
2012-06-22 21:17:52 TRACE nova.rpc.amqp
self._legacy_nw_info(network_info), block_device_info)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2012-06-22 21:17:52 TRACE nova.rpc.amqp     return f(*args, **kw)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
916, in spawn
2012-06-22 21:17:52 TRACE nova.rpc.amqp
block_device_info=block_device_info)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
1525, in to_xml
2012-06-22 21:17:52 TRACE nova.rpc.amqp     rescue, block_device_info)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
1408, in _prepare_xml_info
2012-06-22 21:17:52 TRACE nova.rpc.amqp
nics.append(self.vif_driver.plug(instance, network, mapping))
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 99, in
plug
2012-06-22 21:17:52 TRACE nova.rpc.amqp     return
self._get_configurations(network, mapping)
2012-06-22 21:17:52 TRACE nova.rpc.amqp   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 69, in
_get_configurations
2012-06-22 21:17:52 TRACE nova.rpc.amqp     'ip_address':
mapping['ips'][0]['ip'],
2012-06-22 21:17:52 TRACE nova.rpc.amqp IndexError: list index out of range