← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1278104] [NEW] Docker cannot start a new instance because of an internal error

 

Public bug reported:

Cannot create new instances because of an internal error. It seems like
that the docker client returns None instead of a empty array if not a
single container is started.

2014-02-09 15:01:44.077 ERROR nova.openstack.common.threadgroup [-] 'NoneType' object is not iterable
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     x.wait()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/service.py", line 480, in run_service
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     service.start()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/service.py", line 177, in start
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     self.manager.init_host()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 821, in init_host
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     self._destroy_evacuated_instances(context)
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 532, in _destroy_evacuated_instances
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     local_instances = self._get_instances_on_driver(context, filters)
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 511, in _get_instances_on_driver
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     driver_instances = self.driver.list_instances()
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/docker/driver.py", line 96, in list_instances
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     for container in self.docker.list_containers():
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup TypeError: 'NoneType' object is not iterable
2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup

** Affects: nova
     Importance: Undecided
     Assignee: Daniel Kuffner (daniel-kuffner)
         Status: New


** Tags: docker

** Changed in: nova
     Assignee: (unassigned) => Daniel Kuffner (daniel-kuffner)

-- 
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/1278104

Title:
  Docker cannot start a new instance because of an internal error

Status in OpenStack Compute (Nova):
  New

Bug description:
  Cannot create new instances because of an internal error. It seems
  like that the docker client returns None instead of a empty array if
  not a single container is started.

  2014-02-09 15:01:44.077 ERROR nova.openstack.common.threadgroup [-] 'NoneType' object is not iterable
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     x.wait()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/service.py", line 480, in run_service
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     service.start()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/service.py", line 177, in start
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     self.manager.init_host()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 821, in init_host
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     self._destroy_evacuated_instances(context)
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 532, in _destroy_evacuated_instances
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     local_instances = self._get_instances_on_driver(context, filters)
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 511, in _get_instances_on_driver
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     driver_instances = self.driver.list_instances()
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/docker/driver.py", line 96, in list_instances
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup     for container in self.docker.list_containers():
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup TypeError: 'NoneType' object is not iterable
  2014-02-09 15:01:44.077 TRACE nova.openstack.common.threadgroup

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


Follow ups

References