yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11623
[Bug 1292479] [NEW] Instance creation fails using Docker 0.9.0
Public bug reported:
When docker version 0.9.0 is used the nova docker driver cannot create
an instance.
2014-03-14 14:19:57.010 ERROR nova.scheduler.filter_scheduler [req-
6a76b8b0-54a5-47ea-972a-4afbaa7fbe95 admin demo] [instance: f049452c-
af4b-4e72-a5bf-30e98de634a5] Error from last host: precise64 (node
precise64): [u'Traceback (most recent call last):\n', u' File
"/opt/stack/nova/nova/compute/manager.py", line 1070, in
_build_instance\n set_access_ip=set_access_ip)\n', u' File
"/opt/stack/nova/nova/compute/manager.py", line 357, in
decorated_function\n return function(self, context, *args,
**kwargs)\n', u' File "/opt/stack/nova/nova/compute/manager.py", line
1478, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'),
instance=instance)\n', u' File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in
__exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File
"/opt/stack/nova/nova/compute/manager.py", line 1475, in _spawn\n
block_device_info)\n', u' File
"/opt/stack/nova/nova/virt/docker/driver.py", line 311, in spawn\n
instance_id=instance[\'name\'])\n', u'InstanceDeployFailure: Cannot
setup network: Cannot find any PID under container
"a4892757db16edc62dfda981859a11e02d07a40cdfca83d9e466e841ba4094e3"\n']
The driver fails in the '_find_container_pid' method. The reason is that
in 0.9 there is a new built-in execution driver used by default
(libcontainer). Instead of cgroup path /sys/fs/cgroup/devices/lxc/ it
uses /sys/fs/cgroup/devices/docker/.
Could it be possible to rewrite _find_container_pid using the docker
remote api and do not access cgroup filesystem directly?
** Affects: nova
Importance: Undecided
Status: New
** Tags: docker
--
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/1292479
Title:
Instance creation fails using Docker 0.9.0
Status in OpenStack Compute (Nova):
New
Bug description:
When docker version 0.9.0 is used the nova docker driver cannot create
an instance.
2014-03-14 14:19:57.010 ERROR nova.scheduler.filter_scheduler [req-
6a76b8b0-54a5-47ea-972a-4afbaa7fbe95 admin demo] [instance: f049452c-
af4b-4e72-a5bf-30e98de634a5] Error from last host: precise64 (node
precise64): [u'Traceback (most recent call last):\n', u' File
"/opt/stack/nova/nova/compute/manager.py", line 1070, in
_build_instance\n set_access_ip=set_access_ip)\n', u' File
"/opt/stack/nova/nova/compute/manager.py", line 357, in
decorated_function\n return function(self, context, *args,
**kwargs)\n', u' File "/opt/stack/nova/nova/compute/manager.py", line
1478, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'),
instance=instance)\n', u' File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in
__exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/opt/stack/nova/nova/compute/manager.py", line 1475, in _spawn\n
block_device_info)\n', u' File
"/opt/stack/nova/nova/virt/docker/driver.py", line 311, in spawn\n
instance_id=instance[\'name\'])\n', u'InstanceDeployFailure: Cannot
setup network: Cannot find any PID under container
"a4892757db16edc62dfda981859a11e02d07a40cdfca83d9e466e841ba4094e3"\n']
The driver fails in the '_find_container_pid' method. The reason is
that in 0.9 there is a new built-in execution driver used by default
(libcontainer). Instead of cgroup path /sys/fs/cgroup/devices/lxc/ it
uses /sys/fs/cgroup/devices/docker/.
Could it be possible to rewrite _find_container_pid using the docker
remote api and do not access cgroup filesystem directly?
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1292479/+subscriptions
Follow ups
References