<p dir="ltr">Aw, I wanted to port to lxd anyway.</p>
<div class="gmail_quote">On May 19, 2016 8:48 PM, "Fajar A. Nugraha" <<a href="mailto:list@fajar.net">list@fajar.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 20, 2016 at 4:02 AM, Dan Kegel <span dir="ltr"><<a href="mailto:dank@kegel.com" target="_blank">dank@kegel.com</a>></span> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">OK, thanks. I'll port to lxd at some point. Until then, I'll add a retry loop.<br>
<div><div><br></div></div></blockquote><div><br></div><div><div class="gmail_quote">You shouldn't need to switch to lxd JUST to use a download template (or images, in lxd term). Simply "lxc-create -t download ..."</div><div class="gmail_quote"><br></div><div class="gmail_quote">But yeah, your temporary-solution of retry loop should also work for the purpose of 'work around a failed package download'</div><div class="gmail_quote"><br></div><div class="gmail_quote">-- </div><div class="gmail_quote">Fajar</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div>
On Thu, May 19, 2016 at 2:49 AM, Fajar A. Nugraha <<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>> wrote:<br>
> On Thu, May 19, 2016 at 1:50 AM, Dan Kegel <<a href="mailto:dank@kegel.com" target="_blank">dank@kegel.com</a>> wrote:<br>
>><br>
>> The first time, it failed with<br>
>> W: Couldn't download package insserv (ver 1.14.0-5ubuntu3 arch amd64)<br>
>> I: Retrieving iproute2 4.3.0-1ubuntu3<br>
>> W: Couldn't download package iproute2 (ver 4.3.0-1ubuntu3 arch amd64)<br>
>> ...<br>
>> E: Couldn't download packages: iproute2 insserv<br>
>> Delete subvolume (no-commit): '/var/cache/lxc/xenial/partial-amd64'<br>
>> lxc-create: lxccontainer.c: create_run_template: 1290 container<br>
>> creation template for rbb-ubu1604-1-ubu1604 failed<br>
>><br>
><br>
>> Either way, should lxc-create be so willing to abort on package<br>
>> download failure, or should it sleep and retry a bit somehow?<br>
><br>
><br>
><br>
> IMHO that behavior is correct. The ubuntu template uses debootstrap, so<br>
> whatever you're seing is debootstrap's response.<br>
><br>
> I suggest you use the download template instead (-t download), which would<br>
> basically get a tar file with preconfigured packages. It would help if your<br>
> problem was on 'creating new connection phase' (which sometimes would happen<br>
> if say ... your ISP employs a transparent http cache) or 'partial<br>
> inconsistent mirror' (since you'd only be getting a few files), plus it'd be<br>
> much faster (no need for package install and configure phase after download)<br>
><br>
> --<br>
> Fajar<br>
><br>
</div></div><div><div>> _______________________________________________<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>
_______________________________________________<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></div></div></blockquote></div><br></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">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>