[lxc-users] Unable to start an instance using nova-lxd

Muneeb Ahmad muneeb.gandapur at gmail.com
Sun Jan 8 18:42:08 UTC 2017


Hi,
Upon further investigation, I found that the following part in
lxd/driver.py is unable to retrieve any information about the image and
returns empty string;

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


Any ideas would be really appreciated.

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] filter_properties)
> 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 1971, in
> _build_and_run_instance
> 2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance:
> 29d3ffcd-dacb-4505-ae51-fe973b33e129] reason=e.format_message())
> 2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance:
> 29d3ffcd-dacb-4505-ae51-fe973b33e129] BuildAbortException: Build of
> instance 29d3ffcd-dacb-4505-ae51-fe973b33e129 aborted: Image is
> unacceptable: Bad Image format: Image could not be found.


On Fri, Jan 6, 2017 at 6:47 PM, Muneeb Ahmad <muneeb.gandapur at gmail.com>
wrote:

> Hi guys,
> Really appreciate the work you guys have been doing with LXC/LXD.
> 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. I hope
> you guys can help me out.
> Regards
> Beenum
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170108/9b0668f9/attachment.html>


More information about the lxc-users mailing list