[openstack-dev] [Zun][Higgins]Enable Zun in devstack

opensdock opensdock at 163.com
Wed Aug 17 13:13:26 UTC 2016


Hi team,

I tried to enable Zun in devstack by add following line in my local.conf
enable_plugin higgins https://git.openstack.org/openstack/higgins master

The stack script completed successfully, but when I tried to create container using zun cmd line:
zun container-create --name test1 --image ubuntu

The container creation failed and I found this Error in zun-compute.log:

[00;36mNone None] Creating container... from (pid=1643) _do_container_create /opt/stack/higgins/zun/compute/manager.py:39
[01;36mreq-6a879692-2205-40f7-b74c-ae3cb816a59c None None] File doesn't exist from (pid=1643) load_config /usr/local/lib/python2.7/dist-packages/docker/auth/auth.py:179
[00;32mDEBUG zun.container.docker.driver [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] Pulling image ubuntu from (pid=1643) pull_image /opt/stack/higgins/zun/container/docker/driver.py:38
[00;32mDEBUG docker.api.image [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] Looking for auth config from (pid=1643) pull /usr/local/lib/python2.7/dist-packages/docker/api/image.py:172
[00;32mDEBUG docker.api.image [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] No auth config in memory - loading from filesystem from (pid=1643) pull /usr/local/lib/python2.7/dist-packages/docker/api/image.py:175
[00;32mDEBUG docker.auth.auth [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] File doesn't exist from (pid=1643) load_config /usr/local/lib/python2.7/dist-packages/docker/auth/auth.py:179
[00;32mDEBUG docker.auth.auth [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] Looking for auth entry for 'docker.io' from (pid=1643) resolve_authconfig /usr/local/lib/python2.7/dist-packages/docker/auth/auth.py:73
[00;32mDEBUG docker.auth.auth [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] No entry found from (pid=1643) resolve_authconfig /usr/local/lib/python2.7/dist-packages/docker/auth/auth.py:84
[00;32mDEBUG docker.api.image [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] No auth config found from (pid=1643) pull /usr/local/lib/python2.7/dist-packages/docker/api/image.py:190
[01;31mERROR zun.compute.manager [req-6a879692-2205-40f7-b74c-ae3cb816a59c None None] Unexpected exception: ('Connection aborted.', error(2, 'ENOENT'))
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager Traceback (most recent call last):
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/opt/stack/higgins/zun/compute/manager.py", line 44, in _do_container_create
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     self.driver.pull_image(container.image)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/opt/stack/higgins/zun/container/docker/driver.py", line 40, in pull_image
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     docker.pull(image_repo, tag=image_tag)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/docker/api/image.py", line 197, in pull
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     stream=stream, timeout=None
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 47, in inner
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     return f(self, *args, **kwargs)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 108, in _post
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     return self.post(url, **self._set_request_timeout(kwargs))
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 514, in post
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     return self.request('POST', url, data=data, json=json, **kwargs)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 471, in request
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     resp = self.send(prep, **send_kwargs)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 581, in send
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     r = adapter.send(request, **kwargs)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager   File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 467, in send
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager     raise ConnectionError(err, request=request)
[01;31m2016-08-17 16:52:54.534 TRACE zun.compute.manager ConnectionError: ('Connection aborted.', error(2, 'ENOENT'))


Do I need to do some extra setup work(like install/configure docker engine) manually? 
Please help on this, thanks in advance!

2016-08-17



opensdock
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160817/d5448b02/attachment.html>


More information about the OpenStack-dev mailing list