Unable to start an instance using nova-lxd

asked 2017-01-08 05:28:51 -0500

beenum gravatar image

updated 2017-01-08 12:36:40 -0500

Hi guys, My question is that I tried to run Devstack(stable/newton) with nova-lxd(stable/newton) and when I try to start an instance, I get an error

Error: Build of instance <id> aborted: Image is unacceptable: Bad Image format: Image could not be found.'

It's unable to upload image to LXD, I'm not sure why. This happened with the images provided by Devstack and also with the ones I uploaded. Upon further investigation, I found that in lxd/driver.py, the following is unable to retrieve any information about the image and returns empty string;

img_meta = IMAGE_API.get(context, instance.image_ref)

I hope you guys can help me out, I'm not sure how to tackle this issue. n-cpu.log shows the following traces;

2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] Traceback (most recent call last):
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova/nova/compute/manager.py", line 2078, in _build_resources
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     yield resources
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova/nova/compute/manager.py", line 1920, in _build_and_run_instance
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     block_device_info=block_device_info)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 274, in spawn
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     self.setup_image(context, instance, image_meta)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 1336, in setup_image
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     os.unlink(container_manifest)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     self.force_reraise()
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     six.reraise(self.type_, self.value, self.tb)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 1219, in setup_image
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     image_id=instance.image_ref, reason=reason)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] ImageUnacceptable: Image  is unacceptable: Bad Image format: Image  could not be found.
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] 
2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] Traceback (most recent call last):
2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova/nova/compute/manager.py", line 1779, in _do_build_and_run_instance
2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129 ...
(more)
edit retag flag offensive close merge delete