Re: Supported LXD Providers

2016-08-23 Thread Rick Harding
So I checked and not only is it regressed, it was intentionally removed on
purpose because while it worked in some cases it did broke user
expectations in other cases. The work to enable the Fan is the path forward
on this. I apologize for running with out of date info on that.

On Tue, Aug 23, 2016 at 9:49 AM Tom Barber  wrote:

> Didn't know about AWS routing, interesting Rick! Although James is using
> AWS afaik so maybe its regressed there.
>
> Tom
>
> --
>
> Director Meteorite.bi - Saiku Analytics Founder
> Tel: +44(0)5603641316
>
> (Thanks to the Saiku community we reached our Kickstart
> 
> goal, but you can always help by sponsoring the project
> )
>
> On 23 August 2016 at 14:45, Rick Harding 
> wrote:
>
>> That looks like something interesting. :)
>>
>> Yes, the engineering team is working on adapting the Fan to public clouds
>> as a first go at making sure containers can be routable ootb when using
>> Juju. We'll just recently had a sprint scoping it out and see this as the
>> solution to the problem your running into.
>>
>> As you note, in cases where the containers can get dhcp addresses on the
>> same network as the hosts, it's not an issue. OpenStack (depending on
>> config) and MAAS work this way and aren't an issue.
>>
>> At one point we had lxc container networking in AWS. I'm just
>> bootstrapping to verify that this is still working properly in the latest
>> 2.0 code and if not will file a bug that we've regressed in this.
>>
>> tl;dr
>> containers should work with routing ootb on MAAS, OpenStack, and AWS. The
>> team's working on leveraging the Fan for public clouds and other
>> situations.
>>
>> On Tue, Aug 23, 2016 at 9:26 AM Tom Barber 
>> wrote:
>>
>>> Possibly something like... https://wiki.ubuntu.com/FanNetworking ? :)
>>>
>>> --
>>>
>>> Director Meteorite.bi - Saiku Analytics Founder
>>> Tel: +44(0)5603641316
>>>
>>> (Thanks to the Saiku community we reached our Kickstart
>>> 
>>> goal, but you can always help by sponsoring the project
>>> )
>>>
>>> On 23 August 2016 at 14:23, James Beedy  wrote:
>>>
 Mark,

 Thanks for the reply! Just to make sure I'm picking up what you are
 laying down, are you implying that Juju will soon support host <-> host
 container networking by supplying its own provider agnostic network fabric?

 ~James

 On Aug 23, 2016, at 4:29 AM, Mark Shuttleworth  wrote:


 LXC/LXD should work everywhere, but *networking* to those containers is
 tricky. There is a dedicated team working on that problem, and we expect to
 ahve the ability to make and use LXC containers universally, soon.

 The remaining constraint will be that some charms try to modify their
 guest kernel, and that of course will be prevented in a container.

 Mark

 On 22/08/16 22:03, James Beedy wrote:

 Team,

 Question: What providers can Juju deploy LXD to?

 Answer: All of them.

 Question: What providers support Juju deployed LXD (juju deploy
  --to lxd:0)?

 Answer: MAAS


 Problem: Juju can deploy LXD to all of the providers, but Juju can
 **REALLY** only provision LXD on MAAS. I get the impression that Juju is
 broken when I deploy applications to lxd on any provider other than MAAS.

 Proposed Solution: Disable `juju deploy  --to lxd:0` on
 providers which it is not supported.


 Thoughts?




 --
 Juju mailing list
 Juju@lists.ubuntu.com
 Modify settings or unsubscribe at:
 https://lists.ubuntu.com/mailman/listinfo/juju


>>> --
>>> Juju mailing list
>>> Juju@lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/juju
>>>
>>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread Tom Barber
Didn't know about AWS routing, interesting Rick! Although James is using
AWS afaik so maybe its regressed there.

Tom

--

Director Meteorite.bi - Saiku Analytics Founder
Tel: +44(0)5603641316

(Thanks to the Saiku community we reached our Kickstart

goal, but you can always help by sponsoring the project
)

On 23 August 2016 at 14:45, Rick Harding  wrote:

> That looks like something interesting. :)
>
> Yes, the engineering team is working on adapting the Fan to public clouds
> as a first go at making sure containers can be routable ootb when using
> Juju. We'll just recently had a sprint scoping it out and see this as the
> solution to the problem your running into.
>
> As you note, in cases where the containers can get dhcp addresses on the
> same network as the hosts, it's not an issue. OpenStack (depending on
> config) and MAAS work this way and aren't an issue.
>
> At one point we had lxc container networking in AWS. I'm just
> bootstrapping to verify that this is still working properly in the latest
> 2.0 code and if not will file a bug that we've regressed in this.
>
> tl;dr
> containers should work with routing ootb on MAAS, OpenStack, and AWS. The
> team's working on leveraging the Fan for public clouds and other
> situations.
>
> On Tue, Aug 23, 2016 at 9:26 AM Tom Barber 
> wrote:
>
>> Possibly something like... https://wiki.ubuntu.com/FanNetworking ? :)
>>
>> --
>>
>> Director Meteorite.bi - Saiku Analytics Founder
>> Tel: +44(0)5603641316
>>
>> (Thanks to the Saiku community we reached our Kickstart
>> 
>> goal, but you can always help by sponsoring the project
>> )
>>
>> On 23 August 2016 at 14:23, James Beedy  wrote:
>>
>>> Mark,
>>>
>>> Thanks for the reply! Just to make sure I'm picking up what you are
>>> laying down, are you implying that Juju will soon support host <-> host
>>> container networking by supplying its own provider agnostic network fabric?
>>>
>>> ~James
>>>
>>> On Aug 23, 2016, at 4:29 AM, Mark Shuttleworth  wrote:
>>>
>>>
>>> LXC/LXD should work everywhere, but *networking* to those containers is
>>> tricky. There is a dedicated team working on that problem, and we expect to
>>> ahve the ability to make and use LXC containers universally, soon.
>>>
>>> The remaining constraint will be that some charms try to modify their
>>> guest kernel, and that of course will be prevented in a container.
>>>
>>> Mark
>>>
>>> On 22/08/16 22:03, James Beedy wrote:
>>>
>>> Team,
>>>
>>> Question: What providers can Juju deploy LXD to?
>>>
>>> Answer: All of them.
>>>
>>> Question: What providers support Juju deployed LXD (juju deploy
>>>  --to lxd:0)?
>>>
>>> Answer: MAAS
>>>
>>>
>>> Problem: Juju can deploy LXD to all of the providers, but Juju can
>>> **REALLY** only provision LXD on MAAS. I get the impression that Juju is
>>> broken when I deploy applications to lxd on any provider other than MAAS.
>>>
>>> Proposed Solution: Disable `juju deploy  --to lxd:0` on
>>> providers which it is not supported.
>>>
>>>
>>> Thoughts?
>>>
>>>
>>>
>>>
>>> --
>>> Juju mailing list
>>> Juju@lists.ubuntu.com
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>>> mailman/listinfo/juju
>>>
>>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/juju
>>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread James Beedy
What!? This is awesome! No one ever tells me these things. Thanks for looping 
me in, Tom!

> On Aug 23, 2016, at 6:25 AM, Tom Barber  wrote:
> 
> Possibly something like... https://wiki.ubuntu.com/FanNetworking ? :)
> 
> --
> 
> Director Meteorite.bi - Saiku Analytics Founder
> Tel: +44(0)5603641316  
> 
> (Thanks to the Saiku community we reached our Kickstart goal, but you can 
> always help by sponsoring the project)
> 
>> On 23 August 2016 at 14:23, James Beedy  wrote:
>> Mark,
>> 
>> Thanks for the reply! Just to make sure I'm picking up what you are laying 
>> down, are you implying that Juju will soon support host <-> host container 
>> networking by supplying its own provider agnostic network fabric?
>> 
>> ~James
>> 
>>> On Aug 23, 2016, at 4:29 AM, Mark Shuttleworth  wrote:
>>> 
>>> 
>>> LXC/LXD should work everywhere, but *networking* to those containers is 
>>> tricky. There is a dedicated team working on that   problem, and we 
>>> expect to ahve the ability to make and use LXC containers universally, soon.
>>> 
>>> The remaining constraint will be that some charms try to modify their guest 
>>> kernel, and that of course will be prevented in a container.
>>> 
>>> Mark
>>> 
 On 22/08/16 22:03, James Beedy wrote:
 Team,
 
 Question: What providers can Juju deploy LXD to?
 
 Answer: All of them.
 
 Question: What providers support Juju deployed LXD (juju deploy 
  --to lxd:0)?
 
 Answer: MAAS
 
 
 Problem: Juju can deploy LXD to all of the providers, but Juju can 
 **REALLY** only provision LXD on MAAS. I get the impression that Juju is 
 broken when I deploy applications to lxd on any provider other than MAAS.
 
 Proposed Solution: Disable `juju deploy  --to lxd:0` on 
 providers which it is not supported.
 
 
 Thoughts?
>> 
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: 
>> https://lists.ubuntu.com/mailman/listinfo/juju
> 
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread Tom Barber
Yeah I know what you're getting at James. I've certainly discussed it with
a few of the developers when LXD Local first came out, although I forget
who now.

I guess what we're after is similar to Docker networking via Swam and their
overlay net. Which I believe is similar to Canonical Fan Network In Swam of
course you can define a bunch of containers and tell them to deploy across
a bunch of hosts and the overlay network takes care of it all, which of
course is currently inoperable in LXD via Juju.

Tom

--

Director Meteorite.bi - Saiku Analytics Founder
Tel: +44(0)5603641316

(Thanks to the Saiku community we reached our Kickstart

goal, but you can always help by sponsoring the project
)

On 23 August 2016 at 14:33, James Beedy  wrote:

> Tom,
>
> I think what I'm looking for here is consistency. Even using the lxd
> provider, you can't 'juju deploy myapp0 --to lxd:0' and 'juju deploy myapp1
> --to lxd:1'; myapp0 and myapp1 will never be able to talk because the live
> on their respective host only subnet on each host. I think this would be a
> great place to make use of L3 tunnels to get from host to host. Hopefully
> this is what mark was hinting at :)
>
> On Aug 23, 2016, at 4:32 AM, Tom Barber  wrote:
>
> James is also missing LXD Local :) Saves my dev cycles all the time and of
> course networking isn't an issue. I also use LXD remotely but I just run a
> cmd that forwards the ports I want to the host via IPTables so they are
> exposed to the wide world. Of course its a manual step, but I find it very
> useful.
>
> Tom
>
> --
>
> Director Meteorite.bi - Saiku Analytics Founder
> Tel: +44(0)5603641316
>
> (Thanks to the Saiku community we reached our Kickstart
> 
> goal, but you can always help by sponsoring the project
> )
>
> On 23 August 2016 at 12:29, Mark Shuttleworth  wrote:
>
>>
>> LXC/LXD should work everywhere, but *networking* to those containers is
>> tricky. There is a dedicated team working on that problem, and we expect to
>> ahve the ability to make and use LXC containers universally, soon.
>>
>> The remaining constraint will be that some charms try to modify their
>> guest kernel, and that of course will be prevented in a container.
>>
>> Mark
>>
>>
>> On 22/08/16 22:03, James Beedy wrote:
>>
>> Team,
>>
>> Question: What providers can Juju deploy LXD to?
>>
>> Answer: All of them.
>>
>> Question: What providers support Juju deployed LXD (juju deploy
>>  --to lxd:0)?
>>
>> Answer: MAAS
>>
>>
>> Problem: Juju can deploy LXD to all of the providers, but Juju can
>> **REALLY** only provision LXD on MAAS. I get the impression that Juju is
>> broken when I deploy applications to lxd on any provider other than MAAS.
>>
>> Proposed Solution: Disable `juju deploy  --to lxd:0` on
>> providers which it is not supported.
>>
>>
>> Thoughts?
>>
>>
>>
>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/juju
>>
>>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread James Beedy
Merlijn,

Entirely. This is the same for any non-MAAS provider though; you can deploy 
lxd, just not across multiple hosts.

-James

> On Aug 23, 2016, at 5:05 AM, Merlijn Sebrechts  
> wrote:
> 
> It might be best to allow someone to override this as a config option since 
> we use containers on a provider that doesn't officially support them.
> 
> We use LXC containers on the manual provider. LXC containers on the manual 
> provider are not network accessible by default but we hack around that by 
> changing the config of the hosts.
> 
> 2016-08-23 4:03 GMT+02:00 James Beedy :
>> Team,
>> 
>> Question: What providers can Juju deploy LXD to?
>> 
>> Answer: All of them.
>> 
>> Question: What providers support Juju deployed LXD (juju deploy 
>>  --to lxd:0)?
>> 
>> Answer: MAAS
>> 
>> 
>> Problem: Juju can deploy LXD to all of the providers, but Juju can 
>> **REALLY** only provision LXD on MAAS. I get the impression that Juju is 
>> broken when I deploy applications to lxd on any provider other than MAAS.
>> 
>> Proposed Solution: Disable `juju deploy  --to lxd:0` on 
>> providers which it is not supported.
>> 
>> 
>> Thoughts?
>> 
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: 
>> https://lists.ubuntu.com/mailman/listinfo/juju
> 
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread Tom Barber
Possibly something like... https://wiki.ubuntu.com/FanNetworking ? :)

--

Director Meteorite.bi - Saiku Analytics Founder
Tel: +44(0)5603641316

(Thanks to the Saiku community we reached our Kickstart

goal, but you can always help by sponsoring the project
)

On 23 August 2016 at 14:23, James Beedy  wrote:

> Mark,
>
> Thanks for the reply! Just to make sure I'm picking up what you are laying
> down, are you implying that Juju will soon support host <-> host container
> networking by supplying its own provider agnostic network fabric?
>
> ~James
>
> On Aug 23, 2016, at 4:29 AM, Mark Shuttleworth  wrote:
>
>
> LXC/LXD should work everywhere, but *networking* to those containers is
> tricky. There is a dedicated team working on that problem, and we expect to
> ahve the ability to make and use LXC containers universally, soon.
>
> The remaining constraint will be that some charms try to modify their
> guest kernel, and that of course will be prevented in a container.
>
> Mark
>
> On 22/08/16 22:03, James Beedy wrote:
>
> Team,
>
> Question: What providers can Juju deploy LXD to?
>
> Answer: All of them.
>
> Question: What providers support Juju deployed LXD (juju deploy
>  --to lxd:0)?
>
> Answer: MAAS
>
>
> Problem: Juju can deploy LXD to all of the providers, but Juju can
> **REALLY** only provision LXD on MAAS. I get the impression that Juju is
> broken when I deploy applications to lxd on any provider other than MAAS.
>
> Proposed Solution: Disable `juju deploy  --to lxd:0` on
> providers which it is not supported.
>
>
> Thoughts?
>
>
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread James Beedy
Tom,

I think what I'm looking for here is consistency. Even using the lxd provider, 
you can't 'juju deploy myapp0 --to lxd:0' and 'juju deploy myapp1 --to lxd:1'; 
myapp0 and myapp1 will never be able to talk because the live on their 
respective host only subnet on each host. I think this would be a great place 
to make use of L3 tunnels to get from host to host. Hopefully this is what mark 
was hinting at :)

> On Aug 23, 2016, at 4:32 AM, Tom Barber  wrote:
> 
> James is also missing LXD Local :) Saves my dev cycles all the time and of 
> course networking isn't an issue. I also use LXD remotely but I just run a 
> cmd that forwards the ports I want to the host via IPTables so they are 
> exposed to the wide world. Of course its a manual step, but I find it very 
> useful.
> 
> Tom
> 
> --
> 
> Director Meteorite.bi - Saiku Analytics Founder
> Tel: +44(0)5603641316  
> 
> (Thanks to the Saiku community we reached our Kickstart goal, but you can 
> always help by sponsoring the project)
> 
>> On 23 August 2016 at 12:29, Mark Shuttleworth  wrote:
>> 
>> LXC/LXD should work everywhere, but *networking* to those containers is 
>> tricky. There is a dedicated team working on that problem, and we expect to 
>> ahve the ability to make and use LXC containers universally, soon.
>> 
>> The remaining constraint will be that some charms try to modify their guest 
>> kernel, and that of course will be prevented in a container.
>> 
>> Mark
>> 
>> 
>>> On 22/08/16 22:03, James Beedy wrote:
>>> Team,
>>> 
>>> Question: What providers can Juju deploy LXD to?
>>> 
>>> Answer: All of them.
>>> 
>>> Question: What providers support Juju deployed LXD (juju deploy 
>>>  --to lxd:0)?
>>> 
>>> Answer: MAAS
>>> 
>>> 
>>> Problem: Juju can deploy LXD to all of the providers, but Juju can 
>>> **REALLY** only provision LXD on MAAS. I get the impression that Juju is 
>>> broken when I deploy applications to lxd on any provider other than MAAS.
>>> 
>>> Proposed Solution: Disable `juju deploy  --to lxd:0` on 
>>> providers which it is not supported.
>>> 
>>> 
>>> Thoughts?
>> 
>> 
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: 
>> https://lists.ubuntu.com/mailman/listinfo/juju
> 
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread Merlijn Sebrechts
It might be best to allow someone to override this as a config option since
we use containers on a provider that doesn't officially support them.

We use LXC containers on the manual provider. LXC containers on the manual
provider are not network accessible by default but we hack around that by
changing the config of the hosts.

2016-08-23 4:03 GMT+02:00 James Beedy :

> Team,
>
> Question: What providers can Juju deploy LXD to?
>
> Answer: All of them.
>
> Question: What providers support Juju deployed LXD (juju deploy
>  --to lxd:0)?
>
> Answer: MAAS
>
>
> Problem: Juju can deploy LXD to all of the providers, but Juju can
> **REALLY** only provision LXD on MAAS. I get the impression that Juju is
> broken when I deploy applications to lxd on any provider other than MAAS.
>
> Proposed Solution: Disable `juju deploy  --to lxd:0` on
> providers which it is not supported.
>
>
> Thoughts?
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Supported LXD Providers

2016-08-23 Thread Mark Shuttleworth

LXC/LXD should work everywhere, but *networking* to those containers is
tricky. There is a dedicated team working on that problem, and we expect
to ahve the ability to make and use LXC containers universally, soon.

The remaining constraint will be that some charms try to modify their
guest kernel, and that of course will be prevented in a container.

Mark

On 22/08/16 22:03, James Beedy wrote:
> Team,
>
> Question: What providers can Juju deploy LXD to?
>
> Answer: All of them.
>
> Question: What providers support Juju deployed LXD (juju deploy
>  --to lxd:0)?
>
> Answer: MAAS
>
>
> Problem: Juju can deploy LXD to all of the providers, but Juju can
> **REALLY** only provision LXD on MAAS. I get the impression that Juju
> is broken when I deploy applications to lxd on any provider other than
> MAAS.
>
> Proposed Solution: Disable `juju deploy  --to lxd:0` on
> providers which it is not supported.
>
>
> Thoughts?
>
>

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju