nova-compute fails to start if an instance has no ip

Bug #1131330 reported by Vish Ishaya
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
Folsom
Fix Released
Medium
Vish Ishaya
Grizzly
Invalid
Undecided
Unassigned

Bug Description

If nova an instance is created but fails to get an ip address, then nova-compute will traceback when it is started:

2013-02-21 16:01:01 TRACE nova Traceback (most recent call last):
2013-02-21 16:01:01 TRACE nova File "/usr/bin/nova-compute", line 48, in <module>
2013-02-21 16:01:01 TRACE nova service.wait()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 659, in wait
2013-02-21 16:01:01 TRACE nova _launcher.wait()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 192, in wait
2013-02-21 16:01:01 TRACE nova super(ServiceLauncher, self).wait()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in wait
2013-02-21 16:01:01 TRACE nova service.wait()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2013-02-21 16:01:01 TRACE nova return self._exit_event.wait()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2013-02-21 16:01:01 TRACE nova return hubs.get_hub().switch()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2013-02-21 16:01:01 TRACE nova return self.greenlet.switch()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2013-02-21 16:01:01 TRACE nova result = function(*args, **kwargs)
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 132, in run_server
2013-02-21 16:01:01 TRACE nova server.start()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 398, in start
2013-02-21 16:01:01 TRACE nova self.manager.init_host()
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 296, in init_host
2013-02-21 16:01:01 TRACE nova self.driver.plug_vifs(instance, legacy_net_info)
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 437, in plug_vifs
2013-02-21 16:01:01 TRACE nova self.vif_driver.plug(instance, (network, mapping))
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 111, in plug
2013-02-21 16:01:01 TRACE nova return self._get_configurations(instance, network, mapping)
2013-02-21 16:01:01 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 68, in _get_configurations
2013-02-21 16:01:01 TRACE nova conf.add_filter_param("IP", mapping['ips'][0]['ip'])
2013-02-21 16:01:01 TRACE nova IndexError: list index out of range
2013-02-21 16:01:01 TRACE nova

Tags: canonistack
Revision history for this message
Vish Ishaya (vishvananda) wrote :

Workaround is to delete the instance without an ip assigned.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/22583

Revision history for this message
Jian Wen (wenjianhn) wrote :

related bug 1076309

James Troup (elmo)
tags: added: canonistack
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers