<div dir="ltr"><div><div><div><div>So, I figured out by examining the logs that there was a problem connecting to the LXD daemon on my machine. I googled it, and I found out that this seems to be a confirmed bug: <br><br><a href="https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1452358">https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1452358</a><br><br></div>To fix it, I just started the LXD service manually and then, stopped and restarted nova. Now, when I try to launch a container from the vivid image, I get the following error: <br><br><i>"Error: Build of instance ad95f1d8-75ff-4153-b358-da510a7fa9cd aborted: Image ff9ca36c-fff0-42a6-8eae-605cb7cfdd9e is unacceptable: Image failed to upload: Error 500 - Could not get image metadata: exit status 2".</i><br><br>I'm quite sure I'm missing something :) <br>I thought that glance image-create would generate the necessary metadata to be consumed by nova when spawning new instances? I wonder if the parameters I passed to glance are correct (I copied them from the introduction to nova-compute-lxd blog post)? <br><br></div>Any help will be appreciated!<br></div><div><br></div>Thanks,<br></div>Fred  <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 6:12 PM, Frederico Araujo <span dir="ltr"><<a href="mailto:araujof@gmail.com" target="_blank">araujof@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"><div><div><div><div><div><div><div><div><div><div>Hi, <br><br></div>I'm trying to get devstack to work with n-c-lxd, but I keep getting the infamous error "No valid host was found. There are not enough hosts available." when I try to launch a new instance from a vivid image I uploaded to glance. <br><br></div>I'm running devstack on a VM with Vivid and followed the instructions on your introduction to nova-compute-lxd:<br><br></div>1. git cloned devstack to /opt/stack/<br></div>2. git cloned nova-compute-lxd to /opt/stack/<br></div>3. git cloned pylxd to /opt/stack/ (note: the git repository set in nova-compute-lxd is timing out during stack.sh)  <br></div>4. run /opt/stack/nova-compute-lxd/contrib/devstack/prepare_devstack.sh<br></div>5. run ./stack.sh<br><br></div>Up to this point, everything looks good, and I get devstack up and running. I then uploaded to glance the following image:<br><br>6. wget -O vivid-server-cloudimg-amd64-root.tar.gz <a href="https://cloud-images.ubuntu.com/vivid/current/" target="_blank">https://cloud-images.ubuntu.com/vivid/current/</a> vivid-server-cloudimg-amd64-root.tar.gz<br>7. glance --os-username=admin --os-password=nova --os-tenant-name=admin --os-auth-url=http://<my ip>:35357/v2.0 image-create --name='lxc' --container-format=bare --disk-format=raw < vivid-server-cloudimg-amd64-root.tar.gz<br><br></div>And finally, I launch an instance with this image, but it fails with the error message above. Any ideas about what I'm doing wrong? I'm fairly experienced with lxc and containers in general, but I'm completely new to openstack. So, please bear with me ;)<br><br></div><div>Thanks!<br></div><div>Fred<br></div><div><br></div><br><div><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 1:29 PM, Chuck Short <span dir="ltr"><<a href="mailto:chuck.short@canonical.com" target="_blank">chuck.short@canonical.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<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 1:09 AM, Alvaro Miranda <span dir="ltr"><<a href="mailto:kikitux@gmail.com" target="_blank">kikitux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Anything?<br></blockquote><div><br></div><div>Sorry for the delay:<br><br><a href="https://zulcss.wordpress.com/2015/05/01/introduction-to-nova-compute-lxd/" target="_blank">https://zulcss.wordpress.com/2015/05/01/introduction-to-nova-compute-lxd/</a><br><br></div><div>If you have any questions please let me know. <br></div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks !<br>
<div><div><br>
<br>
<br>
<br>
> On 29/04/2015, at 19:23, Serge Hallyn <<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>> wrote:<br>
><br>
> Quoting Alvaro Miranda Aguilera (<a href="mailto:kikitux@gmail.com" target="_blank">kikitux@gmail.com</a>):<br>
>> Hello,<br>
>><br>
>> Can anyone point me in a guide I can use and end with OpenStack using LXD?<br>
>><br>
>> I did look over the web, and wasn't able to find anything like a guide<br>
>> or howto, so I am asking here in case someone has done and can give an<br>
>> idea where to look<br>
><br>
> Hi,<br>
><br>
> I'm told there will be something by the end of the week.<br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>