[Openstack] [Docker] nova-compute failed to start with docker hypervisor.

Takahiro Shida shida at intellilink.co.jp
Tue Aug 12 02:07:34 UTC 2014


Hi yongiman,

I'm faced as same problem in my environment.

- OS: Ubuntu 14.04 64bit
- OpenStack: recent master(constructed by devstack at 8/11)
- Docker: 0.9.1 (default for Ubuntu 14.04)

But I could solved it.

The nova-docker call the docker ping API with "v1.13" prefix.
So, it need to upgrade docker version to correspond v1.13 API.

(And now, the version prefix is hard-coded on nova-docker.
You can not change it.)

http://docs.docker.io.s3-website-us-west-2.amazonaws.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit

Please check your docker version.

Regards,

--
Takahiro Shida.
<shida at intellilink.co.jp>

(2014/08/07 13:20), 한승진 wrote:
> Hi everyone~!
>
> I've been trying to deploy docker hypervisor environments.
>
> However, the nova-compute didn't start because of below reason.
>
> [nova-compute LOG]
> 2014-08-07 00:27:38.946 11777 INFO nova.openstack.common.periodic_task
> [-] Skipping periodic task _periodic_update_dns because its interval is
> negative
> 2014-08-07 00:27:38.995 11777 INFO nova.virt.driver [-] Loading compute
> driver 'novadocker.virt.docker.driver.DockerDriver'
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> Traceback (most recent call last):
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py",
> line 117, in wait
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    x.wait()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py",
> line 49, in wait
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    return self.thread.wait()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line
> 168, in wait
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    return self._exit_event.wait()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    return hubs.get_hub().switch()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187,
> in switch
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    return self.greenlet.switch()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line
> 194, in main
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    result = function(*args, **kwargs)
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py",
> line 480, in run_service
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    service.start()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/service.py", line 163, in start
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    self.manager.init_host()
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
> 1012, in init_host
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    self.driver.init_host(host=self.host)
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> File
> "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py",
> line 82, in init_host
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>    _('Docker daemon is not running or is not reachable'
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
> NovaException: Docker daemon is not running or is not reachable (check
> the rights on /var/run/docker.sock)
> 2014-08-07 00:27:39.081 11777 TRACE nova.openstack.common.threadgroup
>
>
> I also let nova user belong to docker group and gave authorization into
> docke.sock.
>
> in /etc/group file
>
> nova:x:115:
> cinder:x:116:
> docker:x:117:nova
>
> and..
>
> root at compute1:/etc/nova/rootwrap.d# ll /var/run/docker*
> -rwxrwxrwx 1 nova root   5 Aug  7 00:11 /var/run/docker.pid*
> srwxrwxrwx 1 nova docker 0 Aug  7 00:11 /var/run/docker.sock=
>
> But the same message occurs..
>
> Could you anybody tell me how to solve the issue?
>
>
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>





More information about the Openstack mailing list