<div dir="ltr"><div>> Do you want to NAT the IPv4 traffic? n<br><br></div><div>You do want to NAT the traffic, unless you have routing explicitly setup.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 9:17 AM, roger peppe <span dir="ltr"><<a href="mailto:roger.peppe@canonical.com" target="_blank">roger.peppe@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, thanks, that gets me further. I'd used the netmask from the<br>
example value in the default /etc/default/lxd-bridge - I assumed they were<br>
the same format, as the values were.<br>
<br>
## IPv4 netmask (e.g. 255.255.255.0)<br>
<br>
Now my bootstrap is stuck further on while installing cpu-checker:<br>
<br>
<a href="http://paste.ubuntu.com/15673131/" rel="noreferrer" target="_blank">http://paste.ubuntu.com/15673131/</a><br>
<br>
It's been like that for about an hour now. I should probably have bootstrapped<br>
with debug enabled, I guess. It may be a related issue if I mucked<br>
up the lxd bridge configuration somehow again.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 7 April 2016 at 16:25, Reed O'Brien <<a href="mailto:reed.obrien@canonical.com">reed.obrien@canonical.com</a>> wrote:<br>
> I think you need to enter the CIDR netmask as a bit len, e.g. 24 rather than<br>
> as 255.255.255.0.<br>
><br>
> See<br>
> <a href="https://github.com/reedobrien/juju-notes/blob/master/writing-a-ci-test.md" rel="noreferrer" target="_blank">https://github.com/reedobrien/juju-notes/blob/master/writing-a-ci-test.md</a><br>
> and the section on LXD for my personal notes about a working config.<br>
><br>
> HTH,<br>
> Reed<br>
><br>
> On Thu, Apr 7, 2016 at 8:14 AM, roger peppe <<a href="mailto:roger.peppe@canonical.com">roger.peppe@canonical.com</a>><br>
> wrote:<br>
>><br>
>> I tried it. I get this error after typing in lots of ipv4 details:<br>
>><br>
>> /var/lib/dpkg/info/lxd.postinst: 8: /var/lib/dpkg/info/lxd.postinst:<br>
>> arithmetic expression: expecting ')': " 5 - (255.255.255.0 / 8) "<br>
>><br>
>> My full interaction was as follows: <a href="http://paste.ubuntu.com/15671384/" rel="noreferrer" target="_blank">http://paste.ubuntu.com/15671384/</a><br>
>><br>
>><br>
>> On 7 April 2016 at 15:57, John Meinel <<a href="mailto:john@arbash-meinel.com">john@arbash-meinel.com</a>> wrote:<br>
>> > Did you run dpkg-reconfigure lxd ? That's what I ran once I installed<br>
>> > the<br>
>> > new lxd package and it seemed to get things working. Tycho added some<br>
>> > helpful prompts as part of "juju bootstrap" to point users in the right<br>
>> > direction if LXD looks to be improperly configured.<br>
>> ><br>
>> > <a href="https://github.com/juju/juju/pull/4984" rel="noreferrer" target="_blank">https://github.com/juju/juju/pull/4984</a><br>
>> ><br>
>> ><br>
>> > I'm trying to land that now.<br>
>> ><br>
>> > John<br>
>> > =:-><br>
>> ><br>
>> > On Apr 7, 2016 6:19 PM, "roger peppe" <<a href="mailto:roger.peppe@canonical.com">roger.peppe@canonical.com</a>> wrote:<br>
>> ><br>
>> > To add to this conversation, I have encountered this issue today<br>
>> > and have been unable to resolve it so far in the limited time<br>
>> > I've been able to spend on it.<br>
>> ><br>
>> > I'm running on Trusty; I have the new version of lxd and the<br>
>> > latest version of Juju tip.<br>
>> ><br>
>> > In my case, the issue seems to be that my lcdbr0 interface<br>
>> > has no IPv4 addresses (I've tried fiddling with /etc/default/lxd-bridge<br>
>> > and restarting various things to avail) and that the<br>
>> > utils.GetAddressForInterface<br>
>> > function excludes all IPv4 addresses. I'm thinking that it shouldn't do<br>
>> > that,<br>
>> > but that might not be the only thing that's wrong.<br>
>> ><br>
>> ><br>
>> ><br>
>> > On 7 April 2016 at 05:10, Pete Vander Giessen <<a href="mailto:petevg@gmail.com">petevg@gmail.com</a>> wrote:<br>
>> >> Hi All,<br>
>> >><br>
>> >> Thank you very much for posting this thread. I've been following the<br>
>> >> "getting started" developer's guide at<br>
>> >> <a href="https://jujucharms.com/docs/devel/getting-started" rel="noreferrer" target="_blank">https://jujucharms.com/docs/devel/getting-started</a>, and this info got me<br>
>> >> unstuck.<br>
>> >><br>
>> >> I figured that I'd mention that, when I ran dpkg-reconfigure, I had to<br>
>> >> create an ipv4 subnet, rather than letting lxd use a proxy, as it does<br>
>> >> by<br>
>> >> default on a fresh install of Xenial. I'm not sure if it's necessarily<br>
>> >> related to the bridge issue, but I figured I'd be chatty about it in<br>
>> >> this<br>
>> >> thread, just in case it helps someone else get themselves unblocked,<br>
>> >> too<br>
>> >> (relevant debug logs posted below my sig).<br>
>> >><br>
>> >> Thanks again,<br>
>> >><br>
>> >> ~ PeteVG<br>
>> >><br>
>> >> Logs from my install, before explicitly setting up the subnet:<br>
>> >><br>
>> >> ~$ juju bootstrap --config default-series=xenial lxd-test lxd --debug<br>
>> >> 2016-04-07 03:51:01 INFO juju.cmd supercommand.go:60 running juju<br>
>> >> [2.0-beta3<br>
>> >> gc go1.6]<br>
>> >> 2016-04-07 03:51:01 INFO cmd cmd.go:141 cloud "lxd" not found, trying<br>
>> >> as a<br>
>> >> provider name<br>
>> >> 2016-04-07 03:51:01 INFO cmd cmd.go:141 no credentials found, checking<br>
>> >> environment<br>
>> >> 2016-04-07 03:51:01 DEBUG juju.cmd.juju.commands bootstrap.go:363<br>
>> >> preparing<br>
>> >> controller with config: map[default-series:xenial type:lxd name:admin<br>
>> >> uuid:9925cf81-618b-4d50-8f77-b16447c921d8<br>
>> >> controller-uuid:9925cf81-618b-4d50-8f77-b16447c921d8]<br>
>> >> 2016-04-07 03:51:01 ERROR cmd supercommand.go:448 invalid config: no<br>
>> >> addresses match<br>
>> >><br>
>> >><br>
>> >> On Wed, Apr 6, 2016 at 5:30 PM Reed O'Brien <<a href="mailto:reed.obrien@canonical.com">reed.obrien@canonical.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> The rename works if you haven't removed `lxc1` which removes the<br>
>> >>> original<br>
>> >>> `lxcbr0`. If you have you will need to correctly configure another<br>
>> >>> bridge<br>
>> >>> as<br>
>> >>> the new `lxcbr0` that is created has the same configuration as<br>
>> >>> `lxdbr0`<br>
>> >>> if<br>
>> >>> you configured an `lxdbr0`... For me this led to two bridges with the<br>
>> >>> same<br>
>> >>> address info, which didn't work out so slick.<br>
>> >>><br>
>> >>> Also, you need to `systemctl stop lxd-bridge.service && systemctl<br>
>> >>> restart<br>
>> >>> lxd.service` in the correct order.<br>
>> >>><br>
>> >>> On Wed, Apr 6, 2016 at 2:22 PM, Andrew McDermott<br>
>> >>> <<a href="mailto:andrew.mcdermott@canonical.com">andrew.mcdermott@canonical.com</a>> wrote:<br>
>> >>>><br>
>> >>>> I think you'll need to `service lxd-bridge restart' in either case.<br>
>> >>>><br>
>> >>>> On 6 April 2016 at 22:18, Horacio Duran <<a href="mailto:horacio.duran@canonical.com">horacio.duran@canonical.com</a>><br>
>> >>>> wrote:<br>
>> >>>>><br>
>> >>>>> yes, that workaround works, also you can change<br>
>> >>>>> /etc/default/lxd-bridge<br>
>> >>>>> and restart the lxd-bridge service.<br>
>> >>>>><br>
>> >>>>> On Wed, Apr 6, 2016 at 6:12 PM, Casey Marshall<br>
>> >>>>> <<a href="mailto:casey.marshall@canonical.com">casey.marshall@canonical.com</a>> wrote:<br>
>> >>>>>><br>
>> >>>>>> On Wed, Apr 6, 2016 at 2:51 PM, Alexis Bruemmer<br>
>> >>>>>> <<a href="mailto:alexis.bruemmer@canonical.com">alexis.bruemmer@canonical.com</a>> wrote:<br>
>> >>>>>>><br>
>> >>>>>>><br>
>> >>>>>>> Hi All,<br>
>> >>>>>>><br>
>> >>>>>>> As recently highlighted in bug<br>
>> >>>>>>> <a href="https://bugs.launchpad.net/bugs/1566589" rel="noreferrer" target="_blank">https://bugs.launchpad.net/bugs/1566589</a><br>
>> >>>>>>> the latest LXD will not work with Juju 2.0-beta3. This is a<br>
>> >>>>>>> result<br>
>> >>>>>>> of LXD<br>
>> >>>>>>> moving to use a default bridge of lxdbr0 and Juju expecting<br>
>> >>>>>>> lxcbr0.<br>
>> >>>>>>> Thanks<br>
>> >>>>>>> to the heads up and help from the LXD team there is a fix for this<br>
>> >>>>>>> in<br>
>> >>>>>>> Juju<br>
>> >>>>>>> master that will be available in the release next week. However,<br>
>> >>>>>>> until then<br>
>> >>>>>>> Juju 2.0-beta3 will not work with the latest LXD (v2.0.0-rc8).<br>
>> >>>>>><br>
>> >>>>>><br>
>> >>>>>> If you `dpkg-reconfigure lxd` and name the bridge "lxcbr0", does<br>
>> >>>>>> this<br>
>> >>>>>> work for beta3? I've been able to bootstrap with latest LXD and<br>
>> >>>>>> current Juju<br>
>> >>>>>> master (beta4) by configuring LXD this way.<br>
>> >>>>>><br>
>> >>>>>>><br>
>> >>>>>>><br>
>> >>>>>>> Alexis<br>
>> >>>>>>><br>
>> >>>>>>> --<br>
>> >>>>>>> Alexis Bruemmer<br>
>> >>>>>>> Juju Core Manager, Canonical Ltd.<br>
>> >>>>>>> (503) 686-5018<br>
>> >>>>>>> <a href="mailto:alexis.bruemmer@canonical.com">alexis.bruemmer@canonical.com</a><br>
>> >>>>>>><br>
>> >>>>>>> --<br>
>> >>>>>>> Juju mailing list<br>
>> >>>>>>> <a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
>> >>>>>>> Modify settings or unsubscribe at:<br>
>> >>>>>>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
>> >>>>>>><br>
>> >>>>>><br>
>> >>>>>><br>
>> >>>>>> --<br>
>> >>>>>> Juju-dev mailing list<br>
>> >>>>>> <a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
>> >>>>>> Modify settings or unsubscribe at:<br>
>> >>>>>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
>> >>>>>><br>
>> >>>>><br>
>> >>>>><br>
>> >>>>> --<br>
>> >>>>> Juju-dev mailing list<br>
>> >>>>> <a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
>> >>>>> Modify settings or unsubscribe at:<br>
>> >>>>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
>> >>>>><br>
>> >>>><br>
>> >>>><br>
>> >>>><br>
>> >>>> --<br>
>> >>>> Andrew McDermott <<a href="mailto:andrew.mcdermott@canonical.com">andrew.mcdermott@canonical.com</a>><br>
>> >>>> Juju Core Sapphire team <<a href="http://juju.ubuntu.com" rel="noreferrer" target="_blank">http://juju.ubuntu.com</a>><br>
>> >>>><br>
>> >>>> --<br>
>> >>>> Juju-dev mailing list<br>
>> >>>> <a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
>> >>>> Modify settings or unsubscribe at:<br>
>> >>>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
>> >>>><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> --<br>
>> >>> Reed O'Brien<br>
>> >>> ✉ <a href="mailto:reed.obrien@canonical.com">reed.obrien@canonical.com</a><br>
>> >>> ✆ <a href="tel:415-562-6797" value="+14155626797">415-562-6797</a><br>
>> >>><br>
>> >>> --<br>
>> >>> Juju mailing list<br>
>> >>> <a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
>> >>> Modify settings or unsubscribe at:<br>
>> >>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Juju mailing list<br>
>> >> <a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
>> >> Modify settings or unsubscribe at:<br>
>> >> <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
>> >><br>
>> ><br>
>> > --<br>
>> > Juju-dev mailing list<br>
>> > <a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
>> > Modify settings or unsubscribe at:<br>
>> > <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
>><br>
>> --<br>
>> Juju-dev mailing list<br>
>> <a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
>> Modify settings or unsubscribe at:<br>
>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Reed O'Brien<br>
> ✉ <a href="mailto:reed.obrien@canonical.com">reed.obrien@canonical.com</a><br>
> ✆ <a href="tel:415-562-6797" value="+14155626797">415-562-6797</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Reed O'Brien <div><div><span style="font-size:12.8px">✉ </span><a href="mailto:reed.obrien@canonical.com" target="_blank">reed.obrien@canonical.com</a></div><div style="font-size:12.8px">✆ <span title="Call with Google Voice">415-562-6797</span></div></div><div style="font-size:12.8px"><span title="Call with Google Voice"><br></span></div></div></div></div></div>
</div>