Default to local provider

Bug #1229903 reported by Jorge Castro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Invalid
Medium
Unassigned

Bug Description

In order to get people up and running with Juju as fast as possible we should default to the "local" provider on Ubuntu but leave it to amazon for Windows/OSX.

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.16.0
status: New → Triaged
importance: Undecided → High
Revision history for this message
Dave Cheney (dave-cheney) wrote :

If you are going to do this then make sure that the 1.16.0 packaging has an install dependency on Mongodb

**** BUT ****

The local provider does not work on Precise.
The local provider does not work on Precise.
The local provider does not work on Precise.

in case it wasn't clear

The local provider does not work on Precise.

So, that makes it even more complicated

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1229903] Re: Default to local provider

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-09-25 6:43, Dave Cheney wrote:
> If you are going to do this then make sure that the 1.16.0
> packaging has an install dependency on Mongodb
>
> **** BUT ****
>
> The local provider does not work on Precise. The local provider
> does not work on Precise. The local provider does not work on
> Precise.
>
> in case it wasn't clear
>
> The local provider does not work on Precise.
>
> So, that makes it even more complicated
>

So we have the "juju-local" package which adds the necessary
dependencies to run the local provider (lxc and mongodb).

There have been discussions about getting the updated LXC into the
Cloud archive, and possibly adding it to the "ppa:juju/stable".

So if you can get juju-local then you probably get the right bits to
run there. (Unless there are other reasons it doesn't work on Precise).

We don't really want to force anyone who wants to use juju the client
to always have to install MongoDB, especially because mongodb-server
autoconfigures an instance of mongo to be running on startup (which
the juju local provider won't use anyway).

It would be a neat trick if we could notice that 'juju-local' is
installed, so we could default to the local provider.

But I do think we need to iron out a few packaging things before we
can actually do so. (depend on a mongodb package that doesn't
configure mongodb to start on boot, etc.)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJCuvwACgkQJdeBCYSNAAPRAwCfSSeJPXI6U5VSpj78RG3AnA8O
V8wAn0EPH8j7E+8pIvRpbqLizMo/y2TW
=/xRA
-----END PGP SIGNATURE-----

Revision history for this message
Jorge Castro (jorge) wrote :

I fired up a clean 12.04.3 installation, which defaults to the raring (3.8) kernel.

- Did the updates, rebooted.
- Added the ppa:stable repository
- updated and installed juju-core and juju-local
- juju switch local
- deployed mysql, postgresql, and discourse

Worked perfectly!

So I think we should default to local and make it clear in the instructions that if you're on 12.04 you need the backported kernel packages, which isn't too much of a big deal, it's what the Docker instructions also recommend to do since they need the newer LXC too.

Revision history for this message
Jorge Castro (jorge) wrote :

Antonio had me investigate just doing vanilla 12.04 with only backporting `lxc` to see if it's that simple, unfortunately the dep chain gets out of control (23 of them) so I think asking people to run an HWE kernel is a better experience than backporting a bunch of stuff to a PPA.

Revision history for this message
Antonio Rosales (arosales) wrote :

Jorge,
Thanks for investigating. At a minimum we should update our docs for the local config story on 12.04.

John,
With local docs instructing users how to enable local provider on 12.04 do you think this is sufficient for making local the default, or are there other possible concerns we are missing?

-thanks,
Antonio

John A Meinel (jameinel)
Changed in juju-core:
assignee: nobody → John A Meinel (jameinel)
Mark Ramm (mark-ramm)
Changed in juju-core:
milestone: 1.16.0 → 2.0
Curtis Hovey (sinzui)
tags: added: config local-provider
Curtis Hovey (sinzui)
Changed in juju-core:
assignee: John A Meinel (jameinel) → nobody
Changed in juju-core:
importance: High → Medium
Jorge Castro (jorge)
Changed in juju-core:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.