AttributeError: 'dict' object has no attribute ' container_format'

Bug #1554370 reported by yaocong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-docker
New
Undecided
Unassigned

Bug Description

I am using novadocker at centos7, and failed to start an instance with following error:( the openstack stack was setup by latest yum on centos7, and the novadocker was got from https://github.com/openstack/nova-docker in few days) ,
[root@controller ~]# openstack --version
openstack 1.7.2

d9b80fd741 - - -] [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] Instance failed to spawn
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] Traceback (most recent call last):
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] File "/usr/lib/python2.7/site-packages/nova/co
mpute/manager.py", line 2155, in _build_resources
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] yield resources
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] File "/usr/lib/python2.7/site-packages/nova/co
mpute/manager.py", line 2009, in _build_and_run_instance
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] block_device_info=block_device_info)
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] File "/usr/lib/python2.7/site-packages/novadoc
ker/virt/docker/driver.py", line 508, in spawn
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] image_name = self._get_image_name(context, i
nstance, image_meta)
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] File "/usr/lib/python2.7/site-packages/novadoc
ker/virt/docker/driver.py", line 371, in _get_image_name
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] fmt = image.container_format
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] AttributeError: 'dict' object has no attribute '
container_format'
2016-03-07 15:02:20.425 25895 ERROR nova.compute.manager [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777]
2016-03-07 15:02:20.631 25895 INFO nova.compute.manager [req-f617a438-1d5a-45a6-aabe-6a517c79f821 9bbe0eba73804ed2b3def6e133c782be f5896ea2016e4292a4b3a5d
9b80fd741 - - -] [instance: 5362ce68-e0fc-4a61-b891-42d3226eb777] Terminating instance

yaocong (82828068-r)
description: updated
Revision history for this message
Harry Kominos (hkominos) wrote :

Hi. I think I had a similar issue .
I have FUEL 7.0 on Virtualbox with 1 compute and 1 controller (ubuntu).
I also had
AttributeError: 'dict' object has no attribute 'container_format'.

In my case
1)I redeployed the compute node
2)did not use the trunk branch! I switched to stable/kilo
3)used requests 2.2.1
4)added json util dumps like this https://ask.openstack.org/en/question/67682/docker-setup-on-kilo/ (see the comments)
5)enabled the tty according to this https://bugs.launchpad.net/nova-docker/+bug/1489985

and it worked

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.