cannot boot container with Ubuntu liberty installation

Bug #1547215 reported by Hui Kang
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nova-docker
New
Undecided
Unassigned

Bug Description

Hi
I am new to nova docker. I have an existing OpenStack deployment with Ubuntu package. Following is the version information.
----------------------
ii nova-common 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - common files
ii nova-compute 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - compute node base
ii nova-compute-kvm 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - compute node (KVM)
ii nova-compute-libvirt 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - compute node libvirt support
ii python-nova 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute Python libraries
ii python-novaclient 2:2.30.1-1~cloud0 all client library for OpenStack Compute API

----------------------

Then I installed nova-docker from the master branch of nova-docker's github repository. After installation, I can upload a row docker image successful. However, it failed to boot a docker container. The error message at the nova-compute is

------------------------
2016-02-18 20:53:40.209 1 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-02-18 20:53:40.276 1 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.driver.DockerDriver'
2016-02-18 20:53:40.325 1 INFO oslo.messaging._drivers.impl_rabbit [req-301c7e59-5b95-46dd-bbbc-299580d93133 - - - - -] Connecting to AMQP server on 172.16.1.11:5672
2016-02-18 20:53:40.342 1 INFO oslo.messaging._drivers.impl_rabbit [req-301c7e59-5b95-46dd-bbbc-299580d93133 - - - - -] Connected to AMQP server on 172.16.1.11:5672

... ...

2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [req-783aa8a4-2d97-4347-96c6-cdb807db9114 97ee37c493df4fb9b82e2b4f85b76e7c 7bfc861cbe554123a60e374c9af90e24 - - -] [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] Instance failed to spawn
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] Traceback (most recent call last):
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2155, in _build_resources
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] yield resources
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2009, in _build_and_run_instance
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] block_device_info=block_device_info)
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] File "/src/novadocker/novadocker/virt/docker/driver.py", line 508, in spawn
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] image_name = self._get_image_name(context, instance, image_meta)
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] File "/src/novadocker/novadocker/virt/docker/driver.py", line 371, in _get_image_name
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] fmt = image.container_format
2016-02-18 20:56:27.549 1 ERROR nova.compute.manager [instance: 2faa1883-269e-47df-965d-c0cf258b13b8] AttributeError: 'dict' object has no attribute 'container_format'

------------------------

Is there any bug in the nova-docker code in the git repo. Thanks in advance. - Hui

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

2:12.0.1-0ubuntu1~cloud0 sounds like liberty. Are you using the nova-docker from stable/liberty branch?

Revision history for this message
zhangguoqing (474751729-o) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.