Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova-docker: Docker daemon is not running or is not reachable

Hello!

I have some trouble in configuring novadocker. I the service nova-compute doesn't start. The reason told in the log file is this:

2014-09-30 13:40:23.180 22210 ERROR nova.openstack.common.threadgroup [-] Docker daemon is not running or is not reachable (check the rights on /var/run/docker.sock)
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     x.wait()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 483, in run_service
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     service.start()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 163, in start
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     self.manager.init_host()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1030, in init_host
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     self.driver.init_host(host=self.host)
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 82, in init_host
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     _('Docker daemon is not running or is not reachable'
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup NovaException: Docker daemon is not running or is not reachable (check the rights on /var/run/docker.sock)

This is quite stage to me, because I already added nova user to the docker group. Moreover, docker daemon is running and there is the corresponding UNIX domain socket which is /var/run/docker.sock. I had also put to 666 the permission on /var/run/docker.sock... So I don't know what to do.

Do you have any suggestion?

Thanks.

nova-docker: Docker daemon is not running or is not reachable

Hello!

I have some trouble in configuring novadocker. I the service nova-compute doesn't start. The reason told in the log file is this:

2014-09-30 13:40:23.180 22210 ERROR nova.openstack.common.threadgroup [-] Docker daemon is not running or is not reachable (check the rights on /var/run/docker.sock)
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     x.wait()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 483, in run_service
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     service.start()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 163, in start
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     self.manager.init_host()
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1030, in init_host
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     self.driver.init_host(host=self.host)
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 82, in init_host
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup     _('Docker daemon is not running or is not reachable'
2014-09-30 13:40:23.180 22210 TRACE nova.openstack.common.threadgroup NovaException: Docker daemon is not running or is not reachable (check the rights on /var/run/docker.sock)

This is quite stage strange to me, because I already added nova user to the docker group. Moreover, docker daemon is running and there is the corresponding UNIX domain socket which is /var/run/docker.sock. I had also put to 666 the permission on /var/run/docker.sock... So I don't know what to do.

Do you have any suggestion?

Thanks.