为openstack安装novadocker

时间:2014-09-26 20:04:10

标签: configuration docker openstack openstack-nova

我在设置novadocker时遇到问题,用Openstack设置Docker计算节点。 Openstack版本是Horizo​​n。

我已经按照本教程https://wiki.openstack.org/wiki/Docker#Installing_Docker_for_OpenStack进行了操作,但是当我使用本教程中的内容相应地更改node-compute.conf文件时,当我尝试启动nova-compute时,我在日志文件中收到此错误服务:

ImportError: No module named novadocker.virt.docker

你知道这是什么原因,我该怎么做才能解决它?

非常感谢您的帮助!

/usr/local/lib/python2.7/dist-packages/中的

PS 有一个名为nova-docker.egg-link的文件,其中包含novadocker驱动程序的真实位置......当nova正在寻找时,它似乎被忽略了。


更新

我忘记了python setup.py install。现在我已经完成了但是这是另一个我无法解决的错误:

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

我不知道这个模块是什么以及如何解决这个问题......

有人能帮助我吗?


更新2

我设法通过向后执行最后一次提交来解决这个问题,实际上是这次提交https://github.com/stackforge/nova-docker/commit/9ce916c486a64bfac38fb665fbe7619cef4e1f92。但现在令人惊讶的是我遇到了这个问题:

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   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/__init__.py", line 20, in <module>
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver     from novadocker.virt.docker import driver
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 41, in <module>
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver     from novadocker.virt.docker import client as docker_client
2014-09-29 17:31:21.667 4979 TRACE nova.virt.driver ImportError: cannot import name client

我其实不知道该怎么办!求你帮帮我。

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

朱诺并不需要如上所述的限制: - $ git checkout -b pre-i18n 9045ca43b645e72751099491bf5f4f9e4bddbb91

查看&#34;在OpenStack上运行Nova-Docker RDO Juno(CentOS 7&amp;&amp; Fedora 21)&#34;
1. http://www.linux.com/community/blogs/133-general-linux/799569-running-nova-docker-on-openstack-rdo-juno-centos-7
2。http://www.linux.com/community/blogs/133-general-linux/802013-set-up-nova-docker-on-openstack-rdo-juno-on-top-of-fedora-21/