Ask Your Question
0

Configure Docker in OpenStack

asked 2016-01-08 00:39:07 -0600

luckyyd gravatar image

Hi All

I tried to install Docker in OpenStack followed Official doc:https://wiki.openstack.org/wiki/Docker

It suggests to install nova-docker driver. And after I followed the manuscript and configure the docker, the openstack-status shows that:

openstack-nova-compute: failed

openstack-ceilometer-api: failed

In /var/log/nova/nova-compute.log shows that

2016-01-08 01:16:04.975 7793 ERROR nova.virt.driver [-] Unable to load the virtualization driver

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver Traceback (most recent call last):

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/virt/driver.py", line 1402, in load_compute_driver

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver virtapi)

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver return import_class(import_str)(args, *kwargs)

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 27, in import_class

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver __import__(mod_str)

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/novadocker/virt/docker/__init__.py", line 20, in <module>

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver from novadocker.virt.docker import driver

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/novadocker/virt/docker/driver.py", line 30, in <module>

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver from oslo_log import log

2016-01-08 01:16:04.975 7793 TRACE nova.virt.driver ImportError: No module named oslo_log

My OpenStack version is Juno, with CentOS7 and latest Docker.

I don't know how to solve this, anyone might help me?

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-08 01:02:28 -0600

vincent gravatar image

Unfortunately I don't have a quick fix for you, but I can tell you that I was able to run nova-docker using the Liberty release, just in case it's an option for you to try that one out. It worked pretty much as documented (modulo networking issues that I'm still coping with, but I can launch an instance without problems). Did you set verbose to True in your /etc/nova/nova.conf [DEFAULT] section?

One thing you could try if you're adventurous is to peak at the nova-docker Python code and do some debugging by writing out some of the variables/data to a file for inspection. The main method that kicks the whole instance is "spawn" that is in /usr/lib/python2.7/site-packages/novadocker/virt/docker/driver.py (obviously could be different Python for you)

Good luck

edit flag offensive delete link more

Comments

I install the rdo openstack liberty. And try to install docker driver. Without accident, it does not work. When I set the nova.conf with compute_driver = novadocker.virt.docker.DockerDriver and restart the nova-compute, it failed.

luckyyd gravatar imageluckyyd ( 2016-01-10 06:12:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-01-08 00:39:07 -0600

Seen: 287 times

Last updated: Jan 08 '16