Ask Your Question
0

Nova Docker cannot import name arch

asked 2015-05-28 05:34:03 -0500

nir.henn gravatar image

updated 2015-05-28 12:21:07 -0500

dbaxps gravatar image

Hi there,

I am trying to install docker support on Ubuntu 14.04 w/icehouse . I followed the instruction under https://wiki.openstack.org/wiki/Docker, some changes had to be made probably as result of official Ubuntu release distro, for example the compute_driver is not under nova.conf setting, it is under nova-compute.conf , had to install python-dev pkg and oslo.log as they were missing. To make the story short, after solving most of the issues I am now in a state that Nova do detect the correct docker driver and trying to load it but fails with the following error.

2015-05-28 11:21:10.764 3832 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db __new__ /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:65
2015-05-28 11:21:10.814 3832 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2015-05-28 11:21:10.837 3832 DEBUG stevedore.extension [-] found extension EntryPoint.parse('file = nova.image.download.file') _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2015-05-28 11:21:10.846 3832 DEBUG stevedore.extension [-] found extension EntryPoint.parse('file = nova.image.download.file') _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2015-05-28 11:21:10.848 3832 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.DockerDriver'
2015-05-28 11:21:10.869 3832 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver Traceback (most recent call last):
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1300, in load_compute_driver
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver     virtapi)
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 28, in import_class
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver     __import__(mod_str)
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver   File "/home/rfoundry/src/novadocker/src/novadocker/novadocker/virt/docker/__init__.py", line 20, in <module>
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver     from novadocker.virt.docker import driver
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver   File "/home/rfoundry/src/novadocker/src/novadocker/novadocker/virt/docker/driver.py", line 34, in <module>
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver     from nova.compute import arch
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver ImportError: cannot import name arch
2015-05-28 11:21:10.869 3832 TRACE nova.virt.driver

Appriciate any guide how to resolve it.

Nir.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-28 13:09:37 -0500

dbaxps gravatar image

updated 2015-05-28 13:26:16 -0500

Per https://wiki.openstack.org/wiki/Docker looks like you are using Master branch.
However,

# git clone http://github.com/stackforge/nova-docker.git
# cd nova-docker
# git branch -v -a
  master                         d556444 Do not enable swift/ceilometer/sahara
  remotes/origin/HEAD            -> origin/master
  remotes/origin/master          d556444 Do not enable swift/ceilometer/sahara
  remotes/origin/stable/icehouse 9045ca4 Fix lockpath for tests
  remotes/origin/stable/juno     b724e65 Fix tests on stable/juno
  remotes/origin/stable/kilo     d556444 Do not enable swift/ceilometer/sahara

So try :-

cd nova-docker
git checkout -b icehouse origin/stable/icehouse
cd src/novadocker/
python setup.py install

For me Nova-Docker driver may be loaded only by Kilo, view :-
http://bderzhavets.blogspot.com/2015/...
http://bderzhavets.blogspot.com/2015/...

Attempt to build driver checking out stable/juno branch results failure to load  by nova-compute RDO Juno.
It's complaining failure to import oslo_log or something related with switching to oslo logging.I mean commit

https://git.openstack.org/cgit/stackf...
happened much latter then forking stable juno. View for details
https://git.openstack.org/cgit/stackf...

edit flag offensive delete link more

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: 2015-05-28 05:34:03 -0500

Seen: 412 times

Last updated: May 28 '15