Embed lxd profile in charm

Bug #1835078 reported by Tim Van Steenburgh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
Fix Released
Wishlist
Peter De Sousa
Kubernetes Worker Charm
Fix Released
Wishlist
Peter De Sousa

Bug Description

If charm embeds a lxd profile, Juju will apply it: https://docs.jujucharms.com/lxd-cloud-advanced#charms-and-lxd-profiles

Use this feature to apply the profile we need for Charmed Kubernetes: https://github.com/charmed-kubernetes/bundle/wiki/Deploying-on-LXD

Our profiles has keys that aren't allowed by Juju except by using the --force flag. It's okay to require --force for now - maybe we can clean up the profile later so that --force isn't necessary.

Changed in charm-kubernetes-master:
importance: Undecided → Wishlist
assignee: nobody → Tim Van Steenburgh (tvansteenburgh)
assignee: Tim Van Steenburgh (tvansteenburgh) → Peter De Sousa (pjds)
Changed in charm-kubernetes-worker:
importance: Undecided → Wishlist
assignee: nobody → Peter De Sousa (pjds)
Revision history for this message
Nobuto Murata (nobuto) wrote :

This is a neat idea. One challenge I've found today was that Vault locker in Kubernetes master required an unused loopback device.

LXD itself supports creating a loopback device for a container like:
  loop-control:
    path: /dev/loop-control
    type: unix-char
  loop0:
    path: /dev/loop0
    type: unix-block

But to go through this code block is still tricky:
https://github.com/juju-solutions/layer-vaultlocker/blob/7e3d485c6f7507abf3667381c95ba61b85bdfa76/lib/charms/layer/vaultlocker.py#L166-L184

Peter De Sousa (pjds)
Changed in charm-kubernetes-worker:
status: New → In Progress
Changed in charm-kubernetes-master:
status: New → In Progress
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Changed in charm-kubernetes-master:
milestone: none → 1.16
status: In Progress → Fix Committed
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Changed in charm-kubernetes-worker:
milestone: none → 1.16
status: In Progress → Fix Committed
Changed in charm-kubernetes-master:
status: Fix Committed → Fix Released
Changed in charm-kubernetes-worker:
status: Fix Committed → Fix Released
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.