<div dir="ltr">Hi,<div>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;<div><br><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">img_meta = IMAGE_API.get(context, instance.image_ref)</code></blockquote><div><br></div><div>Any ideas would be really appreciated. </div><div> </div><div>n-cpu.log shows the following traces;</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] Traceback (most recent call last):<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     yield resources<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     block_device_info=block_device_info)<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     self.setup_image(context, instance, image_meta)<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     os.unlink(container_manifest)<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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__<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     self.force_reraise()<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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)<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     image_id=instance.image_ref, reason=reason)<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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.<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]<br> </code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] Traceback (most recent call last):<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     filter_properties)<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">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<br></code><code style="font-family:menlo,monaco,'courier new',monospace;font-size:12px;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:transparent;border:0px;clear:both">2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     reason=e.format_message()) <br></code><span style="color:inherit;font-family:menlo,monaco,'courier new',monospace;font-size:12px;background-color:transparent;white-space:pre-wrap">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.</span> </blockquote></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 6:47 PM, Muneeb Ahmad <span dir="ltr"><<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div>Really appreciate the work you guys have been doing with LXC/LXD.<br>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 </div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><b>"Error: Build of instance <id> aborted: Image is unacceptable: Bad Image format: Image could not be found."</b></blockquote>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.<br>Regards<div>Beenum</div><div><span style="color:rgb(69,69,69);font-family:'helvetica neue';font-size:12px"><br></span></div></div></div>
</blockquote></div><br></div></div></div>