Consuming MongoDB from a Snap

Menno Smits menno.smits at canonical.com
Thu Jun 22 23:47:33 UTC 2017


We've had some discussion this week about whether Juju could use MongoDB
from snap instead of a deb. This would make it easier for Juju to stay up
to date with the latest MongoDB releases, avoiding the involved process
getting each update into Ubuntu's update repository, as well as giving us
all the other advantages of snaps.

Two concerns were raised in this week's tech board meeting.

*1. Does snapd work on all architectures that Juju supports?*

The answer appears to be "yes with some caveats". For xenial onwards there
are snapd packages for all the architectures the Juju team cares about.

   https://packages.ubuntu.com/xenial/snapd

For trusty only amd64, armhf and i386 appear to be supported.

   https://packages.ubuntu.com/trusty-updates/snapd

This is probably ok. I think it's probably fine to start saying that new
Juju controllers, on some architectures at least, need to be based on
xenial or later.

*2. Does snapd work inside LXD containers?*

Although it's rarely done, it's possible to set up a Juju HA cluster where
some nodes are running inside LXD containers so this is something we'd need
to consider.

>From xenial onwards, snapd does indeed work inside LXD containers. I
followed Stephane's instructions using a xenial container and successfully
installed a number of non-trivial, working snaps including Gustavo's
mongo32 snap.

  https://stgraber.org/2016/12/07/running-snaps-in-lxd-containers/


There is of course more testing to be done but it seems like having Juju's
MongoDB in a snap is certainly doable.

- Menno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20170623/c418eed4/attachment.html>


More information about the Juju-dev mailing list