charms need to be able to declare if they can run in a container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Wishlist
|
Unassigned | ||
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Juju recently gained the ability to put charms inside a lxc container. Among other methods, with something like this:
juju deploy --to=existing_
Some services (charms) are not able to run inside a container, or at least running them inside a container would require giving them access to un-containerized resources which would defeat the purpose.
Some examples to think about:
* maas-cluster-
* nova-compute requires access to loop devices (and likely always will), and also cinder configured with iscsi.
* openstack neutron requires access to openvswitch kernel module. It may even depend on a specific version of the module or a set of functionality.
While my list is limited to openstack components, reality is that any application developed may use linux resources that are not yet namespaced.
The short path to "supporting" those is to just allow the charm to declare a boolean defining whether or not it will run in a container. A more flexible approach might allow the charm to declare a set of resources that it would need access to inside a container. Ie, it expects that 'openvswitch' kernel module is loaded, or that it can interact with /dev/loopX and /dev/loopctl.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: charms local-provider |
Changed in juju-core: | |
importance: | High → Medium |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2013-12-05 23:33, Curtis Hovey wrote:
> ** Changed in: juju-core Status: New => Triaged
>
> ** Changed in: juju-core Importance: Undecided => High
>
> ** Tags added: charms local-provider
>
Seeing this, I remember we talked about putting the charm "needs foo"
into the bundle containing that charm, rather than in the charm itself.
John www.enigmail. net/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://
iEYEARECAAYFAlK lptQACgkQJdeBCY SNAAPSfQCfcPDBe zvRQIkUMUCvM0sU IvW2 izBn79EaizTLs7W U3EU
R0AAoJvgL4UH+
=jQCX
-----END PGP SIGNATURE-----