Ask Your Question

mark91's profile - activity

2014-12-10 23:25:57 -0600 received badge  Famous Question (source)
2014-12-10 23:25:57 -0600 received badge  Notable Question (source)
2014-11-06 01:57:41 -0600 commented question should nova-docker work on Juno?

Could you post what the errors you are facing are exactly? What is written on the log? How did you put the docker images on glance?

2014-11-05 19:35:19 -0600 received badge  Popular Question (source)
2014-11-03 08:23:25 -0600 received badge  Taxonomist
2014-10-31 06:09:37 -0600 received badge  Student (source)
2014-10-29 03:12:21 -0600 answered a question multiple compute driver on single host (adding Docker)

Simply you can't have an host running two different dirvers... So you are right, there is no support to a multi driver configuration on a single host

2014-10-18 04:53:17 -0600 received badge  Famous Question (source)
2014-10-14 09:11:56 -0600 asked a question nova-docker: interfaces are not setted up if a command different from /bin/bash is executed

Hello everybody!

I'm having an issue with nova-docker when I run a container which executes a script. In fact, in that case no interface is set up. Otherwise, If the container executes /bin/bash everything works properly... I imagine that the reason can be found in the attach method of the vifs.py file, in which interfaces are attached to the container and it seems that these commands need a shell to be run.

Does anybody know how to fix this?

Thanks.

2014-10-08 10:46:16 -0600 received badge  Notable Question (source)
2014-10-08 10:46:16 -0600 received badge  Popular Question (source)
2014-10-08 10:02:11 -0600 received badge  Famous Question (source)
2014-09-30 07:38:16 -0600 answered a question nova-docker: Docker daemon is not running or is not reachable

The solution was to upgrade to the latest version of docker, as suggested here: http://www.gossamer-threads.com/lists/openstack/dev/40195 (http://www.gossamer-threads.com/lists...) .

I installed this Docker version: Docker version 1.2.0, build fa7b24f. And now it works.

2014-09-30 06:57:14 -0600 asked a question 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 ...
(more)
2014-09-29 19:54:20 -0600 received badge  Notable Question (source)
2014-09-29 12:38:19 -0600 commented question nova-docker issue. Import error: no module named i18n

If I can exploit your helpfulness, I have another issue. It says: Docker daemon is not running or is not reachable (check the rights on /var/run/docker.sock). But nova user is in the docker group and I did chmod 666 to the sock file. And docker service is running. Do you know why this happen? Thanks

2014-09-29 12:35:51 -0600 commented question nova-docker issue. Import error: no module named i18n

Yes, but this was just a temporary error. I don't know how it happened and when I tried to restart nova-compute this error disappeared, even doing nothing. It was just very strange!

2014-09-29 12:08:09 -0600 commented answer nova-docker issue. Import error: no module named i18n

Thanks, now I have another issue, but you have solved my problem. Thank you very much for the help!

2014-09-29 12:07:10 -0600 received badge  Scholar (source)
2014-09-29 12:07:07 -0600 received badge  Supporter (source)
2014-09-29 11:27:39 -0600 received badge  Popular Question (source)
2014-09-29 11:27:38 -0600 received badge  Editor (source)
2014-09-29 10:22:49 -0600 commented answer nova-docker issue. Import error: no module named i18n

Thank you for your answer.

So, I should change the code before launching the setup.py file and undo the changes documented here ( https://github.com/stackforge/nova-docker/commit/9ce916c486a64bfac38fb665fbe7619cef4e1f92 (https://github.com/stackforge/nova-do...) ), am I right?

2014-09-29 09:31:41 -0600 asked a question nova-docker issue. Import error: no module named i18n

Hello,

I'm trying to install nova-docker driver, following the README file at https://github.com/stackforge/nova-docker (https://github.com/stackforge/nova-do...) . I followed all the steps, but when I restart nova-compute, the service doesn't start and I get the following error in the log file:

2014-09-29 14:59:47.231 22982 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.DockerDriver'
2014-09-29 14:59:47.233 22982 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver Traceback (most recent call last):
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1299, in load_compute_driver
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver     virtapi)
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 28, in import_class
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver     __import__(mod_str)
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/__init__.py", line 20, in <module>
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver     from novadocker.virt.docker import driver
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 31, in <module>
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver     from nova.i18n import _
2014-09-29 14:59:47.233 22982 TRACE nova.virt.driver ImportError: No module named i18n

Does anybody know why this happen and what I can do to solve this problem?

Thank you.


UPDATE

As larsks said, I have changed the code in my nova-docker to previous the commit 9ce916c4 and the error now changed to this:

2014-09-29 17:31:21.667 4979 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver Traceback (most recent call last):
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1299, in load_compute_driver
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver     virtapi)
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 28, in import_class
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver     __import__(mod_str)
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver ...
(more)