Revision history [back]

click to hide/show revision 1
initial version

Juno docker AttributeError: 'module' object has no attribute 'DockerDriver'

Greetings I have been unable to get docker working with juno on CentOS 7 by following these steps:

 pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker
cd src/novadocker/
python setup.py install

# configure nova
cp -p /etc/nova/nova.conf /etc/nova/.nova.conf.pre.docker
openstack-config --set /etc/nova/nova.conf DEFAULT compute_driver novadocker.virt.docker.DockerDriver

mkdir -p /etc/nova/rootwrap.d
cat > /etc/nova/rootwrap.d/docker.filters << 'EOF'
# nova-rootwrap command filters for setting up network in the docker driver
# This file should be owned by (and only-writeable by) the root user

[Filters]
# nova/virt/docker/driver.py: 'ln', '-sf', '/var/run/netns/.*'
ln: CommandFilter, /bin/ln, root
EOF

After nova start is attempted I see this in /var/log/messages:

Feb 27 16:21:08 docker01 systemd: Starting OpenStack Nova Compute Server...
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 ERROR nova.virt.driver [-] Unable to load the virtualization driver
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver Traceback (most recent call last):
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver   File "/usr/lib/python2.7/site-packages/nova/virt/driver.py", line 1402, in load_compute_driver
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver     virtapi)
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver   File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver   File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 33, in import_class
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver     traceback.format_exception(*sys.exc_info())))
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver ImportError: Class DockerDriver cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 29, in import_class\n    return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'DockerDriver'\n"])

Docker is running:

# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
# docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa/1.3.2
OS/Arch (client): linux/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa/1.3.2
#

Any suggestions?

Thanks

Juno docker AttributeError: 'module' object has no attribute 'DockerDriver'

Greetings I have been unable to get docker working with juno on CentOS 7 by following these steps:

 pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker
cd src/novadocker/
python setup.py install

# configure nova
cp -p /etc/nova/nova.conf /etc/nova/.nova.conf.pre.docker
openstack-config --set /etc/nova/nova.conf DEFAULT compute_driver novadocker.virt.docker.DockerDriver

mkdir -p /etc/nova/rootwrap.d
cat > /etc/nova/rootwrap.d/docker.filters << 'EOF'
# nova-rootwrap command filters for setting up network in the docker driver
# This file should be owned by (and only-writeable by) the root user

[Filters]
# nova/virt/docker/driver.py: 'ln', '-sf', '/var/run/netns/.*'
ln: CommandFilter, /bin/ln, root
EOF

After nova start is attempted I see this in /var/log/messages:

Feb 27 16:21:08 docker01 systemd: Starting OpenStack Nova Compute Server...
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 ERROR nova.virt.driver [-] Unable to load the virtualization driver
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver Traceback (most recent call last):
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver   File "/usr/lib/python2.7/site-packages/nova/virt/driver.py", line 1402, in load_compute_driver
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver     virtapi)
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver   File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver   File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 33, in import_class
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver     traceback.format_exception(*sys.exc_info())))
Feb 27 16:21:09 docker01 nova-compute: 2015-02-27 16:21:09.238 6805 TRACE nova.virt.driver ImportError: Class DockerDriver cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 29, in import_class\n    return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'DockerDriver'\n"])

Docker is running:

# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
# docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa/1.3.2
OS/Arch (client): linux/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa/1.3.2
#

Any suggestions?

Thanks

* UPDATE * Moved to docker 1.5:

 # docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef

and attempted the instructions on: http://bderzhavets.blogspot.ru/2014/12/nova-docker-on-openstack-rdo-juno.html

still no luck, same error as before