<div dir="ltr">Thanks,<div><br></div><div>That worked. I think a push would make more sense as it would resolve many network topology challenges and enable a lot of flexibility.</div><div><br></div><div>Pete</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 11:24 PM, Stéphane Graber <span dir="ltr"><<a href="mailto:stgraber@ubuntu.com" target="_blank">stgraber@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Apr 27, 2016 at 11:01:42PM -0400, Pete Osborne wrote:<br>
> Hi,<br>
><br>
> I am trying to setup an image server for my development team. I'm trying to<br>
> push a container from one host to a remote so that other users can use the<br>
> image. I happen to be pushing over an openvpn connection. My local IP is<br>
> 192.168.2.158 but my IP for the VPN is 172.16.0.5.<br>
><br>
> sudo lxc remote add gloin 192.168.0.196<br>
> Certificate fingerprint: ok (y/n)? y<br>
> Admin password for gloin:<br>
> Client certificate stored at server: gloin<br>
><br>
> sudo lxc publish development gloin: --alias=development<br>
> error: Get<br>
> <a href="https://192.168.2.158:8443/1.0/images/2c00f2ae68df008fe1977325512153a45156baf3b9c70b7b8be4b10bfd004e77?secret=ef5283bbfde3a7a4ca32efd8c4af99631b4df3f6523d4bcf72ea935d9426c" rel="noreferrer" target="_blank">https://192.168.2.158:8443/1.0/images/2c00f2ae68df008fe1977325512153a45156baf3b9c70b7b8be4b10bfd004e77?secret=ef5283bbfde3a7a4ca32efd8c4af99631b4df3f6523d4bcf72ea935d9426c</a><br>
> f97: Unable to connect to: <a href="http://192.168.2.158:8443" rel="noreferrer" target="_blank">192.168.2.158:8443</a><br>
><br>
> I assume this is the correct approach but it appears that lxd is trying to<br>
> connect back on the wrong IP, is there a way to tell lxd to use a different<br>
> IP or interface?<br>
<br>
</span>Easiest way to force it would be to set core.https_address to be 172.16.0.5.<br>
We have logic in a bunch of places to try all IPs one by one, but I<br>
guess we've missed that particular code path.<br>
<br>
We also have a plan to allow for push rather than pull, which would fix<br>
this in a possibly cleaner way too.<br>
<br>
><br>
> Thanks,<br>
> Pete<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Stéphane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com" rel="noreferrer" target="_blank">http://www.ubuntu.com</a><br>
</font></span><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><br></div>