← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1131330] Re: nova-compute fails to start if an instance has no ip

 

** Also affects: nova/folsom
   Importance: Undecided
       Status: New

** Also affects: nova/grizzly
   Importance: Undecided
       Status: New

** Changed in: nova/grizzly
       Status: New => Invalid

** Changed in: nova/folsom
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1131330

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

Status in OpenStack Compute (Nova):
  Invalid
Status in OpenStack Compute (nova) folsom series:
  New
Status in OpenStack Compute (nova) grizzly series:
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1131330/+subscriptions