<div dir="ltr"><div>Hi Amit</div><div><br></div><div>(re-titled thread with scoped topics)</div><div><br></div>As Matt has already referenced, [0] is a good starting place for using the nova-lxd driver.<br><div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, 20 Feb 2018 at 11:13 Amit Kumar <<a href="mailto:ebiibe82@gmail.com">ebiibe82@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Hello,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I have a running OpenStack Ocata setup on which I am able to launch VMs. But I want to move to LXC instantiation instead of VMs. So, for this, I installed nova-compute-lxd on my compute node (Ubuntu 16.04). <span style="font-size:12.8px"><b>/etc/nova/nova-compute.conf</b> on my compute nodes was changed to contain the following values for <i style="font-weight:400">compute_driver</i> and<i style="font-weight:400"> virt_type</i>.</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px"><i><br></i></span></div><div style="font-size:12.8px"><i>[DEFAULT]</i></div><div style="font-size:12.8px"><i>compute_driver = lxd.LXDDriver</i></div></div></blockquote><div><br></div><div>You only need the above part for nova-lxd (the below snippet is for the libvirt/lxc driver)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px"><i>[libvirt]</i></div><div style="font-size:12.8px"><i>virt_type = lxc</i></div><div style="font-size:12.8px"><i><br></i></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">After this, I restarted the nova-compute service and launched an instance, launch failed after some time (4-5 mins remain in spawning state) and gives the following error:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(169,68,66);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(242,222,222);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">[Error: No valid host was found. There are not enough hosts available.]. </span><span style="font-size:12.8px">Detailed nova-compute logs are attached with this e-mail.</span></div></div></blockquote><div><br></div><div>Looking at your logs, it would appear a VIF plugging timeout occurred; was your cloud functional with Libvirt/KVM before you made the switch to using nova-lxd?  The neutron log files would be a good place to look so see what went wrong.<br></div><div><br></div><div>Regards</div><div><br></div><div>James<br></div><div><br></div><div>[0] <a href="https://linuxcontainers.org/lxd/getting-started-openstack/">https://linuxcontainers.org/lxd/getting-started-openstack/</a><br></div><div> </div><br></div></div></div></div>